[PATCH 1/1] riscv: alloc space exhausted

Tom Rini trini at konsulko.com
Tue Apr 5 16:15:53 CEST 2022


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 at 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 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
> 
> 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.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20220405/82d4efba/attachment.sig>


More information about the U-Boot mailing list