[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ced9897c5db7ea22313d58ba95590e634e98e54b.camel@ew.tq-group.com>
Date: Fri, 22 Dec 2023 09:34:06 +0100
From: Matthias Schiffer <matthias.schiffer@...tq-group.com>
To: Michael Ellerman <mpe@...erman.id.au>
Cc: Nicholas Piggin <npiggin@...il.com>, "Aneesh Kumar K.V"
<aneesh.kumar@...nel.org>, "Naveen N. Rao" <naveen.n.rao@...ux.ibm.com>,
linuxppc-dev@...ts.ozlabs.org, linux-kernel@...r.kernel.org,
linux@...tq-group.com, Christophe Leroy <christophe.leroy@...roup.eu>
Subject: Re: [PATCH] powerpc/6xx: set High BAT Enable flag on G2 cores
On Fri, 2023-12-22 at 12:16 +1100, Michael Ellerman wrote:
> Matthias Schiffer <matthias.schiffer@...tq-group.com> writes:
> > MMU_FTR_USE_HIGH_BATS is set for G2-based cores (G2_LE, e300cX), but the
> > high BATs need to be enabled in HID2 to work. Add register definitions
> > and introduce a G2 variant of __setup_cpu_603.
> >
> > This fixes boot on CPUs like the MPC5200B with STRICT_KERNEL_RWX enabled.
>
> Nice find.
>
> Minor nit on naming. The 32-bit code mostly uses the numeric names, eg.
> 603, 603e, 604 etc. Can we stick with that, rather than using "G2"?
>
> Wikipedia says G2 == 603e. But looking at your patch you're not changing
> all the 603e cores, so I guess it's not that clear cut?
>
> If using "G2" makes the most sense then it would be nice to update
> Documentation/arch/powerpc/cpu_families.rst to mention it (not asking
> you to do it necessarily, more a note for us).
According to the 603e manual I could find (MPR603EUM-01), the HID2 register does not exist in the
original 603e cores - the register was only added by Freescale in its extended implementations.
The manual of the MPC5200 calls its core an "e300", but that seems to be an older implementation
than the "e300c[1-4]" cores described in the "e300" manual. I'm not sure if "e300" (without "cX")
and "G2_LE" are synonymous.
So AFAIR either "G2" or "e300" could be an appropriate name for the family, but which is better I
can't say.
Regards,
Matthias
>
> cheers
--
TQ-Systems GmbH | Mühlstraße 2, Gut Delling | 82229 Seefeld, Germany
Amtsgericht München, HRB 105018
Geschäftsführer: Detlef Schneider, Rüdiger Stahl, Stefan Schneider
https://www.tq-group.com/
Powered by blists - more mailing lists