diff mbox

arm: tegra: raise CONFIG_SYS_MALLOC_LEN to 32mb

Message ID 1414177895-17347-1-git-send-email-michael.scott@linaro.org
State New
Headers show

Commit Message

Michael Scott Oct. 24, 2014, 7:11 p.m. UTC
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@linaro.org>
Cc: Tom Warren <twarren@nvidia.com>
Cc: Stephen Warren <swarren@nvidia.com>
---
 include/configs/tegra-common.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

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)
 
 /*