summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Davis <[email protected]>2025-12-08 13:06:33 -0600
committerTom Rini <[email protected]>2025-12-31 10:13:00 -0600
commitd2bd9ee7de35b80092e1abaf8feb576dba25128f (patch)
tree0eb38213fc41b49177dbd65978ba34fd2b24a52e
parent0082756320d713c412d6df13c0a3be9b29cf7496 (diff)
spl: Kconfig: k3: Increase malloc size after relocation for R5
Seems the "generous 2MB space" is no longer enough for SPL on some K3 R5 platforms so let's increase this to 4MB. That matches what we give to ARM64 SPL, so combine these. Signed-off-by: Andrew Davis <[email protected]> Reviewed-by: Bryan Brattlof <[email protected]>
-rw-r--r--common/spl/Kconfig3
-rw-r--r--configs/am64x_evm_r5_defconfig1
2 files changed, 1 insertions, 3 deletions
diff --git a/common/spl/Kconfig b/common/spl/Kconfig
index 3b7b6cafef8..0411a5edc9f 100644
--- a/common/spl/Kconfig
+++ b/common/spl/Kconfig
@@ -465,8 +465,7 @@ config SPL_STACK_R_ADDR
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 0x400000 if ARCH_K3
default 0x100000
help
Specify the amount of the stack to use as memory pool for
diff --git a/configs/am64x_evm_r5_defconfig b/configs/am64x_evm_r5_defconfig
index a675ea84fca..e1a748de5a9 100644
--- a/configs/am64x_evm_r5_defconfig
+++ b/configs/am64x_evm_r5_defconfig
@@ -23,7 +23,6 @@ CONFIG_SPL_HAS_BSS_LINKER_SECTION=y
CONFIG_SPL_BSS_START_ADDR=0x7019b800
CONFIG_SPL_BSS_MAX_SIZE=0x4000
CONFIG_SPL_STACK_R=y
-CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN=0x400000
CONFIG_SPL_SIZE_LIMIT=0x190000
CONFIG_SPL_SIZE_LIMIT_PROVIDE_STACK=0x4000
CONFIG_SPL_FS_FAT=y