f0475188524c846592c36e58684b9124c9c78efd
[openwrt/openwrt.git] /
1 From patchwork Mon Aug 21 19:38:23 2023
2 Content-Type: text/plain; charset="utf-8"
3 MIME-Version: 1.0
4 Content-Transfer-Encoding: 7bit
5 X-Patchwork-Submitter: Daniel Golle <daniel@makrotopia.org>
6 X-Patchwork-Id: 1823742
7 X-Patchwork-Delegate: trini@ti.com
8 Return-Path: <u-boot-bounces@lists.denx.de>
9 X-Original-To: incoming@patchwork.ozlabs.org
10 Delivered-To: patchwork-incoming@legolas.ozlabs.org
11 Date: Mon, 21 Aug 2023 20:38:23 +0100
12 From: Daniel Golle <daniel@makrotopia.org>
13 To: Sam Shih <sam.shih@mediatek.com>, Weijie Gao <weijie.gao@mediatek.com>,
14 Lorenzo Bianconi <lorenzo@kernel.org>, u-boot@lists.denx.de
15 Subject: [PATCH] configs: set CONFIG_LMB_MAX_REGIONS=64 for MT7988 boards
16 Message-ID:
17 <568a8030acf9056266b5c96055cea54f810496c9.1692646620.git.daniel@makrotopia.org>
18 MIME-Version: 1.0
19 Content-Disposition: inline
20 X-BeenThere: u-boot@lists.denx.de
21 X-Mailman-Version: 2.1.39
22 Precedence: list
23 List-Id: U-Boot discussion <u-boot.lists.denx.de>
24 List-Unsubscribe: <https://lists.denx.de/options/u-boot>,
25 <mailto:u-boot-request@lists.denx.de?subject=unsubscribe>
26 List-Archive: <https://lists.denx.de/pipermail/u-boot/>
27 List-Post: <mailto:u-boot@lists.denx.de>
28 List-Help: <mailto:u-boot-request@lists.denx.de?subject=help>
29 List-Subscribe: <https://lists.denx.de/listinfo/u-boot>,
30 <mailto:u-boot-request@lists.denx.de?subject=subscribe>
31 Errors-To: u-boot-bounces@lists.denx.de
32 Sender: "U-Boot" <u-boot-bounces@lists.denx.de>
33
34 Similar to MT7981 and MT7986 also MT7988 can have a high number of
35 reserved-memory regions used by the various hardware offloading
36 subsystems.
37
38 Raise CONFIG_LMB_MAX_REGIONS to 64 to avoid errors when trying to boot
39 Linux with more then 6 reserved regions:
40
41 ERROR: reserving fdt memory region failed (addr=4f700000 size=240000 flags=4)
42 ERROR: reserving fdt memory region failed (addr=15194000 size=1000 flags=4)
43 ERROR: reserving fdt memory region failed (addr=15294000 size=1000 flags=4)
44 ERROR: reserving fdt memory region failed (addr=15394000 size=1000 flags=4)
45 ERROR: Failed to allocate 0xb161 bytes below 0x80000000.
46 device tree - allocation error
47
48 Fixes: bc4adc97cfb ("board: mediatek: add MT7988 reference boards")
49 Reported-by: Lorenzo Bianconi <lorenzo@kernel.org>
50 Signed-off-by: Daniel Golle <daniel@makrotopia.org>
51 ---
52 configs/mt7988_rfb_defconfig | 1 +
53 configs/mt7988_sd_rfb_defconfig | 1 +
54 2 files changed, 2 insertions(+)
55
56 --- a/configs/mt7988_rfb_defconfig
57 +++ b/configs/mt7988_rfb_defconfig
58 @@ -81,3 +81,4 @@ CONFIG_MTK_SPIM=y
59 CONFIG_LZO=y
60 CONFIG_HEXDUMP=y
61 # CONFIG_EFI_LOADER is not set
62 +CONFIG_LMB_MAX_REGIONS=64
63 --- a/configs/mt7988_sd_rfb_defconfig
64 +++ b/configs/mt7988_sd_rfb_defconfig
65 @@ -69,3 +69,4 @@ CONFIG_MTK_SPIM=y
66 CONFIG_LZO=y
67 CONFIG_HEXDUMP=y
68 # CONFIG_EFI_LOADER is not set
69 +CONFIG_LMB_MAX_REGIONS=64