diff mbox series

configs: set CONFIG_LMB_MAX_REGIONS=64 for MT7988 boards

Message ID 568a8030acf9056266b5c96055cea54f810496c9.1692646620.git.daniel@makrotopia.org
State Accepted
Commit dcde1f95bfa6d634f0cf7b7c0f6f71b3c08c6fa2
Delegated to: Tom Rini
Headers show
Series configs: set CONFIG_LMB_MAX_REGIONS=64 for MT7988 boards | expand

Commit Message

Daniel Golle Aug. 21, 2023, 7:38 p.m. UTC
Similar to MT7981 and MT7986 also MT7988 can have a high number of
reserved-memory regions used by the various hardware offloading
subsystems.

Raise CONFIG_LMB_MAX_REGIONS to 64 to avoid errors when trying to boot
Linux with more then 6 reserved regions:

ERROR: reserving fdt memory region failed (addr=4f700000 size=240000 flags=4)
ERROR: reserving fdt memory region failed (addr=15194000 size=1000 flags=4)
ERROR: reserving fdt memory region failed (addr=15294000 size=1000 flags=4)
ERROR: reserving fdt memory region failed (addr=15394000 size=1000 flags=4)
ERROR: Failed to allocate 0xb161 bytes below 0x80000000.
device tree - allocation error

Fixes: bc4adc97cfb ("board: mediatek: add MT7988 reference boards")
Reported-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
---
 configs/mt7988_rfb_defconfig    | 1 +
 configs/mt7988_sd_rfb_defconfig | 1 +
 2 files changed, 2 insertions(+)

Comments

Tom Rini Aug. 29, 2023, 2:09 p.m. UTC | #1
On Mon, Aug 21, 2023 at 08:38:23PM +0100, Daniel Golle wrote:

> Similar to MT7981 and MT7986 also MT7988 can have a high number of
> reserved-memory regions used by the various hardware offloading
> subsystems.
> 
> Raise CONFIG_LMB_MAX_REGIONS to 64 to avoid errors when trying to boot
> Linux with more then 6 reserved regions:
> 
> ERROR: reserving fdt memory region failed (addr=4f700000 size=240000 flags=4)
> ERROR: reserving fdt memory region failed (addr=15194000 size=1000 flags=4)
> ERROR: reserving fdt memory region failed (addr=15294000 size=1000 flags=4)
> ERROR: reserving fdt memory region failed (addr=15394000 size=1000 flags=4)
> ERROR: Failed to allocate 0xb161 bytes below 0x80000000.
> device tree - allocation error
> 
> Fixes: bc4adc97cfb ("board: mediatek: add MT7988 reference boards")
> Reported-by: Lorenzo Bianconi <lorenzo@kernel.org>
> Signed-off-by: Daniel Golle <daniel@makrotopia.org>

Applied to u-boot/master, thanks!
diff mbox series

Patch

diff --git a/configs/mt7988_rfb_defconfig b/configs/mt7988_rfb_defconfig
index dc97bb36ea..ced52edecf 100644
--- a/configs/mt7988_rfb_defconfig
+++ b/configs/mt7988_rfb_defconfig
@@ -81,3 +81,4 @@  CONFIG_MTK_SPIM=y
 CONFIG_LZO=y
 CONFIG_HEXDUMP=y
 # CONFIG_EFI_LOADER is not set
+CONFIG_LMB_MAX_REGIONS=64
diff --git a/configs/mt7988_sd_rfb_defconfig b/configs/mt7988_sd_rfb_defconfig
index 421999da86..670f5eae18 100644
--- a/configs/mt7988_sd_rfb_defconfig
+++ b/configs/mt7988_sd_rfb_defconfig
@@ -69,3 +69,4 @@  CONFIG_MTK_SPIM=y
 CONFIG_LZO=y
 CONFIG_HEXDUMP=y
 # CONFIG_EFI_LOADER is not set
+CONFIG_LMB_MAX_REGIONS=64