[PATCH] lmb: Rename LMB_LIMIT_DMA_BELOW_4G to LMB_LIMIT_DMA_BELOW_RAM_TOP

Marek Vasut marek.vasut+renesas at mailbox.org
Thu Jun 4 19:33:15 CEST 2026


Rename LMB_LIMIT_DMA_BELOW_4G to LMB_LIMIT_DMA_BELOW_RAM_TOP
to make the Kconfig option more descriptive. No functional
change.

Suggested-by: Ilias Apalodimas <ilias.apalodimas at linaro.org>
Signed-off-by: Marek Vasut <marek.vasut+renesas at mailbox.org>
---
Cc: Andrew Goodbody <andrew.goodbody at linaro.org>
Cc: David Lechner <dlechner at baylibre.com>
Cc: Heiko Schocher <hs at nabladev.com>
Cc: Heinrich Schuchardt <xypron.glpk at gmx.de>
Cc: Holger Brunck <holger.brunck at hitachienergy.com>
Cc: Ilias Apalodimas <ilias.apalodimas at linaro.org>
Cc: Peter Robinson <pbrobinson at gmail.com>
Cc: Quentin Schulz <quentin.schulz at cherry.de>
Cc: Simon Glass <sjg at chromium.org>
Cc: Sughosh Ganu <sughosh.ganu at arm.com>
Cc: Tom Rini <trini at konsulko.com>
Cc: u-boot at lists.denx.de
---
 lib/Kconfig | 7 ++++---
 lib/lmb.c   | 2 +-
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/lib/Kconfig b/lib/Kconfig
index 29911068a69..cf13ac1bdad 100644
--- a/lib/Kconfig
+++ b/lib/Kconfig
@@ -1295,13 +1295,14 @@ config SPL_LMB_ARCH_MEM_MAP
 	  memory map. Enable this config in such scenarios which allow
 	  architectures and boards to define their own memory map.
 
-config LMB_LIMIT_DMA_BELOW_4G
+config LMB_LIMIT_DMA_BELOW_RAM_TOP
 	bool
 	depends on LMB
 	default y if ARCH_BCM283X
 	help
-	  Some architectures can not DMA above 4 GiB boundary,
-	  limit available memory to memory below 4 GiB boundary.
+	  Some architectures can not DMA above ram_top boundary,
+	  which is after 4 GiB or 32-bit boundary too. Limit the
+	  available memory to memory below ram_top boundary.
 
 config PHANDLE_CHECK_SEQ
 	bool "Enable phandle check while getting sequence number"
diff --git a/lib/lmb.c b/lib/lmb.c
index a2aeb526e29..275d105c5aa 100644
--- a/lib/lmb.c
+++ b/lib/lmb.c
@@ -628,7 +628,7 @@ static void lmb_add_memory(void)
 
 		if (size) {
 			lmb_add(bd->bi_dram[i].start, size);
-			if (!IS_ENABLED(CONFIG_LMB_LIMIT_DMA_BELOW_4G))
+			if (!IS_ENABLED(CONFIG_LMB_LIMIT_DMA_BELOW_RAM_TOP))
 				continue;
 
 			bank_end = bd->bi_dram[i].start + size;
-- 
2.53.0



More information about the U-Boot mailing list