[U-Boot] [PATCH] arm: tegra: raise CONFIG_SYS_MALLOC_LEN to 32mb

Michael Scott michael.scott at linaro.org
Fri Oct 24 21:11:35 CEST 2014


Due to a new fastboot use case and an 8mb DFU test being
added, the sys malloc limit of 4mb should be raised.

Fastboot flash of a sparse filesystem images requires
large DMA aligned allocations in the tegra_mmc driver.
When I ran fastboot flash tests on Jetson-TK1, the largest
allocation I encounted was ~26mb using a sparsed system.img
test file.

Choosing 32mb as a "safe" new limit.

Signed-off-by: Michael Scott <michael.scott at linaro.org>
Cc: Tom Warren <twarren at nvidia.com>
Cc: Stephen Warren <swarren at nvidia.com>
---
 include/configs/tegra-common.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/configs/tegra-common.h b/include/configs/tegra-common.h
index 5d2b12a..88f6c94 100644
--- a/include/configs/tegra-common.h
+++ b/include/configs/tegra-common.h
@@ -45,7 +45,7 @@
 /*
  * Size of malloc() pool
  */
-#define CONFIG_SYS_MALLOC_LEN		(4 << 20)	/* 4MB  */
+#define CONFIG_SYS_MALLOC_LEN		(32 << 20)	/* 32MB  */
 #define CONFIG_SYS_MALLOC_F_LEN	(1 << 10)
 
 /*
-- 
1.9.1



More information about the U-Boot mailing list