Re: [PATCH v5 27/37] arm64: Add encoding for POR_EL2

Marc Zyngier
2024-10-23T16:28:39Z

On Wed, 23 Oct 2024 17:13:47 +0100,
Mark Brown <broonie@kernel.org> wrote:
>
> [1 <text/plain; us-ascii (7bit)>]
> On Wed, Oct 23, 2024 at 03:53:35PM +0100, Marc Zyngier wrote:
> > POR_EL2 is the equivalent of POR_EL1 for the EL2&0 translation
> > regime, and it is sorely missing from the sysreg file.
>
> > +Sysreg POR_EL2 3 4 10 2 4
> > +Fields PIRx_ELx
> > +EndSysreg
>
> We should probably rename the Fields here, though there'd be an awful
> lot of xs in that name.

If you're in a renaming mood, please start with the TCR2_EL1x
brain-damage. Having a way to map an EL12 *accessor* onto the actual
register should come at zero cost to the namespace, and the tooling
should be augmented to support the way the architecture works.

M.

--
Without deviation from the norm, progress is not possible.