Skip to contentSkip to conversation

configs: verdin-imx8mp: Fix wrong early malloc() heap size

PATCH In review Francesco Dolcini 3 participants 3 messages Feb 16, 2023 – Mar 30, 2023 Arm i.MX and Layerscape

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 configs: verdin-imx8mp: Fix wrong early malloc() heap size

From: Emanuele Ghidoli <[email protected]>

Set, previously unset, CONFIG_SPL_SYS_MALLOC_F_LEN to 0x4000 whose default value is 0x10000.
Early malloc() uses CRAM_S at 0x184000 (CFG_MALLOC_F_ADDR), this ram area end at 0x188000.

Fixes 2bc2f817cea7 ("board: toradex: add verdin imx8m plus support")
---
 configs/verdin-imx8mp_defconfig | 1 +
 1 file changed, 1 insertion(+)
configs/verdin-imx8mp_defconfig +1 -0
index 153c7c15197d..90588bfbd29f 100644
@@ -51,6 +51,7 @@ CONFIG_SPL_BOOTROM_SUPPORT=y
 CONFIG_SPL_SYS_MALLOC_SIMPLE=y
 # CONFIG_SPL_SHARES_INIT_SP_ADDR is not set
 CONFIG_SPL_STACK=0x960000
+CONFIG_SPL_SYS_MALLOC_F_LEN=0x4000
 CONFIG_SYS_SPL_MALLOC=y
 CONFIG_HAS_CUSTOM_SPL_MALLOC_START=y
 CONFIG_CUSTOM_SYS_SPL_MALLOC_ADDR=0x42200000
Signature · 1 line
2.25.1
Acked-by on v1 1/1
#1 lore raw
Quoted 10 lines · Francesco Dolcini

From: Emanuele Ghidoli <[email protected]>

Set, previously unset, CONFIG_SPL_SYS_MALLOC_F_LEN to 0x4000 whose default value is 0x10000.
Early malloc() uses CRAM_S at 0x184000 (CFG_MALLOC_F_ADDR), this ram area end at 0x188000.

Fixes 2bc2f817cea7 ("board: toradex: add verdin imx8m plus support")
Quoted 16 lines

---
 configs/verdin-imx8mp_defconfig | 1 +

 1 file changed, 1 insertion(+)
configs/verdin-imx8mp_defconfig +0 -0
index 153c7c15197d..90588bfbd29f 100644
@@ -51,6 +51,7 @@ CONFIG_SPL_BOOTROM_SUPPORT=y

 CONFIG_SPL_SYS_MALLOC_SIMPLE=y
 # CONFIG_SPL_SHARES_INIT_SP_ADDR is not set
 CONFIG_SPL_STACK=0x960000
+CONFIG_SPL_SYS_MALLOC_F_LEN=0x4000
 CONFIG_SYS_SPL_MALLOC=y
 CONFIG_HAS_CUSTOM_SPL_MALLOC_START=y
 CONFIG_CUSTOM_SYS_SPL_MALLOC_ADDR=0x42200000

#2 lore raw

PATCH 1/1 configs: verdin-imx8mp: Fix wrong early malloc() heap size

In reply to Francesco Dolcini
Quoted 9 lines

From: Emanuele Ghidoli <[email protected]> Set, previously unset, CONFIG_SPL_SYS_MALLOC_F_LEN to 0x4000 whose default value is 0x10000.
Early malloc() uses CRAM_S at 0x184000 (CFG_MALLOC_F_ADDR), this ram area end at 0x188000.

Fixes 2bc2f817cea7 ("board: toradex: add verdin imx8m plus support")

Applied to u-boot-imx, next, thanks !

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,        Managing Director: Erika Unter  
HRB 165235 Munich,   Office: Kirchenstr.5, 82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: [email protected]
=====================================================================