From: Sjoerd Simons <sjoerd@collabora.com>
To: u-boot@lists.denx.de
Cc: Heinrich Schuchardt <xypron.glpk@gmx.de>,
Ilias Apalodimas <ilias.apalodimas@linaro.org>,
Kautuk Consul <kconsul@ventanamicro.com>,
Leo Yu-Chi Liang <ycliang@andestech.com>,
Philippe Reynes <philippe.reynes@softathome.com>,
Rasmus Villemoes <rasmus.villemoes@prevas.dk>,
Simon Glass <sjg@chromium.org>,
Sughosh Ganu <sughosh.ganu@linaro.org>
Subject: [PATCH 1/3] Bump LMB_MAX_REGIONS default to 16
Date: Thu, 19 Jan 2023 09:38:17 +0100 [thread overview]
Message-ID: <20230119083820.2656710-2-sjoerd@collabora.com> (raw)
In-Reply-To: <20230119083820.2656710-1-sjoerd@collabora.com>
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 <sjoerd@collabora.com>
---
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
next prev parent reply other threads:[~2023-01-19 8:38 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-19 8:38 [PATCH 0/3] Fix boot regressions on at least TI am62x Sjoerd Simons
2023-01-19 8:38 ` Sjoerd Simons [this message]
2023-01-26 18:28 ` [PATCH 1/3] Bump LMB_MAX_REGIONS default to 16 Tom Rini
2023-01-27 7:55 ` Sjoerd Simons
2023-01-27 13:22 ` Tom Rini
2023-02-08 20:00 ` Tom Rini
2023-01-19 8:38 ` [PATCH 2/3] lmb: Set correct lmb flags for EFI memory map entries Sjoerd Simons
2023-02-07 16:49 ` Tom Rini
2023-01-19 8:38 ` [PATCH 3/3] lmb: Treat a region which is a subset as equal Sjoerd Simons
2023-02-06 18:04 ` Tom Rini
2023-02-08 7:37 ` Sjoerd Simons
2023-02-08 14:55 ` Tom Rini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230119083820.2656710-2-sjoerd@collabora.com \
--to=sjoerd@collabora.com \
--cc=ilias.apalodimas@linaro.org \
--cc=kconsul@ventanamicro.com \
--cc=philippe.reynes@softathome.com \
--cc=rasmus.villemoes@prevas.dk \
--cc=sjg@chromium.org \
--cc=sughosh.ganu@linaro.org \
--cc=u-boot@lists.denx.de \
--cc=xypron.glpk@gmx.de \
--cc=ycliang@andestech.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.