linux/arch/powerpc/platforms/powernv
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
..
copy-paste.h
eeh-powernv.c powerpc/eeh: Rework eeh_ops->probe() 2020-03-25 12:09:39 +11:00
idle.c powerpc/powernv: Fix a warning message 2020-05-11 23:15:14 +10:00
Kconfig powerpc/powernv: Move SCOM access code into powernv platform 2019-08-05 18:53:03 +10:00
Makefile powerpc/vas: Add VAS user space API 2020-04-20 16:53:14 +10:00
memtrace.c powernv/memtrace: always online added memory blocks 2020-04-07 10:43:40 -07:00
npu-dma.c powerpc/powernv/npu: Move IOMMU group setup into npu-dma.c 2020-05-28 23:24:38 +10:00
ocxl.c
opal-async.c
opal-call.c powerpc/powernv: Add OPAL API interface to access secure variable 2019-11-13 00:33:22 +11:00
opal-core.c powerpc/powernv: Move core and fadump_release_opalcore under new kobject 2020-02-19 21:07:10 +11:00
opal-dump.c
opal-elog.c
opal-fadump.c powerpc: Replace _ALIGN_DOWN() by ALIGN_DOWN() 2020-05-11 23:15:15 +10:00
opal-fadump.h powerpc/fadump: support holes in kernel boot memory area 2019-09-14 00:04:46 +10:00
opal-flash.c
opal-hmi.c powerpc/powernv: Show checkstop reason for NPU2 HMIs 2019-06-02 19:39:36 +10:00
opal-imc.c powerpc/powernv: Re-enable imc trace-mode in kernel 2020-04-03 00:09:58 +11:00
opal-irqchip.c
opal-kmsg.c
opal-lpc.c
opal-memory-errors.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
opal-msglog.c powerpc/powernv/opal-msglog: Refactor memcons code 2019-08-30 09:40:16 +10:00
opal-nvram.c
opal-power.c
opal-powercap.c powerpc/powernv: Make some symbols static 2019-11-13 16:58:06 +11:00
opal-prd.c powerpc/powernv: Add new opal message type 2019-09-12 09:27:00 +10:00
opal-psr.c powerpc/powernv: Make some symbols static 2019-11-13 16:58:06 +11:00
opal-rtc.c
opal-secvar.c powerpc/powernv: Add OPAL API interface to access secure variable 2019-11-13 00:33:22 +11:00
opal-sensor-groups.c powerpc/powernv: Make some symbols static 2019-11-13 16:58:06 +11:00
opal-sensor.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
opal-sysparam.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
opal-tracepoints.c
opal-wrappers.S
opal-xscom.c powerpc/powernv: Fix checkpatch warnings in opal-xscom.c 2019-08-05 18:53:03 +10:00
opal.c powerpc/powernv: add NULL check after kzalloc 2020-05-20 23:39:56 +10:00
pci-cxl.c
pci-ioda-tce.c powerpc/powernv/pci: Move tce size parsing to pci-ioda-tce.c 2020-05-28 23:24:38 +10:00
pci-ioda.c powerpc/powernv/pci: Sprinkle around some WARN_ON()s 2020-05-28 23:24:39 +10:00
pci.c powerpc/powernv/pci: Add device to iommu group during dma_dev_setup() 2020-05-28 23:24:38 +10:00
pci.h powerpc/powernv/pci: Reserve the root bus PE during init 2020-05-28 23:24:39 +10:00
powernv.h powerpc/powernv: Add ultravisor message log interface 2019-08-30 09:40:16 +10:00
rng.c
setup.c powerpc/powernv: Add explicit fast-reboot support 2020-03-04 22:44:27 +11:00
smp.c sched/core: Fix illegal RCU from offline CPUs 2020-04-30 20:14:41 +02:00
subcore-asm.S
subcore.c
subcore.h
ultravisor.c powerpc/powernv: Add ultravisor message log interface 2019-08-30 09:40:16 +10:00
vas-api.c powerpc/vas: Add VAS user space API 2020-04-20 16:53:14 +10:00
vas-debug.c powerpc/vas: Take reference to PID and mm for user space windows 2020-04-20 16:53:00 +10:00
vas-fault.c powerpc/vas: Report proper error code for address translation failure 2020-07-15 23:09:55 +10:00
vas-trace.h
vas-window.c powerpc/vas: Add VAS user space API 2020-04-20 16:53:14 +10:00
vas.c powerpc/vas: Setup thread IRQ handler per VAS instance 2020-04-20 16:53:00 +10:00
vas.h powerpc/vas: Add VAS user space API 2020-04-20 16:53:14 +10:00