From patchwork Thu Jan 19 08:38:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sjoerd Simons X-Patchwork-Id: 1728646 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=collabora.com header.i=@collabora.com header.a=rsa-sha256 header.s=mail header.b=Lx5Q3Iun; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4NyGHj5M06z23fT for ; Thu, 19 Jan 2023 19:38:41 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A46B78565F; Thu, 19 Jan 2023 09:38:29 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=collabora.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=collabora.com header.i=@collabora.com header.b="Lx5Q3Iun"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9F8A785600; Thu, 19 Jan 2023 09:38:26 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id A35B385638 for ; Thu, 19 Jan 2023 09:38:24 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=collabora.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjoerd@collabora.com Received: from beast.luon.net (simons.connected.by.freedominter.net [45.83.240.172]) (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) (No client certificate requested) (Authenticated sender: sjoerd) by madras.collabora.co.uk (Postfix) with ESMTPSA id 3576C6600869; Thu, 19 Jan 2023 08:38:24 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1674117504; bh=OS5Ydp0dDTAnfAcD0n1Xwnmbe5PCsqKvP9c0FKBtVRc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Lx5Q3IunE3utRj8bMCTVbv5Jcur50Qiw1/ui9JhpFI5Vpu22zU5tu9bZVnc8DP20l KVmcsyYwUKGaVQsBL4jyi4tal6nRNHa8NOfVNFnjE+OGqZvrcO1eenspI91r/idloC iDvrowb1PV/PYdG9rAbLapjM0R3bMOMgMl2M+VtSl71cwhyuuG1cwo8Zy4Dg7IvBc4 shIeF638jEcufWjy8DIZcUZ6MWAw5XC8wo99CIvXK9O8NYv9cqXnaJTpFJCvwkOCOb 8ddwKU7qRu5fHyDCUriEaWgSFt32s0KJjuT+Ece1mrihrQOZ7MhKCFtAoCraO+bVYv pHz1bs+AcOg6A== Received: by beast.luon.net (Postfix, from userid 1000) id 91F8361ACB0C; Thu, 19 Jan 2023 09:38:21 +0100 (CET) From: Sjoerd Simons To: u-boot@lists.denx.de Cc: Heinrich Schuchardt , Ilias Apalodimas , Kautuk Consul , Leo Yu-Chi Liang , Philippe Reynes , Rasmus Villemoes , Simon Glass , Sughosh Ganu Subject: [PATCH 1/3] Bump LMB_MAX_REGIONS default to 16 Date: Thu, 19 Jan 2023 09:38:17 +0100 Message-Id: <20230119083820.2656710-2-sjoerd@collabora.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230119083820.2656710-1-sjoerd@collabora.com> References: <20230119083820.2656710-1-sjoerd@collabora.com> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean Since commit 06d514d77c37 ("lmb: consider EFI memory map") the EFI regions are also pushed into the lmb if EFI_LOADER is enabled (which is by default on most system). Which can cause the number of entries to go over the maximum as it's default is only 8. Specifically i ran into this case on an TI am62 which has an fdt with 4 reserved regions (in practice 3 lmb entries due to adjecent ranges). As this is likely to impact more devices bump the default max regions to 16 so there is a bit more slack. Signed-off-by: Sjoerd Simons --- lib/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Kconfig b/lib/Kconfig index def36f275ce..7eb0e7addc7 100644 --- a/lib/Kconfig +++ b/lib/Kconfig @@ -1005,7 +1005,7 @@ config LMB_USE_MAX_REGIONS config LMB_MAX_REGIONS int "Number of memory and reserved regions in lmb lib" depends on LMB && LMB_USE_MAX_REGIONS - default 8 + default 16 help Define the number of supported regions, memory and reserved, in the library logical memory blocks.