configs: stm32mp15: Increase SYS_MALLOC_F_LEN
PATCH 1/1 configs: stm32mp15: Increase SYS_MALLOC_F_LEN
Using stm32mp15_defconfig with stm32mp157c-dk2-scmi.dtsi device tree with optee-4.10.0, we got:
U-Boot 2026.07-rc2-00052-g215496fec59b (May 18 2026 - 15:05:34 +0200)
CPU: STM32MP157CAC Rev.B
Model: STMicroelectronics STM32MP157C-DK2 SCMI Discovery Board
Board: stm32mp1 in trusted mode (st,stm32mp157c-dk2-scmi) alloc space exhausted ptr 80060 limit 80000
optee optee: PTA_BSEC invoke failed TEE err: 0, err:fffffff4 alloc space exhausted ptr 80040 limit 80000
alloc space exhausted ptr 80020 limit 80000
DRAM: alloc space exhausted ptr 80040 limit 80000 RAM init failed: -12initcall_run_f(): initcall dram_init() failed
CONFIG_SYS_MALLOC_F_LEN need to be increased to fix this issue
--- configs/stm32mp15_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
configs/stm32mp15_defconfig +1 -1
@@ -1,7 +1,7 @@ CONFIG_ARM=y CONFIG_ARCH_STM32MP=y CONFIG_TFABOOT=y -CONFIG_SYS_MALLOC_F_LEN=0x80000 +CONFIG_SYS_MALLOC_F_LEN=0x90000 CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0xc0100000 CONFIG_ENV_OFFSET=0x900000 CONFIG_ENV_SECT_SIZE=0x40000
---
base-commit: 215496fec59b3fa09256b4fb62f92af46e2ec7f9
change-id: 20260518-master-059c3c757a19
Best regards,
Signature · 1 line
Patrice Chotard <[email protected]>
Hi,
Quoted 42 lines · Patrice Chotard
Using
stm32mp15_defconfigwithstm32mp157c-dk2-scmi.dtsidevice tree with optee-4.10.0, we got:U-Boot 2026.07-rc2-00052-g215496fec59b (May 18 2026 - 15:05:34 +0200)
CPU: STM32MP157CAC Rev.B
Model: STMicroelectronics STM32MP157C-DK2 SCMI Discovery Board
Board: stm32mp1 in trusted mode (st,stm32mp157c-dk2-scmi) alloc space exhausted ptr 80060 limit 80000
optee optee:PTA_BSECinvoke failed TEE err: 0, err:fffffff4 alloc space exhausted ptr 80040 limit 80000
alloc space exhausted ptr 80020 limit 80000
DRAM: alloc space exhausted ptr 80040 limit 80000 RAM init failed: -12initcall_run_f(): initcalldram_init()failed
CONFIG_SYS_MALLOC_F_LENneed to be increased to fix this issueReported-by Yann Gautier <[email protected]>Signed-off-by Patrice Chotard <[email protected]>--- configs/stm32mp15_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)configs/stm32mp15_defconfig +1
-2@@ -1,7 +1,7 @@ CONFIG_ARM=y CONFIG_ARCH_STM32MP=y CONFIG_TFABOOT=y -CONFIG_SYS_MALLOC_F_LEN=0x80000 +CONFIG_SYS_MALLOC_F_LEN=0x90000 CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0xc0100000 CONFIG_ENV_OFFSET=0x900000 CONFIG_ENV_SECT_SIZE=0x40000 ---base-commit:
215496fec59b3fa09256b4fb62f92af46e2ec7f9
change-id: 20260518-master-059c3c757a19
Quoted 1 line
Best regards,
Thanks
Patrick
Quoted 45 lines · Patrick DELAUNAY
Hi,
Quoted 42 lines · Patrice Chotard
Using
stm32mp15_defconfigwithstm32mp157c-dk2-scmi.dtsidevice tree with optee-4.10.0, we got:U-Boot 2026.07-rc2-00052-g215496fec59b (May 18 2026 - 15:05:34 +0200)
CPU: STM32MP157CAC Rev.B
Model: STMicroelectronics STM32MP157C-DK2 SCMI Discovery Board
Board: stm32mp1 in trusted mode (st,stm32mp157c-dk2-scmi) alloc space exhausted ptr 80060 limit 80000
optee optee:PTA_BSECinvoke failed TEE err: 0, err:fffffff4 alloc space exhausted ptr 80040 limit 80000
alloc space exhausted ptr 80020 limit 80000
DRAM: alloc space exhausted ptr 80040 limit 80000 RAM init failed: -12initcall_run_f(): initcalldram_init()failed
CONFIG_SYS_MALLOC_F_LENneed to be increased to fix this issueReported-by Yann Gautier <[email protected]>Signed-off-by Patrice Chotard <[email protected]>---
configs/stm32mp15_defconfig | 2 +-1 file changed, 1 insertion(+), 1 deletion(-)configs/stm32mp15_defconfig +0
-0@@ -1,7 +1,7 @@
CONFIG_ARM=y
CONFIG_ARCH_STM32MP=y
CONFIG_TFABOOT=yconfigs/stm32mp15_defconfig +1
-1-CONFIG_SYS_MALLOC_F_LEN=0x80000 +CONFIG_SYS_MALLOC_F_LEN=0x90000
CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0xc0100000
CONFIG_ENV_OFFSET=0x900000
CONFIG_ENV_SECT_SIZE=0x40000---
base-commit:215496fec59b3fa09256b4fb62f92af46e2ec7f9
change-id: 20260518-master-059c3c757a19
Quoted 9 lines
Quoted 1 line
Best regards,
Reviewed-by Patrick Delaunay <[email protected]>Thanks
Patrick
Applied to u-boot-stm32/master
Thanks
Patrice