powerpc/book3s64/pkeys: Add MMU_FTR_PKEY
authorAneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Thu, 9 Jul 2020 03:29:36 +0000 (08:59 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 20 Jul 2020 12:57:58 +0000 (22:57 +1000)
commitd3cd91fb8d2e202cf8ebb6f271898aaf37ecda8f
tree437b21687e27c4730add32f1ac70f54bff231024
parent3e4352aeb8b17eb1040ba288f586620e8294389d
powerpc/book3s64/pkeys: Add MMU_FTR_PKEY

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.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200709032946.881753-14-aneesh.kumar@linux.ibm.com
arch/powerpc/include/asm/book3s/64/mmu.h
arch/powerpc/include/asm/mmu.h
arch/powerpc/kernel/prom.c
arch/powerpc/mm/book3s64/pkeys.c