WSL2-Linux-Kernel/Documentation/powerpc
Haren Myneni 6068e1a442 powerpc/vas: Report proper error code for address translation failure
P9 DD2 NX workbook (Table 4-36) says DMA controller uses CC=5
internally for translation fault handling. NX reserves CC=250 for
OS to notify user space when NX encounters address translation
failure on the request buffer. Not an issue in earlier releases
as NX does not get faults on kernel addresses.

This patch defines CSB_CC_FAULT_ADDRESS(250) and updates CSB.CC with
this proper error code for user space.

Fixes: c96c4436ab ("powerpc/vas: Update CSB and notify process for fault CRBs")
Signed-off-by: Haren Myneni <haren@linux.ibm.com>
[mpe: Added Fixes tag and fix typo in comment]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/019fd53e7538c6f8f332d175df74b1815ef5aa8c.camel@linux.ibm.com
2020-07-15 23:09:55 +10:00
..
bootwrapper.rst
cpu_families.rst
cpu_features.rst
cxl.rst
cxlflash.rst
dawr-power9.rst
dscr.rst
eeh-pci-error-recovery.rst
elfnote.rst
firmware-assisted-dump.rst
hvcs.rst
imc.rst
index.rst
isa-versions.rst
kaslr-booke32.rst
mpc52xx.rst
papr_hcalls.rst
pci_iov_resource_on_powernv.rst
pmu-ebb.rst
ptrace.rst
qe_firmware.rst
syscall64-abi.rst
transactional_memory.rst
ultravisor.rst
vas-api.rst
vcpudispatch_stats.txt