[PATCH 1/1] riscv: alloc space exhausted

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@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"

Hi Heinrich,
On Tue, Apr 5, 2022 at 10:55 AM Heinrich Schuchardt heinrich.schuchardt@canonical.com wrote:
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@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
Here I ask the same question you asked me some weeks ago: https://lists.denx.de/pipermail/u-boot/2022-March/478742.html
We have all defaults for SYS_MALLOC_F_LEN in /Kconfig. Why should riscv put it somewhere else?

On Tue, Apr 05, 2022 at 11:14:19AM -0300, Fabio Estevam wrote:
Hi Heinrich,
On Tue, Apr 5, 2022 at 10:55 AM Heinrich Schuchardt heinrich.schuchardt@canonical.com wrote:
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@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
Here I ask the same question you asked me some weeks ago: https://lists.denx.de/pipermail/u-boot/2022-March/478742.html
We have all defaults for SYS_MALLOC_F_LEN in /Kconfig. Why should riscv put it somewhere else?
Indeed, it generally should not. There's a few wide-spread exceptions, but this should not be one of them.
participants (3)
-
Fabio Estevam
-
Heinrich Schuchardt
-
Tom Rini