Skip to contentSkip to conversation

mach-snapdragon: Kconfig: fix SYS_MALLOC_LEN regression

PATCH In review Sumit Singh Dhami 2 participants 2 messages Oct 1 – Nov 16

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 mach-snapdragon: Kconfig: fix SYS_MALLOC_LEN regression

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")

---
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(-)
Kconfig +1 -0
index 67ce72d4270..a9b9c9bba70 100644
@@ -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
arch/arm/mach-snapdragon/Kconfig +0 -3
index 7f3af9b4364..2433a0a0636 100644
@@ -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
 
Signature · 2 lines
Best regards,
Sumit Singh Dhami
Reviewed-by on v2 1/1
#1 lore raw
Quoted 14 lines · Sumit Singh Dhami

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")

---
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

Quoted 5 lines
---
 Kconfig                          | 1 +
 arch/arm/mach-snapdragon/Kconfig | 3 ---
 2 files changed, 1 insertion(+), 3 deletions(-)

-Sumit

Quoted 32 lines
Kconfig +1 -0
index 67ce72d4270..a9b9c9bba70 100644
@@ -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
arch/arm/mach-snapdragon/Kconfig +0 -3
index 7f3af9b4364..2433a0a0636 100644
@@ -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
 
Signature · 2 lines
Best regards,
Sumit Singh Dhami