[PATCH] imx8m: Use a sane SYS_MALLOC_F_LEN default

Tom Rini trini at konsulko.com
Wed Mar 23 17:13:45 CET 2022


On Wed, Mar 23, 2022 at 04:07:48PM +0100, Heinrich Schuchardt wrote:
> On 3/23/22 15:47, Fabio Estevam wrote:
> > From: Fabio Estevam <festevam at denx.de>
> > 
> > When adding new features to imx8m boards, such as DM clock support,
> > the malloc area can be exhausted.
> > 
> > To avoid such issue, provide a reasonable default for the
> > SYS_MALLOC_F_LEN size.
> > 
> > Suggested-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
> > Signed-off-by: Fabio Estevam <festevam at denx.de>
> > ---
> >   arch/arm/mach-imx/imx8m/Kconfig | 3 +++
> >   1 file changed, 3 insertions(+)
> > 
> > diff --git a/arch/arm/mach-imx/imx8m/Kconfig b/arch/arm/mach-imx/imx8m/Kconfig
> > index fae704999533..c7b7121fa845 100644
> > --- a/arch/arm/mach-imx/imx8m/Kconfig
> > +++ b/arch/arm/mach-imx/imx8m/Kconfig
> > @@ -21,6 +21,9 @@ config IMX8MP
> >   	bool
> >   	select IMX8M
> > 
> > +config SYS_MALLOC_F_LEN
> > +	default 0x10000
> 
> We have all defaults for SYS_MALLOC_F_LEN in /Kconfig. Why should
> i.mx8nm put it somewhere else?

I'm surprised Kconfig isn't complaining even, since there's already a
default for ARCH_IMX8M in ./Kconfig.

-- 
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/20220323/0e6e776d/attachment.sig>


More information about the U-Boot mailing list