U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Francesco Dolcini <francesco@dolcini.it>
To: Andrew Davis <afd@ti.com>
Cc: Paresh Bhagat <p-bhagat@ti.com>,
	u-boot@lists.denx.de, trini@konsulko.com, praneeth@ti.com,
	vigneshr@ti.com, u-kumar1@ti.com, msp@baylibre.com,
	v-singh1@ti.com, anshuld@ti.com, m-chawdhry@ti.com,
	joao.goncalves@toradex.com, bb@ti.com, n-francis@ti.com,
	sebin.francis@ti.com
Subject: Re: [PATCH v2 3/4] arm: mack-k3: Kconfig: Add DM firmware reserved memory configs
Date: Thu, 2 Jul 2026 21:08:11 +0200	[thread overview]
Message-ID: <20260702190811.GA255841@francesco-nb> (raw)
In-Reply-To: <7794bc90-b69c-48bc-a2a8-2ecdf8ae1459@ti.com>

On Thu, Jul 02, 2026 at 01:12:08PM -0500, Andrew Davis wrote:
> On 7/1/26 2:50 AM, Paresh Bhagat wrote:
> > Add Kconfig options for DM firmware reserved memory for K3 SOCs that
> > support DM firmware (K3_DM_FW enabled)
> > - K3_DM_FW_RESERVED_ADDR: DM firmware address
> > - K3_DM_FW_RESERVED_SIZE: DM firmware reserved size
> > 
> > These configs will be used to fixup the kernel device tree's reserved
> > memory node for DM. Currently the fixup is only done for AM62A7 SoC, as
> > K3_DM_FW_RESERVED_SIZE is being used to update DM reserved memory from
> > 0xf0000 to 0x1f0000 as the current reserved carveout is insufficient to
> > accommodate the binary.
> > 
> > For other platforms, the addresses and sizes are based on the existing
> > device tree reserved memory. If needed for other SoCs, address and size
> > could be modified in Kconfig.
> > 
> > Signed-off-by: Paresh Bhagat <p-bhagat@ti.com>
> > ---
> >   arch/arm/mach-k3/Kconfig | 21 +++++++++++++++++++++
> >   1 file changed, 21 insertions(+)
> > 
> > diff --git a/arch/arm/mach-k3/Kconfig b/arch/arm/mach-k3/Kconfig
> > index a32ed3a9683..1b6678e72b7 100644
> > --- a/arch/arm/mach-k3/Kconfig
> > +++ b/arch/arm/mach-k3/Kconfig
> > @@ -165,6 +165,27 @@ config K3_DM_FW
> >   	  bootloader, it makes RM and PM services not being available
> >   	  during R5 SPL execution time.
> > +config K3_DM_FW_RESERVED_ADDR
> > +	hex "Start address of DM firmware reserved memory region"
> > +	depends on !SOC_K3_AM642 && !SOC_K3_AM654
> > +	default 0x9c900000 if SOC_K3_AM62A7 || SOC_K3_AM62P5
> > +	default 0x9db00000 if SOC_K3_AM625
> > +	default 0xa0100000 if SOC_K3_J721E || SOC_K3_J7200 || SOC_K3_J721S2 || SOC_K3_J722S || SOC_K3_J784S4
> > +	help
> > +	  Start address of the DDR region reserved for DM firmware at runtime.
> > +	  Used only to fixup the kernel device-tree reserved-memory node.
> > +
> > +config K3_DM_FW_RESERVED_SIZE
> > +	hex "Reserved memory size for DM firmware"
> > +	depends on !SOC_K3_AM642 && !SOC_K3_AM654
> > +	default 0x1f00000 if SOC_K3_AM62A7
> > +	default 0xc00000 if SOC_K3_AM625
> > +	default 0x1e00000 if TARGET_VERDIN_AM62P_A53 || TARGET_VERDIN_AM62P_R5
> 
> Why is this one board different from the rest of the AM62P boards? I doubt
> the folks at Toradex have make a custom DM firmware, guessing they are just
> the first to notice our default DM firmware goes outside the current reserved
> memory size. This size likely needs to be made common for all AM62P.

You are right, we are not customizing anything on this regard.

Francesco


  reply	other threads:[~2026-07-02 19:08 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-01  7:50 [PATCH v2 0/4] Add DM firmware reserved memory support Paresh Bhagat
2026-07-01  7:50 ` [PATCH v2 1/4] arm: mach-k3: Fix phandle corruption in fdt fixup Paresh Bhagat
2026-07-02 15:13   ` Andrew Davis
2026-07-08  4:02   ` Neha Malcom Francis
2026-07-01  7:50 ` [PATCH v2 2/4] arm: mach-k3: am62ax: Enable OF_SYSTEM_SETUP for AM62D2 Paresh Bhagat
2026-07-01  7:50 ` [PATCH v2 3/4] arm: mack-k3: Kconfig: Add DM firmware reserved memory configs Paresh Bhagat
2026-07-02 18:12   ` Andrew Davis
2026-07-02 19:08     ` Francesco Dolcini [this message]
2026-07-01  7:50 ` [PATCH v2 4/4] arm: mach-k3: Add DM reserved memory fixup Paresh Bhagat
2026-07-08  4:02   ` Neha Malcom Francis
2026-07-06  6:41 ` [PATCH v2 0/4] Add DM firmware reserved memory support Paresh Bhagat
2026-07-16 23:25 ` Tom Rini
2026-07-17  6:41   ` Paresh Bhagat
2026-07-17 16:16     ` 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=20260702190811.GA255841@francesco-nb \
    --to=francesco@dolcini.it \
    --cc=afd@ti.com \
    --cc=anshuld@ti.com \
    --cc=bb@ti.com \
    --cc=joao.goncalves@toradex.com \
    --cc=m-chawdhry@ti.com \
    --cc=msp@baylibre.com \
    --cc=n-francis@ti.com \
    --cc=p-bhagat@ti.com \
    --cc=praneeth@ti.com \
    --cc=sebin.francis@ti.com \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    --cc=u-kumar1@ti.com \
    --cc=v-singh1@ti.com \
    --cc=vigneshr@ti.com \
    /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