mach-snapdragon: Kconfig: fix duplicate SYS_MALLOC_LEN regression
Subsystems (2)
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
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
@@ -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
PATCH 2/2 mach-snapdragon: Kconfig: fix duplicate SYS_MALLOC_LEN
In reply to Sumit Singh DhamiRemove 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
@@ -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
Hi Sumit,
Quoted 8 lines · Sumit Singh Dhami
A previous commit fixes a duplicate
SYS_MALLOC_LENKconfigentry 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
0x10000000default, then reapplies the duplicate-removal fix by removing the0x800000entry 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 duplicateSYS_MALLOC_LEN"
mach-snapdragon:Kconfig: fix duplicateSYS_MALLOC_LENarch/arm/mach-snapdragon/Kconfig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
Quoted 9 lines · Sumit Singh Dhami
A previous commit fixes a duplicate
SYS_MALLOC_LENKconfigentry 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
0x10000000default, then reapplies the duplicate-removal fix by removing the0x800000entry instead.
Quoted 6 lines
Sumit Singh Dhami (2):
Revert "mach-snapdragon:Kconfig: fix duplicateSYS_MALLOC_LEN"
mach-snapdragon:Kconfig: fix duplicateSYS_MALLOC_LENarch/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