[PATCH] mach-k3: j722s: enable caches for the SPL stage
Bryan Brattlof
bb at ti.com
Thu Jun 12 21:12:11 CEST 2025
On June 12, 2025 thus sayeth Tom Rini:
> On Thu, Jun 12, 2025 at 01:50:15PM +0200, Heiko Thiery wrote:
>
> > This is same as done in 27cd65ca1bf1 ("mach-k3: am62ax: enable caches for the SPL stage").
> >
> > This is resulting in ~2x speedup in the A53 SPL stage.
> >
> > Signed-off-by: Heiko Thiery <heiko.thiery at gmail.com>
> > ---
> > arch/arm/mach-k3/j722s/j722s_init.c | 2 ++
> > 1 file changed, 2 insertions(+)
> >
> > diff --git a/arch/arm/mach-k3/j722s/j722s_init.c b/arch/arm/mach-k3/j722s/j722s_init.c
> > index af211377e7c..591aa1d60d5 100644
> > --- a/arch/arm/mach-k3/j722s/j722s_init.c
> > +++ b/arch/arm/mach-k3/j722s/j722s_init.c
> > @@ -162,6 +162,8 @@ static void k3_mem_init(void)
> > if (ret)
> > panic("DRAM init failed: %d\n", ret);
> > }
> > +
> > + spl_enable_cache();
> > }
> >
> > static __maybe_unused void enable_mcu_esm_reset(void)
>
> A bit less a comment for you and more a comment for all the TI folks,
> can't we re-architect this a bit to be common? I think I even made that
> point on another patch doing this same thing for another K3 part.
>
Yeah we're copy and pasting quite a lot of common stuff for each of
these SoCs. I can take a stab at this and see what I come up with.
~Bryan
More information about the U-Boot
mailing list