]> 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)
commitbe56a757d5c0adf1813a33e03848bd6b3e84f2a8
treeb1b9c9eb381437982de078d061c274264a25c104
parent3157d0422888e76a1e1fefe49dcc1ff21f21fcb7
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