Skip to contentSkip to conversation

configs: Increase malloc size after relocation

PATCH In review Neha Malcom Francis 3 participants 3 messages Jan 11, 2023 – Jan 19, 2023

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 configs: Increase malloc size after relocation

Current default size of 0x100000 is not capable of getting the FIT buffer during boot when transitioning to using binman generated boot images for certain K3 devices, so increase it to 0x400000. Since A72 SPL is coming after relocation to DDR this should not be an issue for any K3 device, so make it default for all.

---
Changes since v1:
- added ARM64 to conditions to default to 0x400000

 common/spl/Kconfig | 1 +
 1 file changed, 1 insertion(+)
common/spl/Kconfig +1 -0
index a25d8fd2e0..3c2af453ab 100644
@@ -385,6 +385,7 @@ config SPL_STACK_R_ADDR
 config SPL_STACK_R_MALLOC_SIMPLE_LEN
 	depends on SPL_STACK_R && SPL_SYS_MALLOC_SIMPLE
 	hex "Size of malloc_simple heap after switching to DRAM SPL stack"
+	default 0x400000 if ARCH_K3 && ARM64
 	default 0x100000
 	help
 	  Specify the amount of the stack to use as memory pool for
Signature · 1 line
2.34.1
Acked-by on v2 1/1
#1 lore raw
Quoted 8 lines · Neha Malcom Francis

Current default size of 0x100000 is not capable of getting the FIT buffer during boot when transitioning to using binman generated boot images for certain K3 devices, so increase it to 0x400000. Since A72 SPL is coming after relocation to DDR this should not be an issue for any K3 device, so make it default for all.

---

Quoted 18 lines

Changes since v1:
- added ARM64 to conditions to default to 0x400000

  common/spl/Kconfig | 1 +
  1 file changed, 1 insertion(+)
common/spl/Kconfig +1 -0
index a25d8fd2e0..3c2af453ab 100644
@@ -385,6 +385,7 @@ config SPL_STACK_R_ADDR
  config SPL_STACK_R_MALLOC_SIMPLE_LEN
  	depends on SPL_STACK_R && SPL_SYS_MALLOC_SIMPLE
  	hex "Size of malloc_simple heap after switching to DRAM SPL stack"
+	default 0x400000 if ARCH_K3 && ARM64
  	default 0x100000
  	help
  	  Specify the amount of the stack to use as memory pool for
#2 lore raw
In reply to Neha Malcom Francis
Quoted 8 lines · Neha Malcom Francis

Current default size of 0x100000 is not capable of getting the FIT buffer during boot when transitioning to using binman generated boot images for certain K3 devices, so increase it to 0x400000. Since A72 SPL is coming after relocation to DDR this should not be an issue for any K3 device, so make it default for all.

Applied to u-boot/master, thanks!

Signature · 1 line
Tom