Re: [U-Boot] [PATCH] ARM: UniPhier: decrease pre-reloc malloc area size

2014-11-11 Thread Masahiro YAMADA
2014-11-11 21:50 GMT+09:00 Masahiro Yamada :
> In the current implementation of the boot sequence of UniPhier
> platform, 32KB temporary RAM is available before relocation.
> The malloc area and the stack shares the 32KB area.
>
> With CONFIG_SYS_MALLOC_F_LEN set to 0x7000 (28KB), only 0x1000 (4KB)
> is left for the stack.  In some use cases, the system hangs up
> with stack over-flow.
>
> Even with driver-model UART enabled, the malloc area of 0x2000 (8KB)
> should be enough.
>
> Signed-off-by: Masahiro Yamada 


Applied to u-boot-uniphier/master.



-- 
Best Regards
Masahiro Yamada
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH] ARM: UniPhier: decrease pre-reloc malloc area size

2014-11-11 Thread Masahiro Yamada
In the current implementation of the boot sequence of UniPhier
platform, 32KB temporary RAM is available before relocation.
The malloc area and the stack shares the 32KB area.

With CONFIG_SYS_MALLOC_F_LEN set to 0x7000 (28KB), only 0x1000 (4KB)
is left for the stack.  In some use cases, the system hangs up
with stack over-flow.

Even with driver-model UART enabled, the malloc area of 0x2000 (8KB)
should be enough.

Signed-off-by: Masahiro Yamada 
---

 include/configs/uniphier-common.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/configs/uniphier-common.h 
b/include/configs/uniphier-common.h
index b18ae6d..ef81914 100644
--- a/include/configs/uniphier-common.h
+++ b/include/configs/uniphier-common.h
@@ -43,7 +43,7 @@ are defined. Select only one of them."
 #define CONFIG_SMC911X_BASECONFIG_SUPPORT_CARD_ETHER_BASE
 #define CONFIG_SMC911X_32_BIT
 
-#define CONFIG_SYS_MALLOC_F_LEN  0x7000
+#define CONFIG_SYS_MALLOC_F_LEN  0x2000
 
 /*---
  * MMU and Cache Setting
-- 
1.9.1

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot