]> git.baikalelectronics.ru Git - kernel.git/commit
cxl: Unmap MMIO regions when detaching a context
authorIan Munsie <imunsie@au1.ibm.com>
Mon, 8 Dec 2014 08:18:01 +0000 (19:18 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 12 Dec 2014 02:06:48 +0000 (13:06 +1100)
commitbb997d4dcbe9ecbabdae74768b13d492346676ff
treeb1b9c9eb381437982de078d061c274264a25c104
parent006aaac1ec675d53f5c334e95cd3744b8ed689e7
cxl: Unmap MMIO regions when detaching a context

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.

Cc: stable@vger.kernel.org
Signed-off-by: Ian Munsie <imunsie@au1.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
drivers/misc/cxl/context.c
drivers/misc/cxl/cxl.h
drivers/misc/cxl/file.c