From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jagan Teki Date: Mon, 8 Jun 2020 07:50:55 -0400 Subject: [PATCH v2 1/1] arm: sunxi: increase SYS_MALLOC_F_LEN In-Reply-To: <20200608105949.5809-1-xypron.glpk@gmx.de> References: <20200608105949.5809-1-xypron.glpk@gmx.de> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Mon, Jun 8, 2020 at 6:59 AM Heinrich Schuchardt wrote: > > The current default of 0x400 for SYS_MALLOC_F_LEN is too small if any > additional drivers marked as DM_FLAG_PRE_RELOC are loaded before > relocation. > > CONFIG_RSA=y which is needed for UEFI secure boot or for FIT image > verification loads the driver mod_exp_sw which has DM_FLAG_PRE_RELOC. > > CONFIG_LOG=Y is another setting requiring additional early malloc > area, cf. log_init(). > > When running pine64-lts_defconfig with CONFIG_RSA=y and debug UART enabled > we see as output in main U-Boot > > alloc_simple() alloc space exhausted > > With this patch the default values of SYS_MALLOC_F_LEN is raised to 0x2000. > The default for SPL_SYS_MALLOC_F_LEN on ARCH_SUNXI is explicitely set to > 0x400 to avoid an increased usage of SRAM on elder SoCs. > > Signed-off-by: Heinrich Schuchardt > --- Reviewed-by: Jagan Teki