aboutsummaryrefslogtreecommitdiff
path: root/package/boot
diff options
context:
space:
mode:
authorDaniel Golle <daniel@makrotopia.org>2023-08-24 17:24:37 +0100
committerDaniel Golle <daniel@makrotopia.org>2023-08-24 18:49:49 +0100
commitff2379662c4a0bc5f462a568ab5dd43dd0e0d029 (patch)
tree598b1c35fb3c4ee71661e17b1da43ebffe104208 /package/boot
parentf01982ec0be85772b2094bea4b823be275573923 (diff)
uboot-mediatek: increase max. memory regions on mt7988-rfb
WED requires a bunch of additional reserved memory regions. As U-Boot's LMB allocator defaults to a maximum of only 8 regions, this currently makes using WED impossible. Raise LMB_MAX_REGIONS to 64 just like for all other MediaTek boards with a SoC supporting WED. Fixes: 572ea68070 ("uboot-mediatek: add patches for MT7988 and builds for RFB") Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'package/boot')
-rw-r--r--package/boot/uboot-mediatek/patches/104-configs-set-CONFIG_LMB_MAX_REGIONS-64-for-MT7988-boards.patch69
1 files changed, 69 insertions, 0 deletions
diff --git a/package/boot/uboot-mediatek/patches/104-configs-set-CONFIG_LMB_MAX_REGIONS-64-for-MT7988-boards.patch b/package/boot/uboot-mediatek/patches/104-configs-set-CONFIG_LMB_MAX_REGIONS-64-for-MT7988-boards.patch
new file mode 100644
index 0000000000..f047518852
--- /dev/null
+++ b/package/boot/uboot-mediatek/patches/104-configs-set-CONFIG_LMB_MAX_REGIONS-64-for-MT7988-boards.patch
@@ -0,0 +1,69 @@
+From patchwork Mon Aug 21 19:38:23 2023
+Content-Type: text/plain; charset="utf-8"
+MIME-Version: 1.0
+Content-Transfer-Encoding: 7bit
+X-Patchwork-Submitter: Daniel Golle <daniel@makrotopia.org>
+X-Patchwork-Id: 1823742
+X-Patchwork-Delegate: trini@ti.com
+Return-Path: <u-boot-bounces@lists.denx.de>
+X-Original-To: incoming@patchwork.ozlabs.org
+Delivered-To: patchwork-incoming@legolas.ozlabs.org
+Date: Mon, 21 Aug 2023 20:38:23 +0100
+From: Daniel Golle <daniel@makrotopia.org>
+To: Sam Shih <sam.shih@mediatek.com>, Weijie Gao <weijie.gao@mediatek.com>,
+ Lorenzo Bianconi <lorenzo@kernel.org>, u-boot@lists.denx.de
+Subject: [PATCH] configs: set CONFIG_LMB_MAX_REGIONS=64 for MT7988 boards
+Message-ID:
+ <568a8030acf9056266b5c96055cea54f810496c9.1692646620.git.daniel@makrotopia.org>
+MIME-Version: 1.0
+Content-Disposition: inline
+X-BeenThere: u-boot@lists.denx.de
+X-Mailman-Version: 2.1.39
+Precedence: list
+List-Id: U-Boot discussion <u-boot.lists.denx.de>
+List-Unsubscribe: <https://lists.denx.de/options/u-boot>,
+ <mailto:u-boot-request@lists.denx.de?subject=unsubscribe>
+List-Archive: <https://lists.denx.de/pipermail/u-boot/>
+List-Post: <mailto:u-boot@lists.denx.de>
+List-Help: <mailto:u-boot-request@lists.denx.de?subject=help>
+List-Subscribe: <https://lists.denx.de/listinfo/u-boot>,
+ <mailto:u-boot-request@lists.denx.de?subject=subscribe>
+Errors-To: u-boot-bounces@lists.denx.de
+Sender: "U-Boot" <u-boot-bounces@lists.denx.de>
+
+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(+)
+
+--- 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
+--- 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