linux/drivers/misc/cxl
Ian Munsie 00ba02150d cxl: Unmap MMIO regions when detaching a context
commit b123429e6a upstream.

If we need to force detach a context (e.g. due to EEH or simply force
unbinding the driver) we should prevent the userspace contexts from
being able to access the Problem State Area MMIO region further, which
they may have mapped with mmap().

This patch unmaps any mapped MMIO regions when detaching a userspace
context.

Signed-off-by: Ian Munsie <imunsie@au1.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2015-01-27 08:29:36 -08:00
..
base.c cxl: Add base builtin support 2014-10-08 20:15:56 +11:00
context.c cxl: Unmap MMIO regions when detaching a context 2015-01-27 08:29:36 -08:00
cxl.h cxl: Unmap MMIO regions when detaching a context 2015-01-27 08:29:36 -08:00
debugfs.c cxl: Driver code for powernv PCIe based cards for userspace access 2014-10-08 20:15:57 +11:00
fault.c cxl: Fix PSL error due to duplicate segment table entries 2014-10-28 19:52:52 +11:00
file.c cxl: Unmap MMIO regions when detaching a context 2015-01-27 08:29:36 -08:00
irq.c cxl: Driver code for powernv PCIe based cards for userspace access 2014-10-08 20:15:57 +11:00
Kconfig cxl: Add driver to Kbuild and Makefiles 2014-10-08 20:15:58 +11:00
main.c cxl: Driver code for powernv PCIe based cards for userspace access 2014-10-08 20:15:57 +11:00
Makefile cxl: Add driver to Kbuild and Makefiles 2014-10-08 20:15:58 +11:00
native.c cxl: Add timeout to process element commands 2015-01-27 08:29:36 -08:00
pci.c cxl: Change contexts_lock to a mutex to fix sleep while atomic bug 2015-01-27 08:29:36 -08:00
sysfs.c cxl: Change contexts_lock to a mutex to fix sleep while atomic bug 2015-01-27 08:29:36 -08:00