U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Davis <afd@ti.com>
To: Neha Malcom Francis <n-francis@ti.com>,
	Bryan Brattlof <bb@ti.com>, "Simon Glass" <sjg@chromium.org>,
	Tom Rini <trini@konsulko.com>
Cc: <u-boot@lists.denx.de>, Andrew Davis <afd@ti.com>
Subject: [PATCH 2/4] spl: Kconfig: k3: Increase malloc size after relocation for R5
Date: Mon, 8 Dec 2025 13:06:33 -0600	[thread overview]
Message-ID: <20251208190635.2044082-2-afd@ti.com> (raw)
In-Reply-To: <20251208190635.2044082-1-afd@ti.com>

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 <afd@ti.com>
---
 common/spl/Kconfig             | 3 +--
 configs/am64x_evm_r5_defconfig | 1 -
 2 files changed, 1 insertion(+), 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
-- 
2.39.2


  reply	other threads:[~2025-12-08 19:06 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-12-08 19:06 [PATCH 1/4] configs: Remove default malloc length for K3 R5 SPL Andrew Davis
2025-12-08 19:06 ` Andrew Davis [this message]
2025-12-09 14:11   ` [PATCH 2/4] spl: Kconfig: k3: Increase malloc size after relocation for R5 Bryan Brattlof
2025-12-08 19:06 ` [PATCH 3/4] spl: Kconfig: k3: Set common default for CUSTOM_SYS_MALLOC items Andrew Davis
2025-12-09 14:12   ` Bryan Brattlof
2025-12-08 19:06 ` [PATCH 4/4] spl: Kconfig: k3: Set common default for SPL_LOAD_FIT(_ADDRESS) Andrew Davis
2025-12-09 14:15   ` Bryan Brattlof
2025-12-09 12:26 ` [PATCH 1/4] configs: Remove default malloc length for K3 R5 SPL Bryan Brattlof
2025-12-31 19:00 ` Tom Rini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20251208190635.2044082-2-afd@ti.com \
    --to=afd@ti.com \
    --cc=bb@ti.com \
    --cc=n-francis@ti.com \
    --cc=sjg@chromium.org \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox