mach-snapdragon: Kconfig: fix SYS_MALLOC_LEN regression
Subsystems (2)
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"
---
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
@@ -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
@@ -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
Quoted 14 lines · Sumit Singh Dhami
Set the Snapdragon default for
SYS_MALLOC_LENto0x10000000at the symbol's primaryKconfigdefinition.The previous duplicate-removal change retains the smaller
0x800000default, 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 primarySYS_MALLOC_LENdefinition
- 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@@ -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 allocationarch/arm/mach-snapdragon/Kconfig +0
-3@@ -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 0x80000000Signature · 2 lines
Best regards, Sumit Singh Dhami