[PATCH v2] configs: Increase malloc size after relocation

Andrew Davis afd at ti.com
Wed Jan 11 15:29:59 CET 2023


On 1/11/23 6:41 AM, Neha Malcom Francis wrote:
> Current default size of 0x100000 is not capable of getting the FIT
> buffer during boot when transitioning to using binman generated boot
> images for certain K3 devices, so increase it to 0x400000. Since A72 SPL
> is coming after relocation to DDR this should not be an issue for any K3
> device, so make it default for all.
> 
> Signed-off-by: Neha Malcom Francis <n-francis at ti.com>
> ---

Acked-by: Andrew Davis <afd at ti.com>

> Changes since v1:
> 	- added ARM64 to conditions to default to 0x400000
> 
>   common/spl/Kconfig | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/common/spl/Kconfig b/common/spl/Kconfig
> index a25d8fd2e0..3c2af453ab 100644
> --- a/common/spl/Kconfig
> +++ b/common/spl/Kconfig
> @@ -385,6 +385,7 @@ config SPL_STACK_R_ADDR
>   config SPL_STACK_R_MALLOC_SIMPLE_LEN
>   	depends on SPL_STACK_R && SPL_SYS_MALLOC_SIMPLE
>   	hex "Size of malloc_simple heap after switching to DRAM SPL stack"
> +	default 0x400000 if ARCH_K3 && ARM64
>   	default 0x100000
>   	help
>   	  Specify the amount of the stack to use as memory pool for


More information about the U-Boot mailing list