* [PATCH] spl: increase SPL_SYS_MALLOC_SIZE when using BIOSEMU on RISC-V
@ 2024-11-11 19:24 Yuri Zaporozhets
2024-11-18 7:18 ` Leo Liang
0 siblings, 1 reply; 2+ messages in thread
From: Yuri Zaporozhets @ 2024-11-11 19:24 UTC (permalink / raw)
To: u-boot; +Cc: Yuri Zaporozhets
If BIOSEMU is compiled for RISC-V (SiFive Unmatched board) and the function
dm_pci_run_vga_bios() is executed, U-Boot stops with error message saying
that the SPL malloc pool is too small. So increase the default pool size
when both BIOSEMU and RISCV parameters are set.
Signed-off-by: Yuri Zaporozhets <yuriz@qrv-systems.net>
---
common/spl/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/common/spl/Kconfig b/common/spl/Kconfig
index 045fcac10a..240543c9c7 100644
--- a/common/spl/Kconfig
+++ b/common/spl/Kconfig
@@ -462,6 +462,7 @@ config SPL_CUSTOM_SYS_MALLOC_ADDR
config SPL_SYS_MALLOC_SIZE
hex "Size of the SPL malloc pool"
depends on SPL_SYS_MALLOC
+ default 0x180000 if BIOSEMU && RISCV
default 0x100000
config SPL_READ_ONLY
--
2.39.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] spl: increase SPL_SYS_MALLOC_SIZE when using BIOSEMU on RISC-V
2024-11-11 19:24 [PATCH] spl: increase SPL_SYS_MALLOC_SIZE when using BIOSEMU on RISC-V Yuri Zaporozhets
@ 2024-11-18 7:18 ` Leo Liang
0 siblings, 0 replies; 2+ messages in thread
From: Leo Liang @ 2024-11-18 7:18 UTC (permalink / raw)
To: Yuri Zaporozhets; +Cc: u-boot
On Mon, Nov 11, 2024 at 08:24:04PM +0100, Yuri Zaporozhets wrote:
> If BIOSEMU is compiled for RISC-V (SiFive Unmatched board) and the function
> dm_pci_run_vga_bios() is executed, U-Boot stops with error message saying
> that the SPL malloc pool is too small. So increase the default pool size
> when both BIOSEMU and RISCV parameters are set.
>
> Signed-off-by: Yuri Zaporozhets <yuriz@qrv-systems.net>
> ---
> common/spl/Kconfig | 1 +
> 1 file changed, 1 insertion(+)
Applied to u-boot-riscv/master, thanks.
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-11-18 7:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-11 19:24 [PATCH] spl: increase SPL_SYS_MALLOC_SIZE when using BIOSEMU on RISC-V Yuri Zaporozhets
2024-11-18 7:18 ` Leo Liang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox