diff options
| author | Aneesh Kumar K.V <[email protected]> | 2020-07-26 18:55:17 +0530 |
|---|---|---|
| committer | Michael Ellerman <[email protected]> | 2020-07-26 23:34:18 +1000 |
| commit | 269e829f48a0d0d27667abe25ca5c9e5b6ab08e2 (patch) | |
| tree | e28f223f774d81722d5193d82261e397ebe1688f /tools/perf/scripts/python | |
| parent | 826b07b190c8ca69ce674f13b4dc9be2bc536fcd (diff) | |
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: f491fe3fb41e ("powerpc/book3s64/pkeys: Simplify the key initialization")
Reported-by: Michael Ellerman <[email protected]>
Signed-off-by: Aneesh Kumar K.V <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions