From nobody Thu Feb 29 03:04:34 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Tlbfp5Ykjz5BjXJ; Thu, 29 Feb 2024 03:04:34 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Tlbfp455Zz4HLP; Thu, 29 Feb 2024 03:04:34 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1709175874; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=B3mT5Q2ZB0n+rbbHJjLJaUoM4NkHdR310zAlXh47RwY=; b=E5flXfPEa2asRuTwIvxdBLF8k7NgbMWD36rd0V9ZlYzzDeDh4h3lmack132pz0dlUc+X73 Ujlhiqff5s6lVVywq7Cq6ONR5cB4dA5oVjzLQcoDY9vNZxsuZ3b13Zxqxf37RI7lHfU1Uj Sh4jZSqMoeKaFKwyyklA/NPmKk6kEFy3ph+mZoCWK5NOFRcaBZeKLy7JBty/WlXNjAjga7 gINVUOagYNRfUnd+S3C+GVj25zLTgqzsgUDIQJtq3T9+vRUXAy7rm276pLfSlQOtzIhHcC OMv8+eWT6oMMy4f1F1oJb3THnPI3oYAFprGmjtPHdzqo88TS8AH1mL0obUd0lw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1709175874; a=rsa-sha256; cv=none; b=RUIVtcBuzHI/C6nxfHpiuqfrZCMFwyqU8QyIha9ttF6pKGKmnYb0JxZTTbcBgE937dFha9 QHnH2P3M6EDYS/jxZU/AB8wg91e7L2venY15WbdTTnwXqkyJfx9jTlpvaLY5QZjQ5Ca2SX iksFhUy2zMYiXOs1eieYk27SWH+Vj2KxzLzQWivGRLP4WHFf++dfi6geWrw4Y07v74AsGn dvU4vIb3PO+mBZFIqiCyFeVXhA69VqI4cMpuZoyb5k3sMk1RZBW2fjoqXe8jwmQodcWGcX j2Y95wYnlpj7cOgFZ/dR2+b7pTg8Y/MQF3LASppLMBkJU7GrUsJ31+eBWM0rKg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1709175874; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=B3mT5Q2ZB0n+rbbHJjLJaUoM4NkHdR310zAlXh47RwY=; b=PgOfCqI8YE8miegLWtqn3zgDiv4jpVUUxb766nNWqPJlzi4R1lMmO/Tz6OGlztFizz3kij Yx20GjFdmmNl1jciIxRjHYICLeuRU7HM8GN/ULrLdnQG3wHUyCUZrrah6rpheXTjOvm/of N2jRd5d4FNBf/gzB/aSQsLBL9c12yyjnEtRld9G3jeX7qIV2FMosnzNgI9MpM6WJ4KhLm/ LAlIPtldpj/3HH3PLbyhIDYZTutrLzogvygstyy8lVjeH1Se7EIB1tpYKcWlfjGPijwlsI 92FHx+hC60GnjV/xafBS82M8+tbnWSsh+nxeXtE4L46tmikdH98WySNLFdw3Vg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Tlbfp3hcQzPJ0; Thu, 29 Feb 2024 03:04:34 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41T34YrY067518; Thu, 29 Feb 2024 03:04:34 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41T34Yj6067515; Thu, 29 Feb 2024 03:04:34 GMT (envelope-from git) Date: Thu, 29 Feb 2024 03:04:34 GMT Message-Id: <202402290304.41T34Yj6067515@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Justin Hibbits Subject: git: b52dceb83811 - main - powerpc: Bump maximum number of FDT reserved mem entries List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhibbits X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b52dceb838116391996909ff50b49f950ee01f48 Auto-Submitted: auto-generated The branch main has been updated by jhibbits: URL: https://cgit.FreeBSD.org/src/commit/?id=b52dceb838116391996909ff50b49f950ee01f48 commit b52dceb838116391996909ff50b49f950ee01f48 Author: Shawn Anastasio AuthorDate: 2024-02-27 19:40:50 +0000 Commit: Justin Hibbits CommitDate: 2024-02-29 03:01:15 +0000 powerpc: Bump maximum number of FDT reserved mem entries Newer firmware on POWER systems, including v2.10 of the Talos II and Blackbird firmware can end up reserving more than 32 memory regions in the device tree, which exceeded an assumption made by ofw_machdep.c's excise_fdt_reserved(). Bump the maximum number of FDT reservations to the next power of 2 in order to fix booting on newer firmware. PR: 277097 Reviewed by: jhibbits Differential Revision: https://reviews.freebsd.org/D44015 --- sys/powerpc/ofw/ofw_machdep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/powerpc/ofw/ofw_machdep.c b/sys/powerpc/ofw/ofw_machdep.c index f850efa6c713..6d7b0b01fc84 100644 --- a/sys/powerpc/ofw/ofw_machdep.c +++ b/sys/powerpc/ofw/ofw_machdep.c @@ -426,7 +426,7 @@ excise_msi_region(struct mem_region *avail, int asz) static int excise_fdt_reserved(struct mem_region *avail, int asz) { - struct mem_region fdtmap[32]; + struct mem_region fdtmap[64]; ssize_t fdtmapsize; phandle_t chosen; int j, fdtentries;