Re: [RFC v7 25/25] powerpc: Enable pkey subsystem

2017-08-18 Thread Ram Pai
On Fri, Aug 18, 2017 at 12:26:33PM -0300, Thiago Jung Bauermann wrote: > > Michael Ellerman writes: > > > Ram Pai writes: > >> On Thu, Aug 17, 2017 at 05:30:27PM -0300, Thiago Jung Bauermann wrote: > >>> Ram Pai writes: > >>> > On

Re: [RFC v7 25/25] powerpc: Enable pkey subsystem

2017-08-18 Thread Thiago Jung Bauermann
Michael Ellerman writes: > Ram Pai writes: >> On Thu, Aug 17, 2017 at 05:30:27PM -0300, Thiago Jung Bauermann wrote: >>> Ram Pai writes: >>> > On Thu, Aug 10, 2017 at 06:27:34PM -0300, Thiago Jung Bauermann wrote: >>> >> Ram Pai

Re: [RFC v7 25/25] powerpc: Enable pkey subsystem

2017-08-17 Thread Michael Ellerman
Ram Pai writes: > On Thu, Aug 17, 2017 at 05:30:27PM -0300, Thiago Jung Bauermann wrote: >> Ram Pai writes: >> > On Thu, Aug 10, 2017 at 06:27:34PM -0300, Thiago Jung Bauermann wrote: >> >> Ram Pai writes: >> >> > @@ -227,6 +229,24

Re: [RFC v7 25/25] powerpc: Enable pkey subsystem

2017-08-17 Thread Ram Pai
On Thu, Aug 17, 2017 at 05:30:27PM -0300, Thiago Jung Bauermann wrote: > > Ram Pai writes: > > > On Thu, Aug 10, 2017 at 06:27:34PM -0300, Thiago Jung Bauermann wrote: > >> > >> Ram Pai writes: > >> > --- a/arch/powerpc/include/asm/cputable.h > >> >

Re: [RFC v7 25/25] powerpc: Enable pkey subsystem

2017-08-17 Thread Thiago Jung Bauermann
Ram Pai writes: > On Thu, Aug 10, 2017 at 06:27:34PM -0300, Thiago Jung Bauermann wrote: >> >> Ram Pai writes: >> > --- a/arch/powerpc/include/asm/cputable.h >> > +++ b/arch/powerpc/include/asm/cputable.h >> > @@ -214,6 +214,7 @@ enum { >> > #define

Re: [RFC v7 25/25] powerpc: Enable pkey subsystem

2017-08-17 Thread Ram Pai
On Thu, Aug 10, 2017 at 06:27:34PM -0300, Thiago Jung Bauermann wrote: > > Ram Pai writes: > > --- a/arch/powerpc/include/asm/cputable.h > > +++ b/arch/powerpc/include/asm/cputable.h > > @@ -214,6 +214,7 @@ enum { > > #define CPU_FTR_DAWR > >

Re: [RFC v7 25/25] powerpc: Enable pkey subsystem

2017-08-10 Thread Thiago Jung Bauermann
Ram Pai writes: > --- a/arch/powerpc/include/asm/cputable.h > +++ b/arch/powerpc/include/asm/cputable.h > @@ -214,6 +214,7 @@ enum { > #define CPU_FTR_DAWR LONG_ASM_CONST(0x0400) > #define CPU_FTR_DABRX >

[RFC v7 25/25] powerpc: Enable pkey subsystem

2017-07-30 Thread Ram Pai
PAPR defines 'ibm,processor-storage-keys' property. It exports two values.The first value indicates the number of data-access keys and the second indicates the number of instruction-access keys. Though this alludes that keys can be either data access or instructon access only, that is not the