[PATCH v2] imx8m: Use a sane SYS_MALLOC_F_LEN default

Tom Rini trini at konsulko.com
Wed Mar 23 17:16:04 CET 2022


On Wed, Mar 23, 2022 at 01:10:20PM -0300, 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>
> ---
> Changes since v1:
> - Add the imx8m default inside the main Kconfig - Heinrich
> 
>  Kconfig | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/Kconfig b/Kconfig
> index 9dd9ec7f6dfb..060e327e30c6 100644
> --- a/Kconfig
> +++ b/Kconfig
> @@ -232,10 +232,11 @@ config SYS_MALLOC_F_LEN
>  	depends on SYS_MALLOC_F
>  	default 0x1000 if AM33XX
>  	default 0x4000 if SANDBOX
> -	default 0x2000 if (ARCH_IMX8 || ARCH_IMX8M || ARCH_MX7 || \
> +	default 0x2000 if (ARCH_IMX8 || ARCH_MX7 || \
>  			   ARCH_MX7ULP || ARCH_MX6 || ARCH_MX5 || \
>  			   ARCH_LS1012A || ARCH_LS1021A || ARCH_LS1043A || \
>  			   ARCH_LS1046A || ARCH_QEMU || ARCH_SUNXI || ARCH_OWL)
> +	default 0x10000 if ARCH_IMX8M

It should probably also cover the rest of imx8, and how close to you
think imx6 is?  And, git grep'ing I see a bunch of layerscape also
overriding this with something larger.

-- 
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/3651d9fd/attachment.sig>


More information about the U-Boot mailing list