linux/arch/powerpc
Haren Myneni 335e1a9104 powerpc: Ignore DSI error caused by the copy/paste instruction
The data storage interrupt (DSI) error will be generated when the
paste operation is issued on the suspended Nest Accelerator (NX)
window due to NX state changes. The hypervisor expects the
partition to ignore this error during page fault handling.
To differentiate DSI caused by an actual HW configuration or by
the NX window, a new “ibm,pi-features” type value is defined.
Byte 0, bit 3 of pi-attribute-specifier-type is now defined to
indicate this DSI error. If this error is not ignored, the user
space can get SIGBUS when the NX request is issued.

This patch adds changes to read ibm,pi-features property and ignore
DSI error during page fault handling if MMU_FTR_NX_DSI is defined.

Signed-off-by: Haren Myneni <haren@linux.ibm.com>
[mpe: Mention PAPR version in comment]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/b9cd844b85eb8f70459109ce1b14e44c4cc85fa7.camel@linux.ibm.com
2022-09-28 22:52:32 +10:00
..
boot powerpc/boot: Explicitly disable usage of SPE instructions 2022-09-28 19:22:14 +10:00
configs powerpc/64: Remove PPC64 special case for cputime accounting default 2022-09-05 14:14:27 +10:00
crypto powerpc: Fix all occurences of duplicate words 2022-07-25 12:05:15 +10:00
include powerpc: Ignore DSI error caused by the copy/paste instruction 2022-09-28 22:52:32 +10:00
kernel powerpc: Ignore DSI error caused by the copy/paste instruction 2022-09-28 22:52:32 +10:00
kexec powerpc/64/kdump: Limit kdump base to 512MB 2022-09-28 19:22:09 +10:00
kvm powerpc/64: provide a helper macro to load r2 with the kernel TOC 2022-09-28 19:22:12 +10:00
lib powerpc/64: asm use consistent global variable declaration and access 2022-09-28 19:22:12 +10:00
math-emu powerpc/math-emu: Inhibit W=1 warnings 2022-09-08 11:11:18 +10:00
mm powerpc: Ignore DSI error caused by the copy/paste instruction 2022-09-28 22:52:32 +10:00
net powerpc/bpf/32: Add instructions for atomic_[cmp]xchg 2022-06-29 19:37:08 +10:00
perf powerpc/perf: Fix branch_filter support for multiple filters 2022-09-28 19:22:13 +10:00
platforms ocxl: Remove the unneeded result variable 2022-09-28 19:22:14 +10:00
purgatory powerpc/purgatory: Omit use of bin2c 2022-07-27 21:36:03 +10:00
sysdev powerpc: Change CONFIG_E500 to CONFIG_PPC_E500 2022-09-26 23:00:13 +10:00
tools
xmon powerpc/64: asm use consistent global variable declaration and access 2022-09-28 19:22:12 +10:00
Kbuild
Kconfig powerpc/64s: Enable KFENCE on book3s64 2022-09-28 19:22:10 +10:00
Kconfig.debug powerpc: Add support for early debugging via Serial 16550 console 2022-09-28 19:22:09 +10:00
Makefile powerpc/64s: POWER10 CPU Kconfig build option 2022-09-28 19:22:12 +10:00
Makefile.postlink