]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
spl: Kconfig: ARCH_K3: Set default SPL_STACK_R_MALLOC_SIMPLE_LEN for R5 build
authorVignesh Raghavendra <vigneshr@ti.com>
Fri, 31 May 2024 14:46:36 +0000 (20:16 +0530)
committerTom Rini <trini@konsulko.com>
Thu, 13 Jun 2024 22:29:26 +0000 (16:29 -0600)
All ARCH_K3 platforms need about of 2MB of malloc space post
reallocation. Since, this space is allocated from SDRAM, provide a
generous 2MB space by default.

Platforms requiring more than 2MB can override in defconfig as needed.

Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
Reviewed-by: Francesco Dolcini <francesco.dolcini@toradex.com>
common/spl/Kconfig
configs/am62px_evm_r5_defconfig
configs/am62x_evm_r5_defconfig
configs/j721s2_evm_r5_defconfig
configs/j784s4_evm_r5_defconfig
configs/phycore_am62x_r5_defconfig
configs/verdin-am62_r5_defconfig

index 6405374bcc12a0fecd453a4a5a48c299a5584f49..46bacad2d81b669c1fc9ce6e8cec4361256ca1ea 100644 (file)
@@ -409,6 +409,7 @@ config SPL_STACK_R_MALLOC_SIMPLE_LEN
        depends on SPL_STACK_R && SPL_SYS_MALLOC_SIMPLE
        hex "Size of malloc_simple heap after switching to DRAM SPL stack"
        default 0x400000 if ARCH_K3 && ARM64
+       default 0x200000 if ARCH_K3 && CPU_V7R
        default 0x100000
        help
          Specify the amount of the stack to use as memory pool for
index b365c7ea902fb96ff863feae81836c9295a20a8c..ace55696737a2c5057d9bffca984ec32bf9555ed 100644 (file)
@@ -23,7 +23,6 @@ CONFIG_SPL_HAS_BSS_LINKER_SECTION=y
 CONFIG_SPL_BSS_START_ADDR=0x43c4b000
 CONFIG_SPL_BSS_MAX_SIZE=0x3000
 CONFIG_SPL_STACK_R=y
-CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN=0x200000
 CONFIG_SPL_SIZE_LIMIT=0x3C000
 CONFIG_SPL_SIZE_LIMIT_PROVIDE_STACK=0x5000
 CONFIG_SPL_FS_FAT=y
index 648241488ed0f82ce985590bcc9de38640f81f7a..4b2e57b13a094b2debcea63d12b8855f097d4758 100644 (file)
@@ -26,7 +26,6 @@ CONFIG_SPL_HAS_BSS_LINKER_SECTION=y
 CONFIG_SPL_BSS_START_ADDR=0x43c3b000
 CONFIG_SPL_BSS_MAX_SIZE=0x3000
 CONFIG_SPL_STACK_R=y
-CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN=0x200000
 CONFIG_SPL_SIZE_LIMIT=0x3A7F0
 CONFIG_SPL_SIZE_LIMIT_PROVIDE_STACK=0x3500
 CONFIG_SPL_FS_FAT=y
index 7413ddd081061f8570ea0a072f7a49afa51a1581..e676dbc03e4d83ceab67cd5e045b0112d95c48f7 100644 (file)
@@ -25,7 +25,6 @@ CONFIG_SPL_HAS_BSS_LINKER_SECTION=y
 CONFIG_SPL_BSS_START_ADDR=0x41c76000
 CONFIG_SPL_BSS_MAX_SIZE=0xa000
 CONFIG_SPL_STACK_R=y
-CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN=0x140000
 CONFIG_SPL_SIZE_LIMIT=0x80000
 CONFIG_SPL_SIZE_LIMIT_PROVIDE_STACK=0x4000
 CONFIG_SPL_FS_FAT=y
index f5fe7432206b14ae821e78b339b25ccca8c261dc..d6a702cdfe966f478f43e9ea5b00079d738bc956 100644 (file)
@@ -24,7 +24,6 @@ CONFIG_SPL_HAS_BSS_LINKER_SECTION=y
 CONFIG_SPL_BSS_START_ADDR=0x41c76000
 CONFIG_SPL_BSS_MAX_SIZE=0xa000
 CONFIG_SPL_STACK_R=y
-CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN=0x140000
 CONFIG_SPL_SIZE_LIMIT=0x80000
 CONFIG_SPL_SIZE_LIMIT_PROVIDE_STACK=0x4000
 CONFIG_SPL_FS_FAT=y
index 0062a4e356988199615d93aae14e5b3f6cf495ef..82636e8890c2312454a970a601b792429abd7915 100644 (file)
@@ -27,7 +27,6 @@ CONFIG_SPL_HAS_BSS_LINKER_SECTION=y
 CONFIG_SPL_BSS_START_ADDR=0x43c3b000
 CONFIG_SPL_BSS_MAX_SIZE=0x3000
 CONFIG_SPL_STACK_R=y
-CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN=0x200000
 CONFIG_SPL_SIZE_LIMIT=0x3A7F0
 CONFIG_SPL_SIZE_LIMIT_PROVIDE_STACK=0x3500
 CONFIG_SPL_FS_FAT=y
index 06c63fa648805a778635ced540f4662edc853613..8266a7f6e8f1c5f8949d7d45fed0e608691b5a50 100644 (file)
@@ -23,7 +23,6 @@ CONFIG_SPL_HAS_BSS_LINKER_SECTION=y
 CONFIG_SPL_BSS_START_ADDR=0x43c3b000
 CONFIG_SPL_BSS_MAX_SIZE=0x3000
 CONFIG_SPL_STACK_R=y
-CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN=0x200000
 CONFIG_SPL_SIZE_LIMIT=0x3A7F0
 CONFIG_SPL_SIZE_LIMIT_PROVIDE_STACK=0x3500
 CONFIG_SPL_LIBDISK_SUPPORT=y