[RESEND PATCH 1/4] omap3: igep00x0: Increase malloc() pool size

Enric Balletbo Serra eballetbo at gmail.com
Thu May 30 11:29:54 CEST 2024


Hi Javier,

Many thanks for your patches. They look great


Missatge de Javier Martinez Canillas <javier at dowhile0.org> del dia
ds., 18 de maig 2024 a les 15:06:
>
> From: Javier Martinez Canillas <javierm at redhat.com>
>
> The IGEPv2 board boot started to fail since the commit afd4f15a39de ("spi:
> omap3_spi: Read platform data in ofdata_to_platdata()"). Because this made
> the OMAP3 SPI controller driver to allocate its platform data before doing
> a relocation, but the igep0x00 config sets this pool size to just 1 KiB.
>
> Increase the pre-relocation malloc heap size to 16 KiB, as is set by other
> OMAP3 boards. This not only restores booting but also makes it consistent.
>
> Leave the SPL pool size to the previous 1 KiB size since 16 KiB may not be
> a possible size in that constrained environment and is also the value that
> is set by other OMAP3 boards.
>
> Signed-off-by: Javier Martinez Canillas <javierm at redhat.com>

Reviewed-by: Enric Balletbo i Serra <eballetbo at gmail.com>

> ---
>
>  configs/igep00x0_defconfig | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/configs/igep00x0_defconfig b/configs/igep00x0_defconfig
> index 261f71acc1dd..e4d25556e3f3 100644
> --- a/configs/igep00x0_defconfig
> +++ b/configs/igep00x0_defconfig
> @@ -1,6 +1,6 @@
>  CONFIG_ARM=y
>  CONFIG_ARCH_OMAP2PLUS=y
> -CONFIG_SYS_MALLOC_F_LEN=0x400
> +CONFIG_SYS_MALLOC_F_LEN=0x4000
>  CONFIG_TI_COMMON_CMD_OPTIONS=y
>  CONFIG_NR_DRAM_BANKS=2
>  CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y
> @@ -10,6 +10,7 @@ CONFIG_DEFAULT_DEVICE_TREE="omap3-igep0020"
>  CONFIG_SPL_TEXT_BASE=0x40200000
>  CONFIG_TARGET_OMAP3_IGEP00X0=y
>  CONFIG_SYS_MONITOR_LEN=262144
> +CONFIG_SPL_SYS_MALLOC_F_LEN=0x400
>  CONFIG_SPL=y
>  CONFIG_DISTRO_DEFAULTS=y
>  CONFIG_BOOTDELAY=3
> --
> 2.45.0
>


More information about the U-Boot mailing list