All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tom Rini <trini@konsulko.com>
To: Nishanth Menon <nm@ti.com>
Cc: Anshul Dalal <anshuld@ti.com>, Andrew Davis <afd@ti.com>,
	u-boot@lists.denx.de, vigneshr@ti.com, robertcnelson@gmail.com,
	w.egorov@phytec.de, francesco.dolcini@toradex.com,
	ggiordano@phytec.com, m-chawdhry@ti.com, a-nandan@ti.com
Subject: Re: [PATCH v1 0/4] k3: migrate SPL_TEXT_BASE to new address
Date: Thu, 17 Apr 2025 08:16:03 -0600	[thread overview]
Message-ID: <20250417141603.GW5495@bill-the-cat> (raw)
In-Reply-To: <20250417113013.mrlhl65farooaiq2@extradite>

[-- Attachment #1: Type: text/plain, Size: 3970 bytes --]

On Thu, Apr 17, 2025 at 06:30:13AM -0500, Nishanth Menon wrote:
> On 14:51-20250417, Anshul Dalal wrote:
> > On Thu Apr 17, 2025 at 1:21 AM IST, Nishanth Menon wrote:
> > > On 11:38-20250416, Andrew Davis wrote:
> > >> > > > 	How about u-boot documentation?
> > >> > > 
> > >> > > I will update that in the next revision along with any feedback I
> > >> > > receive on this patch.
> > >> > 
> > >> > IMHO, This change is too intrusive and impacts downstream customers
> > >> > including inflight production devices.
> > >> > 
> > >> 
> > >> Could you elaborate a little?
> > >> 
> > >> They do not even need to update their TF-A version, if they want to
> > >> use their current version they simply recompile it with a single
> > >> extra build flag:
> > >> 
> > >> PRELOADED_BL33_BASE=0x822000000
> > >
> > > For folks who are trying to boot linux from TFA, they could do the same.
> > 
> > This change would allow us to support both standard boot flow and falcon
> > mode from the same upstream source. With the only downside being the
> 
> Other than trivial usecases, no you cannot. There is a lot of
> monkeying of dtb that u-boot does with mac address, HS-FS based dt node
> enable/disable etc. In effect, at a product level it ends up as a different
> flow.
> 
> > slight overhead added by the jump-stub (~1.7KiB added to tispl.bin and
> > two extra instructions to jump to u-boot from older ATF builds).
> 
> The boot flow is already a complex flow at the moment. If we go down
> this road, U-boot will have no choice but to support both variants of
> TFA for all eternity - any fallacy that people will upgrade U-boot and
> TFA baselines in sync is wrong.
> 
> > 
> > And we can remove the stub altogether once all the customers have
> > migrated over to the new address.
> 
> When would we know? There are gazillion usage models we are not aware
> of. U-boot is not the only game in town for bootloaders. Barebox, and
> other bootloader ecosystems will also need to pony up, that too hand in
> hand with migration to new address proposed in TFA.
> 
> > 
> > In addition to that this also frees up the bottom of DDR which allows us
> > to more easily support low memory systems (512MiB or less) as we can use
> > the freed up space for more tightly packing OP-TEE, DM etc.  instead of
> > having the binaries loaded at scattered addresses like we do now.
> 
> Now, we are suggesting an entire memory map revamp impacting more
> s/w components. For platforms with low DDR capabilities (e.g.
> PocketBeagle2), please do the necessary changes when introducing to
> mainline.
> 
> > 
> > >> 
> > >> They should have no reason not to be able to do this. But even *if*
> > >> they cannot do that, the whole point of the jump-stub here is to
> > >> save them even having to do a simple compile.
> > >> 
> > >> IMHO "downstream customers including inflight production devices"
> > >> should not be a reason to block good and useful changes here in
> > >> upstream. But again, this change doesn't break anything for them in
> > >> the first place, so why bring that up?
> > >
> > > I dont see a specific value here. U-boot just works. For folks who want
> > > direct TFA to kernel jump (which is a niche fast boot usecase), go ahead
> > > and use TFA with the mentioned build option.
> > 
> 
> IMHO, there is a simpler alternate solution - build TFA, dtb etc in the
> model of your desire. let us leave the defaults be.
> 
> I will let Tom and other U-boot maintainers make their choice, as TFA
> maintainer, I have already rejected the approach. it is already
> PRELOADED_BL33_BASE ?= 0x80080000 which allows for override at build
> time instead of all the massive rework and downstream ecosystem impact.

Thanks Nishanth. As you point out, all of the relevant projects need to
stay in sync for this to be useful and I agree with your position so
this is nak'd here too.

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

  reply	other threads:[~2025-04-17 14:16 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-16  7:30 [PATCH v1 0/4] k3: migrate SPL_TEXT_BASE to new address Anshul Dalal
2025-04-16  7:30 ` [PATCH v1 1/4] spl: Kconfig: k3: set SPL_TEXT_BASE to 0x82200000 Anshul Dalal
2025-04-16  7:30 ` [PATCH v1 2/4] mach-k3: add a jump stub to support older ATF builds Anshul Dalal
2025-04-16  7:30 ` [PATCH v1 3/4] binman: k3: add jump-stub to tispl.bin Anshul Dalal
2025-04-16  7:30 ` [PATCH v1 4/4] binman: k3: add jump-stub as loadable Anshul Dalal
2025-04-16 11:24 ` [PATCH v1 0/4] k3: migrate SPL_TEXT_BASE to new address Nishanth Menon
2025-04-16 13:48   ` Anshul Dalal
2025-04-16 15:05     ` Nishanth Menon
2025-04-16 16:38       ` Andrew Davis
2025-04-16 19:51         ` Nishanth Menon
2025-04-17  9:21           ` Anshul Dalal
2025-04-17 11:30             ` Nishanth Menon
2025-04-17 14:16               ` Tom Rini [this message]
2025-04-22  6:59                 ` Ahmad Fatoum

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=20250417141603.GW5495@bill-the-cat \
    --to=trini@konsulko.com \
    --cc=a-nandan@ti.com \
    --cc=afd@ti.com \
    --cc=anshuld@ti.com \
    --cc=francesco.dolcini@toradex.com \
    --cc=ggiordano@phytec.com \
    --cc=m-chawdhry@ti.com \
    --cc=nm@ti.com \
    --cc=robertcnelson@gmail.com \
    --cc=u-boot@lists.denx.de \
    --cc=vigneshr@ti.com \
    --cc=w.egorov@phytec.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.