diff mbox series

arm: actions: increase SYS_MALLOC_F_LEN

Message ID 1604930468-4229-1-git-send-email-amittomer25@gmail.com
State Accepted
Commit 97949924f1aeca19c3fa0249e2bf35856d632cec
Delegated to: Tom Rini
Headers show
Series arm: actions: increase SYS_MALLOC_F_LEN | expand

Commit Message

Amit Tomer Nov. 9, 2020, 2:01 p.m. UTC
after commit 4ab3817ff16a ("clk: fixed-rate: Enable DM_FLAG_PRE_RELOC flag")
Cubieboard7 (based on actions S700 SoC) fails to boot.

It is due to the fact that the default value of CONFIG_SYS_MALLOC_F_LEN (0x400)
would not provide enough memory for clock device to probe (before relocation)
well.

This commit fixes it, by increasing SYS_MALLOC_F_LEN to value 0x2000.

Suggested-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Amit Singh Tomar <amittomer25@gmail.com>
---
 Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Tom Rini Nov. 9, 2020, 10:20 p.m. UTC | #1
On Mon, Nov 09, 2020 at 07:31:08PM +0530, Amit Singh Tomar wrote:

> after commit 4ab3817ff16a ("clk: fixed-rate: Enable DM_FLAG_PRE_RELOC flag")
> Cubieboard7 (based on actions S700 SoC) fails to boot.
> 
> It is due to the fact that the default value of CONFIG_SYS_MALLOC_F_LEN (0x400)
> would not provide enough memory for clock device to probe (before relocation)
> well.
> 
> This commit fixes it, by increasing SYS_MALLOC_F_LEN to value 0x2000.
> 
> Suggested-by: Andre Przywara <andre.przywara@arm.com>
> Signed-off-by: Amit Singh Tomar <amittomer25@gmail.com>

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

Patch

diff --git a/Kconfig b/Kconfig
index c94b10e9fa72..6dc20ed25b29 100644
--- a/Kconfig
+++ b/Kconfig
@@ -200,7 +200,7 @@  config SYS_MALLOC_F_LEN
 	default 0x2000 if (ARCH_IMX8 || ARCH_IMX8M || ARCH_MX7 || \
 			   ARCH_MX7ULP || ARCH_MX6 || ARCH_MX5 || \
 			   ARCH_LS1012A || ARCH_LS1021A || ARCH_LS1043A || \
-			   ARCH_LS1046A || ARCH_QEMU || ARCH_SUNXI)
+			   ARCH_LS1046A || ARCH_QEMU || ARCH_SUNXI || ARCH_OWL)
 	default 0x400
 	help
 	  Before relocation, memory is very limited on many platforms. Still,