Skip to contentSkip to conversation

rockchip: rk3568: Fix alloc space exhausted in SPL

PATCH In review Jonas Karlman 2 participants 2 messages Jul 2, 2023 – Jul 26, 2023

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rockchip: rk3568: Fix alloc space exhausted in SPL

Current SYS_MALLOC_F_LEN of 0x2000 (8 KB) used in SPL is too small for some RK3568 boards. SPL will print following during boot:

alloc space exhausted

Increase the default SYS_MALLOC_F_LEN to 0x20000 (128 KB) to mitigate.

Fixes 2a950e3ba506 ("rockchip: Add rk3568 architecture core")
---
 arch/arm/mach-rockchip/rk3568/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-rockchip/rk3568/Kconfig +1 -1
index 94e04b79e7d8..4424a3c47be1 100644
@@ -29,7 +29,7 @@ config SYS_SOC
 	default "rk3568"
 
 config SYS_MALLOC_F_LEN
-	default 0x2000
+	default 0x20000
 
 source "board/rockchip/evb_rk3568/Kconfig"
 source "board/anbernic/rgxx3_rk3566/Kconfig"
Signature · 1 line
2.41.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 9 lines · Jonas Karlman

Current SYS_MALLOC_F_LEN of 0x2000 (8 KB) used in SPL is too small for some RK3568 boards. SPL will print following during boot:

alloc space exhausted

Increase the default SYS_MALLOC_F_LEN to 0x20000 (128 KB) to mitigate.

Fixes 2a950e3ba506 ("rockchip: Add rk3568 architecture core")

Thanks,
- Kever

Quoted 17 lines
---
  arch/arm/mach-rockchip/rk3568/Kconfig | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-rockchip/rk3568/Kconfig +1 -1
index 94e04b79e7d8..4424a3c47be1 100644
@@ -29,7 +29,7 @@ config SYS_SOC
  	default "rk3568"
 
  config SYS_MALLOC_F_LEN
-	default 0x2000
+	default 0x20000
 
  source "board/rockchip/evb_rk3568/Kconfig"
  source "board/anbernic/rgxx3_rk3566/Kconfig"