From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chee, Tien Fong Date: Fri, 1 Feb 2019 04:11:44 +0000 Subject: [U-Boot] [PATCH v7 7/7] ARM: socfpga: Increase Malloc pool size to support FAT filesystem in SPL In-Reply-To: <3fa6f0f9-9c37-ba3c-47a2-acca5294429d@denx.de> References: <1548946304-17460-1-git-send-email-tien.fong.chee@intel.com> <1548946304-17460-8-git-send-email-tien.fong.chee@intel.com> <3fa6f0f9-9c37-ba3c-47a2-acca5294429d@denx.de> Message-ID: <1548994303.11133.29.camel@intel.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: u-boot@lists.denx.de On Thu, 2019-01-31 at 15:58 +0100, Marek Vasut wrote: > On 1/31/19 3:51 PM, tien.fong.chee at intel.com wrote: > > > > From: Tien Fong Chee > > > > After some series of patches to maximise reusable of memory pool, > > here come > > to result of reasonable size required for whole SDMMC boot working > > on A10 > > SoCDK. Size required come from default max cluster(0x100000) + > The max cluster size is 0x10000 , one zero too many in the > description. Good catch!! Blurry vision on my eyes when i was working too late :). > > > > > others(0x2000) + additional memory for headroom(0x3000). > > > > Signed-off-by: Tien Fong Chee > > > > --- > > > > changes for v7 > > - Added 0x3000 for memory headroom. > > --- > >  include/configs/socfpga_common.h | 4 ++-- > >  1 file changed, 2 insertions(+), 2 deletions(-) > > > > diff --git a/include/configs/socfpga_common.h > > b/include/configs/socfpga_common.h > > index 4551cb2..548b458 100644 > > --- a/include/configs/socfpga_common.h > > +++ b/include/configs/socfpga_common.h > > @@ -1,6 +1,6 @@ > >  /* SPDX-License-Identifier: GPL-2.0+ */ > >  /* > > - * Copyright (C) 2012 Altera Corporation > > + * Copyright (C) 2012-2019 Altera Corporation > >   */ > >  #ifndef __CONFIG_SOCFPGA_COMMON_H__ > >  #define __CONFIG_SOCFPGA_COMMON_H__ > > @@ -258,7 +258,7 @@ unsigned int > > cm_get_qspi_controller_clk_hz(void); > >  #if defined(CONFIG_TARGET_SOCFPGA_ARRIA10) > >  /* SPL memory allocation configuration, this is for FAT > > implementation */ > >  #ifndef CONFIG_SYS_SPL_MALLOC_START > > -#define CONFIG_SYS_SPL_MALLOC_SIZE 0x00010000 > > +#define CONFIG_SYS_SPL_MALLOC_SIZE 0x00015000 > >  #define CONFIG_SYS_SPL_MALLOC_START (CONFIG_SYS_INIT_RAM_SI > > ZE - \ > >    CONFIG_SYS_SPL_MALLOC_SIZ > > E + \ > >    CONFIG_SYS_INIT_RAM_ADDR) > > >