forked from pool/u-boot
OBS-URL: https://build.opensuse.org/request/show/1066717 OBS-URL: https://build.opensuse.org/package/show/hardware:boot/u-boot?expand=0&rev=184
40 lines
1.5 KiB
Diff
40 lines
1.5 KiB
Diff
From 1760447d478bd16aceebe67b8e03d7e2d9e87fbc Mon Sep 17 00:00:00 2001
|
|
From: Sjoerd Simons <sjoerd@collabora.com>
|
|
Date: Thu, 19 Jan 2023 09:38:17 +0100
|
|
Subject: [PATCH] Bump LMB_MAX_REGIONS default to 16
|
|
|
|
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.
|
|
|
|
Fixes: 06d514d77c ("lmb: consider EFI memory map")
|
|
Link: https://bugzilla.opensuse.org/show_bug.cgi?id=1207562
|
|
Reviewed-by: Francesco Dolcini <francesco.dolcini@toradex.com>
|
|
Signed-off-by: Sjoerd Simons <sjoerd@collabora.com>
|
|
Signed-off-by: Michal Suchanek <msuchanek@suse.de>
|
|
[trini: collect tags from the other equivalent patch]
|
|
---
|
|
lib/Kconfig | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/lib/Kconfig b/lib/Kconfig
|
|
index 3c5a4ab386..7d1b88656d 100644
|
|
--- a/lib/Kconfig
|
|
+++ b/lib/Kconfig
|
|
@@ -1002,7 +1002,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.
|