linux_dsm_epyc7002/arch/powerpc/mm/book3s64
Aneesh Kumar K.V 269e829f48 powerpc/book3s64/pkey: Disable pkey on POWER6 and before
POWER6 only supports AMR update via privileged mode (MSR[PR] = 0,
SPRN_AMR=29) The PR=1 (userspace) alias for that SPR (SPRN_AMR=13) was
only supported from POWER7. Since we don't allow userspace modifying
of AMR value we should disable pkey support on P6 and before.

The hypervisor will still report pkey support via
"ibm,processor-storage-keys". Hence also check for P7 CPU_FTR bit to
decide on pkey support.

Fixes: f491fe3fb4 ("powerpc/book3s64/pkeys: Simplify the key initialization")
Reported-by: Michael Ellerman <mpe@ellerman.id.au>
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/20200726132517.399076-1-aneesh.kumar@linux.ibm.com
2020-07-26 23:34:18 +10:00
..
hash_4k.c
hash_64k.c
hash_hugepage.c
hash_hugetlbpage.c mm: don't include asm/pgtable.h if linux/mm.h is already included 2020-06-09 09:39:13 -07:00
hash_native.c mm: reorder includes after introduction of linux/pgtable.h 2020-06-09 09:39:13 -07:00
hash_pgtable.c mmap locking API: convert mmap_sem comments 2020-06-09 09:39:14 -07:00
hash_tlb.c powerpc: Replace _ALIGN_UP() by ALIGN() 2020-05-11 23:15:15 +10:00
hash_utils.c powerpc/mm/hash64: Remove comment that is no longer valid 2020-07-23 17:43:35 +10:00
internal.h powerpc/64s/hash: Add stress_slb kernel boot option to increase SLB faults 2020-05-20 23:39:58 +10:00
iommu_api.c mmap locking API: use coccinelle to convert mmap_sem rwsem call sites 2020-06-09 09:39:14 -07:00
Makefile powerpc/pseries: Move mm/book3s64/vphn.c under platforms/pseries/ 2019-07-04 22:23:38 +10:00
mmu_context.c powerpc/book3s64/radix: Remove WARN_ON in destroy_context() 2019-09-21 08:36:53 +10:00
pgtable.c powerpc/book3s64/keys/kuap: Reset AMR/IAMR values on kexec 2020-07-20 22:57:59 +10:00
pkeys.c powerpc/book3s64/pkey: Disable pkey on POWER6 and before 2020-07-26 23:34:18 +10:00
radix_hugetlbpage.c mm: don't include asm/pgtable.h if linux/mm.h is already included 2020-06-09 09:39:13 -07:00
radix_pgtable.c powerpc/book3s64/kuap: Move UAMOR setup to key init function 2020-07-20 22:57:59 +10:00
radix_tlb.c powerpc/mm/book3s64/radix: Off-load TLB invalidations to host when !GTSE 2020-07-16 13:00:21 +10:00
slb.c mm: reorder includes after introduction of linux/pgtable.h 2020-06-09 09:39:13 -07:00
subpage_prot.c mmap locking API: convert mmap_sem comments 2020-06-09 09:39:14 -07:00