diff mbox

[U-Boot,v6,08/10] zynq-common: increase malloc pool len by dfu mmc file buffer size

Message ID 1425474090-5522-9-git-send-email-p.marczak@samsung.com
State Accepted
Delegated to: Tom Rini
Headers show

Commit Message

Przemyslaw Marczak March 4, 2015, 1:01 p.m. UTC
The dfu mmc file buffer, which was static, now is allocated
by memalign(), so the malloc pool len should be also increased.

Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
Cc: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
Cc: Michal Simek <monstr@monstr.eu>
---
Changes v6:
- new commit
---
 include/configs/zynq-common.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Michal Simek March 4, 2015, 1:57 p.m. UTC | #1
On 03/04/2015 02:01 PM, Przemyslaw Marczak wrote:
> The dfu mmc file buffer, which was static, now is allocated
> by memalign(), so the malloc pool len should be also increased.
> 
> Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
> Cc: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
> Cc: Michal Simek <monstr@monstr.eu>
> ---
> Changes v6:
> - new commit
> ---
>  include/configs/zynq-common.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/include/configs/zynq-common.h b/include/configs/zynq-common.h
> index 864528a..485babd 100644
> --- a/include/configs/zynq-common.h
> +++ b/include/configs/zynq-common.h
> @@ -255,7 +255,7 @@
>  #define CONFIG_SYS_MEMTEST_START	CONFIG_SYS_SDRAM_BASE
>  #define CONFIG_SYS_MEMTEST_END		(CONFIG_SYS_SDRAM_BASE + 0x1000)
>  
> -#define CONFIG_SYS_MALLOC_LEN		0xC00000
> +#define CONFIG_SYS_MALLOC_LEN		0x1400000
>  #define CONFIG_SYS_INIT_RAM_ADDR	CONFIG_SYS_SDRAM_BASE
>  #define CONFIG_SYS_INIT_RAM_SIZE	CONFIG_SYS_MALLOC_LEN
>  #define CONFIG_SYS_INIT_SP_ADDR		(CONFIG_SYS_INIT_RAM_ADDR + \
> 

Acked-by: Michal Simek <michal.simek@xilinx.com>

Thanks,
Michal
Tom Rini March 9, 2015, 4:46 p.m. UTC | #2
On Wed, Mar 04, 2015 at 02:01:28PM +0100, Przemyslaw Marczak wrote:

> The dfu mmc file buffer, which was static, now is allocated
> by memalign(), so the malloc pool len should be also increased.
> 
> Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
> Cc: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
> Cc: Michal Simek <monstr@monstr.eu>
> Acked-by: Michal Simek <michal.simek@xilinx.com>

Applied to u-boot/master, thanks!
diff mbox

Patch

diff --git a/include/configs/zynq-common.h b/include/configs/zynq-common.h
index 864528a..485babd 100644
--- a/include/configs/zynq-common.h
+++ b/include/configs/zynq-common.h
@@ -255,7 +255,7 @@ 
 #define CONFIG_SYS_MEMTEST_START	CONFIG_SYS_SDRAM_BASE
 #define CONFIG_SYS_MEMTEST_END		(CONFIG_SYS_SDRAM_BASE + 0x1000)
 
-#define CONFIG_SYS_MALLOC_LEN		0xC00000
+#define CONFIG_SYS_MALLOC_LEN		0x1400000
 #define CONFIG_SYS_INIT_RAM_ADDR	CONFIG_SYS_SDRAM_BASE
 #define CONFIG_SYS_INIT_RAM_SIZE	CONFIG_SYS_MALLOC_LEN
 #define CONFIG_SYS_INIT_SP_ADDR		(CONFIG_SYS_INIT_RAM_ADDR + \