Re: [PATCH 05/25] powerpc: helper functions to initialize AMR, IAMR and UAMOR registers

2017-10-24 Thread Michael Ellerman
Ram Pai writes: > On Tue, Oct 24, 2017 at 11:55:41AM +0530, Aneesh Kumar K.V wrote: >> Ram Pai writes: >> > + >> > +static void pkey_status_change(int pkey, bool enable) >> > +{ >> > + u64 old_uamor; >> > + >> > + /* reset the AMR and IAMR bits for this key */ >> > + init_amr(pkey, 0x0); >> >

Re: [PATCH 05/25] powerpc: helper functions to initialize AMR, IAMR and UAMOR registers

2017-10-24 Thread Ram Pai
On Tue, Oct 24, 2017 at 11:55:41AM +0530, Aneesh Kumar K.V wrote: > Ram Pai writes: > > > Introduce helper functions that can initialize the bits in the AMR, > > IAMR and UAMOR register; the bits that correspond to the given pkey. > > > > Signed-off-by: Ram Pai > > --- > > arch/powerpc/include

Re: [PATCH 05/25] powerpc: helper functions to initialize AMR, IAMR and UAMOR registers

2017-10-23 Thread Aneesh Kumar K.V
Ram Pai writes: > Introduce helper functions that can initialize the bits in the AMR, > IAMR and UAMOR register; the bits that correspond to the given pkey. > > Signed-off-by: Ram Pai > --- > arch/powerpc/include/asm/pkeys.h |1 + > arch/powerpc/mm/pkeys.c | 46 > ++

Re: [PATCH 05/25] powerpc: helper functions to initialize AMR, IAMR and UAMOR registers

2017-10-18 Thread Ram Pai
On Wed, Oct 18, 2017 at 02:24:03PM +1100, Balbir Singh wrote: > On Fri, 8 Sep 2017 15:44:53 -0700 > Ram Pai wrote: > > > Introduce helper functions that can initialize the bits in the AMR, > > IAMR and UAMOR register; the bits that correspond to the given pkey. > > > > Signed-off-by: Ram Pai

Re: [PATCH 05/25] powerpc: helper functions to initialize AMR, IAMR and UAMOR registers

2017-10-17 Thread Balbir Singh
On Fri, 8 Sep 2017 15:44:53 -0700 Ram Pai wrote: > Introduce helper functions that can initialize the bits in the AMR, > IAMR and UAMOR register; the bits that correspond to the given pkey. > > Signed-off-by: Ram Pai > --- > arch/powerpc/include/asm/pkeys.h |1 + > arch/powerpc/mm/pkeys.

[PATCH 05/25] powerpc: helper functions to initialize AMR, IAMR and UAMOR registers

2017-09-08 Thread Ram Pai
Introduce helper functions that can initialize the bits in the AMR, IAMR and UAMOR register; the bits that correspond to the given pkey. Signed-off-by: Ram Pai --- arch/powerpc/include/asm/pkeys.h |1 + arch/powerpc/mm/pkeys.c | 46 ++ 2 files