On Fri, Jul 17, 2020 at 2:10 PM Ravi Bangoria <ravi.bango...@linux.ibm.com> wrote: > > As per the PAPR, bit 0 of byte 64 in pa-features property indicates > availability of 2nd DAWR registers. i.e. If this bit is set, 2nd > DAWR is present, otherwise not. Host generally uses "cpu-features", > which masks "pa-features". But "cpu-features" are still not used for > guests and thus this change is mostly applicable for guests only. > > Signed-off-by: Ravi Bangoria <ravi.bango...@linux.ibm.com> I checked those PAPR values are correct and checked running a powernv kernel in p10 mambo with dt_cpu_ftrs=off and it does set the CPU_FTR_DAWR1 bit. (using p10 skiboot). Tested-by: Jordan Niethe <jniet...@gmail.com> > --- > arch/powerpc/kernel/prom.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/arch/powerpc/kernel/prom.c b/arch/powerpc/kernel/prom.c > index 9cc49f265c86..c76c09b97bc8 100644 > --- a/arch/powerpc/kernel/prom.c > +++ b/arch/powerpc/kernel/prom.c > @@ -175,6 +175,8 @@ static struct ibm_pa_feature { > */ > { .pabyte = 22, .pabit = 0, .cpu_features = CPU_FTR_TM_COMP, > .cpu_user_ftrs2 = PPC_FEATURE2_HTM_COMP | > PPC_FEATURE2_HTM_NOSC_COMP }, > + > + { .pabyte = 64, .pabit = 0, .cpu_features = CPU_FTR_DAWR1 }, > }; > > static void __init scan_features(unsigned long node, const unsigned char > *ftrs, > -- > 2.26.2 >
- [PATCH v4 01/10] powerpc/watchpoint: Fix 512 byte boundar... Ravi Bangoria
- [PATCH v4 02/10] powerpc/watchpoint: Fix DAWR exception c... Ravi Bangoria
- [PATCH v4 03/10] powerpc/watchpoint: Fix DAWR exception f... Ravi Bangoria
- [PATCH v4 04/10] powerpc/watchpoint: Enable watchpoint fu... Ravi Bangoria
- Re: [PATCH v4 04/10] powerpc/watchpoint: Enable watc... Jordan Niethe
- [PATCH v4 05/10] powerpc/dt_cpu_ftrs: Add feature for 2nd... Ravi Bangoria
- Re: [PATCH v4 05/10] powerpc/dt_cpu_ftrs: Add featur... Jordan Niethe
- Re: [PATCH v4 05/10] powerpc/dt_cpu_ftrs: Add fe... Ravi Bangoria
- Re: [PATCH v4 05/10] powerpc/dt_cpu_ftrs: Ad... Michael Ellerman
- [PATCH v4 06/10] powerpc/watchpoint: Set CPU_FTR_DAWR1 ba... Ravi Bangoria
- Re: [PATCH v4 06/10] powerpc/watchpoint: Set CPU_FTR... Jordan Niethe
- [PATCH v4 07/10] powerpc/watchpoint: Rename current H_SET... Ravi Bangoria
- Re: [PATCH v4 07/10] powerpc/watchpoint: Rename curr... Jordan Niethe
- [PATCH v4 08/10] powerpc/watchpoint: Guest support for 2n... Ravi Bangoria
- [PATCH v4 09/10] powerpc/watchpoint: Return available wat... Ravi Bangoria
- Re: [PATCH v4 09/10] powerpc/watchpoint: Return avai... Jordan Niethe
- Re: [PATCH v4 09/10] powerpc/watchpoint: Return ... Ravi Bangoria
- Re: [PATCH v4 09/10] powerpc/watchpoint: Ret... Jordan Niethe
- Re: [PATCH v4 09/10] powerpc/watchpoint:... Ravi Bangoria
- Re: [PATCH v4 09/10] powerpc/watchpoint: Ret... Michael Ellerman
- Re: [PATCH v4 09/10] powerpc/watchpoint:... Ravi Bangoria