[PATCH 1/1] riscv: alloc space exhausted

Heinrich Schuchardt heinrich.schuchardt at canonical.com
Tue Apr 5 15:54:58 CEST 2022


When trying to run qemu-riscv64_smode_defconfig with 32 harts booting
fails. The debug UART shows a message

    alloc space exhausted

32 is the current maximum number of harts for machine virt in QEMU 7.0.

Raise the default for SYS_MALLOC_F_LEN to 16 KiB.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>
---
 arch/riscv/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig
index ba29e70acf..6c4586269e 100644
--- a/arch/riscv/Kconfig
+++ b/arch/riscv/Kconfig
@@ -196,7 +196,7 @@ config ANDES_PLIC
 	  associated with software interrupt.
 
 config SYS_MALLOC_F_LEN
-	default 0x1000
+	default 0x4000
 
 config SMP
 	bool "Symmetric Multi-Processing"
-- 
2.34.1



More information about the U-Boot mailing list