Re: [PATCH v5 13/26] powerpc/book3s64/pkeys: Enable MMU_FTR_PKEY

2020-07-06 Thread Michael Ellerman
"Aneesh Kumar K.V" writes: >>>   /*    * Let's assume 32 pkeys on P8 bare metal, if its not defined by device    * tree. We make this exception since skiboot forgot to expose this    * property on power8.    */  

Re: [PATCH v5 13/26] powerpc/book3s64/pkeys: Enable MMU_FTR_PKEY

2020-07-06 Thread Aneesh Kumar K.V
  /*    * Let's assume 32 pkeys on P8 bare metal, if its not defined by device    * tree. We make this exception since skiboot forgot to expose this    * property on power8.    */   if (!firmware_has_feature(FW_FEATURE_LPAR) && -   

Re: [PATCH v5 13/26] powerpc/book3s64/pkeys: Enable MMU_FTR_PKEY

2020-07-06 Thread Aneesh Kumar K.V
On 7/6/20 6:40 PM, Michael Ellerman wrote: "Aneesh Kumar K.V" writes: Parse storage keys related device tree entry in early_init_devtree and enable MMU feature MMU_FTR_PKEY if pkeys are supported. MMU feature is used instead of CPU feature because this enables us to group MMU_FTR_KUAP and

Re: [PATCH v5 13/26] powerpc/book3s64/pkeys: Enable MMU_FTR_PKEY

2020-07-06 Thread Michael Ellerman
"Aneesh Kumar K.V" writes: > Parse storage keys related device tree entry in early_init_devtree > and enable MMU feature MMU_FTR_PKEY if pkeys are supported. > > MMU feature is used instead of CPU feature because this enables us > to group MMU_FTR_KUAP and MMU_FTR_PKEY in asm feature fixup code.