Skip to contentSkip to conversation

mach-snapdragon: Kconfig: fix duplicate SYS_MALLOC_LEN regression

PATCH Superseded Sumit Singh Dhami 3 participants 5 messages Sep 30

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover mach-snapdragon: Kconfig: fix duplicate SYS_MALLOC_LEN regression

A previous commit fixes a duplicate SYS_MALLOC_LEN Kconfig entry in "arch/arm/mach-snapdragon/Kconfig" but keeps the smaller default (0x800000) instead of the larger one (0x10000000), and drops the larger value. This causes fastboot to fail on large image transfers with error:
"Malloc failed for: CHUNK_TYPE_RAW"

This series reverts that commit to restore the 0x10000000 default, then reapplies the duplicate-removal fix by removing the 0x800000 entry instead.

Sumit Singh Dhami (2):
Revert "mach-snapdragon: Kconfig: fix duplicate SYS_MALLOC_LEN"
mach-snapdragon: Kconfig: fix duplicate SYS_MALLOC_LEN

 arch/arm/mach-snapdragon/Kconfig | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
Signature · 2 lines
Best Regards,
Sumit Singh Dhami
#1 lore raw

PATCH 1/2 Revert "mach-snapdragon: Kconfig: fix duplicate SYS_MALLOC_LEN"

This reverts commit d3463a9ffcc685210cf305418582772c4b0253fb, which cause "Malloc failed for: CHUNK_TYPE_RAW" error in transferring large images via fastboot.

---
 arch/arm/mach-snapdragon/Kconfig | 3 +++
 1 file changed, 3 insertions(+)
arch/arm/mach-snapdragon/Kconfig +3 -0
index ceebd679651..45665eed2c8 100644
@@ -11,6 +11,9 @@ config SYS_VENDOR
 	  Based on this option board/<CONFIG_SYS_VENDOR>/<CONFIG_SYS_BOARD>
 	  will be used as the custom board directory.
 
+config SYS_MALLOC_LEN
+	default 0x10000000
+
 config SYS_MALLOC_F_LEN
 	default 0x2000
 
Signature · 1 line
2.55.0
#2 lore raw

PATCH 2/2 mach-snapdragon: Kconfig: fix duplicate SYS_MALLOC_LEN

In reply to Sumit Singh Dhami

Remove the duplicate SYS_MALLOC_LEN config with default value 0x800000. Removing the SYS_MALLOC_LEN config with default value 0x10000000 create issue in transferring large images via fastboot.

---
 arch/arm/mach-snapdragon/Kconfig | 3 ---
 1 file changed, 3 deletions(-)
arch/arm/mach-snapdragon/Kconfig +0 -3
index 45665eed2c8..fe53b0085ad 100644
@@ -23,9 +23,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 · 1 line
2.55.0
#3 lore raw
In reply to Sumit Singh Dhami

Hi Sumit,

Quoted 8 lines · Sumit Singh Dhami

A previous commit fixes a duplicate SYS_MALLOC_LEN Kconfig entry in "arch/arm/mach-snapdragon/Kconfig" but keeps the smaller default (0x800000) instead of the larger one (0x10000000), and drops the larger value. This causes fastboot to fail on large image transfers with error:
"Malloc failed for: CHUNK_TYPE_RAW"

This series reverts that commit to restore the 0x10000000 default, then reapplies the duplicate-removal fix by removing the 0x800000 entry instead.

just send 1 patch to fix the size and add a Fixes: tag please.

Quoted 8 lines

Sumit Singh Dhami (2):
Revert "mach-snapdragon: Kconfig: fix duplicate SYS_MALLOC_LEN"
mach-snapdragon: Kconfig: fix duplicate SYS_MALLOC_LEN

  arch/arm/mach-snapdragon/Kconfig | 6 +++---
  1 file changed, 3 insertions(+), 3 deletions(-)
#4 lore raw
In reply to Sumit Singh Dhami
Quoted 9 lines · Sumit Singh Dhami

A previous commit fixes a duplicate SYS_MALLOC_LEN Kconfig entry in "arch/arm/mach-snapdragon/Kconfig" but keeps the smaller default (0x800000) instead of the larger one (0x10000000), and drops the larger value. This causes fastboot to fail on large image transfers with error:
"Malloc failed for: CHUNK_TYPE_RAW"

This series reverts that commit to restore the 0x10000000 default, then reapplies the duplicate-removal fix by removing the 0x800000 entry instead.

Quoted 6 lines

Sumit Singh Dhami (2):
Revert "mach-snapdragon: Kconfig: fix duplicate SYS_MALLOC_LEN"
mach-snapdragon: Kconfig: fix duplicate SYS_MALLOC_LEN

 arch/arm/mach-snapdragon/Kconfig | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

I know there's many examples of setting SYS_MALLOC_LEN (and others) under arch/ or board/ but this is why I do prefer N lines of default X if Y in the location a symbol actually lives. So can you move the right value(s) for snapdragon to the toplevel Kconfig where SYS_MALLOC_LEN is prompted? Thanks.

Signature · 1 line
Tom