Set the Snapdragon default for SYS_MALLOC_LEN to 0x10000000
at the symbol's primary Kconfig definition.

The previous duplicate-removal change retains the smaller
0x800000 default, which causes large image transfers via fastboot
to fail with error: "Malloc failed for: CHUNK_TYPE_RAW"

Fixes: d3463a9ffcc6 ("mach-snapdragon: Kconfig: fix duplicate SYS_MALLOC_LEN")
Signed-off-by: Sumit Singh Dhami <[email protected]>
---
Changes in v2:
- Move the Snagdragon-specific default to the primary SYS_MALLOC_LEN definition
- Add a "fixes" tag
- Link to v1: 
https://lore.kernel.org/u-boot/[email protected]/T/#t
---
 Kconfig                          | 1 +
 arch/arm/mach-snapdragon/Kconfig | 3 ---
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/Kconfig b/Kconfig
index 67ce72d4270..a9b9c9bba70 100644
--- a/Kconfig
+++ b/Kconfig
@@ -328,6 +328,7 @@ config SYS_MALLOC_LEN
        default 0x4020000 if SUNXI_MINIMUM_DRAM_MB >= 256
        default 0x220000 if SUNXI_MINIMUM_DRAM_MB >= 64
        default 0x120000 if SUNXI_MINIMUM_DRAM_MB >= 32
+       default 0x10000000 if ARCH_SNAPDRAGON
        default 0x400000
        help
          This defines memory to be allocated for Dynamic allocation
diff --git a/arch/arm/mach-snapdragon/Kconfig b/arch/arm/mach-snapdragon/Kconfig
index 7f3af9b4364..2433a0a0636 100644
--- a/arch/arm/mach-snapdragon/Kconfig
+++ b/arch/arm/mach-snapdragon/Kconfig
@@ -20,9 +20,6 @@ config SPL_SYS_MALLOC_F
 config SPL_SYS_MALLOC_F_LEN
        default 0x2000
 
-config SYS_MALLOC_LEN
-       default 0x800000
-
 config LNX_KRNL_IMG_TEXT_OFFSET_BASE
        default 0x80000000
 
-- 
Best regards,
Sumit Singh Dhami

Reply via email to