]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
riscv: alloc space exhausted
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Tue, 5 Apr 2022 14:47:15 +0000 (16:47 +0200)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Wed, 6 Apr 2022 02:58:13 +0000 (10:58 +0800)
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.

Move the setting to /Kconfig where we define SYS_MALLOC_F_LEN for
other architectures too.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Rick Chen <rick@andestech.com>
Kconfig
arch/riscv/Kconfig

diff --git a/Kconfig b/Kconfig
index 112745440b5a2a3ff4887838a602f2d8ca257604..678317e4d3e5782180ecf9d37ada24507cac5d02 100644 (file)
--- a/Kconfig
+++ b/Kconfig
@@ -248,7 +248,7 @@ config SYS_MALLOC_F_LEN
        hex "Size of malloc() pool before relocation"
        depends on SYS_MALLOC_F
        default 0x1000 if AM33XX
-       default 0x4000 if SANDBOX
+       default 0x4000 if SANDBOX || RISCV
        default 0x2000 if (ARCH_IMX8 || ARCH_IMX8M || ARCH_MX7 || \
                           ARCH_MX7ULP || ARCH_MX6 || ARCH_MX5 || \
                           ARCH_LS1012A || ARCH_LS1021A || ARCH_LS1043A || \
index ba29e70acf72979d4f89800d5183f14fcc62f437..78e964db129a251aa9acb0ced000b74bb1ce93a8 100644 (file)
@@ -195,9 +195,6 @@ config ANDES_PLIC
          The Andes PLIC block holds memory-mapped claim and pending registers
          associated with software interrupt.
 
-config SYS_MALLOC_F_LEN
-       default 0x1000
-
 config SMP
        bool "Symmetric Multi-Processing"
        depends on SBI_V01 || !RISCV_SMODE