Re: [PATCH v2 1/2] powerpc: Add Power11 architected and raw mode

2024-02-06 Thread Michael Ellerman
Madhavan Srinivasan writes: > On 2/5/24 2:13 PM, Aneesh Kumar K.V wrote: >> Madhavan Srinivasan writes: >> >>> reg.h is updated with Power11 pvr. pvr_mask value of 0x0F07 >>> means we are arch v3.1 compliant. ... >>> diff --git a/arch/powerpc/kernel/cpu_setup_power.c >>> b/arch/powerpc/kerne

Re: [PATCH v2 1/2] powerpc: Add Power11 architected and raw mode

2024-02-05 Thread Madhavan Srinivasan
On 2/5/24 2:13 PM, Aneesh Kumar K.V wrote: Madhavan Srinivasan writes: reg.h is updated with Power11 pvr. pvr_mask value of 0x0F07 means we are arch v3.1 compliant. If it is called arch v3.1, it will conflict with. #define PVR_ARCH_31 0x0f06 Nice catch. My bad, missed to in

Re: [PATCH v2 1/2] powerpc: Add Power11 architected and raw mode

2024-02-05 Thread Aneesh Kumar K . V
Madhavan Srinivasan writes: > reg.h is updated with Power11 pvr. pvr_mask value of 0x0F07 > means we are arch v3.1 compliant. > If it is called arch v3.1, it will conflict with. #define PVR_ARCH_31 0x0f06 >This is used by phyp and > kvm when booting as a pseries guest to detect a

[PATCH v2 1/2] powerpc: Add Power11 architected and raw mode

2024-02-04 Thread Madhavan Srinivasan
reg.h is updated with Power11 pvr. pvr_mask value of 0x0F07 means we are arch v3.1 compliant. This is used by phyp and kvm when booting as a pseries guest to detect and enable the appropriate hwcap, facility bits and PMU related fields. Copied most of fields from Power10 table entry and added r