[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 06/13] ppc/spapr: Add pa-features for POWER10 machines
From: |
Nicholas Piggin |
Subject: |
Re: [PATCH 06/13] ppc/spapr: Add pa-features for POWER10 machines |
Date: |
Tue, 12 Mar 2024 14:45:32 +1000 |
On Tue Mar 12, 2024 at 6:05 AM AEST, Philippe Mathieu-Daudé wrote:
> On 11/3/24 19:51, Nicholas Piggin wrote:
> > From: Benjamin Gray <bgray@linux.ibm.com>
> >
> > Add POWER10 pa-features entry.
> >
> > Notably DEXCR and and [P]HASHST/[P]HASHCHK instruction support is
> > advertised. Each DEXCR aspect is allocated a bit in the device tree,
> > using the 68--71 byte range (inclusive). The functionality of the
> > [P]HASHST/[P]HASHCHK instructions is separately declared in byte 72,
> > bit 0 (BE).
> >
> > Signed-off-by: Benjamin Gray <bgray@linux.ibm.com>
> > [npiggin: reword title and changelog, adjust a few bits]
> > Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
> > ---
> > hw/ppc/spapr.c | 34 ++++++++++++++++++++++++++++++++++
> > 1 file changed, 34 insertions(+)
> >
> > diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c
> > index 247f920f07..128bfe11a8 100644
> > --- a/hw/ppc/spapr.c
> > +++ b/hw/ppc/spapr.c
> > @@ -265,6 +265,36 @@ static void spapr_dt_pa_features(SpaprMachineState
> > *spapr,
> > /* 60: NM atomic, 62: RNG */
> > 0x80, 0x00, 0x80, 0x00, 0x00, 0x00, /* 60 - 65 */
> > };
> > + /* 3.1 removes SAO, HTM support */
> > + uint8_t pa_features_31[] = { 74, 0,
>
> Nitpicking because pre-existing, all these arrays could be static const.
That's true. I was looking for a nicer way to do it, probably generate
the bits with macros and share between spapr and pnv. This is just a
quick dumb approach to getting the missing bits in for now.
Thanks,
Nick
- [PATCH 04/13] ppc/spapr: Remove copy-paste from pa-features, (continued)
- Re: [PATCH 06/13] ppc/spapr: Add pa-features for POWER10 machines,
Nicholas Piggin <=
Re: [PATCH 06/13] ppc/spapr: Add pa-features for POWER10 machines, Harsh Prateek Bora, 2024/03/12
[PATCH 07/13] ppc/pnv: Permit ibm, pa-features set per machine variant, Nicholas Piggin, 2024/03/11
[PATCH 08/13] ppc/pnv: Set POWER9, POWER10 ibm,pa-features bits, Nicholas Piggin, 2024/03/11
[PATCH 09/13] target/ppc: Prevent supervisor from modifying MSR[ME], Nicholas Piggin, 2024/03/11