From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D6B42C00A5A for ; Thu, 19 Jan 2023 08:38:39 +0000 (UTC) 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) 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 Content-Transfer-Encoding: 8bit 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. -- 2.39.0