cxl/doe: Request exclusive DOE access
authorIra Weiny <ira.weiny@intel.com>
Mon, 26 Sep 2022 21:57:11 +0000 (14:57 -0700)
committerDan Williams <dan.j.williams@intel.com>
Mon, 14 Nov 2022 18:07:22 +0000 (10:07 -0800)
commit487d828d751d90cf9ca594f45b02dd0e0d712b64
treefb83694896b6a27fa0fc2448a6044e041b470269
parent278294798ac9118412c9624a801d3f20f2279363
cxl/doe: Request exclusive DOE access

The PCIE Data Object Exchange (DOE) mailbox is a protocol run over
configuration cycles.  It assumes one initiator at a time.  While the
kernel has control of the mailbox user space writes could interfere with
the kernel access.

Mark DOE mailbox config space exclusive when iterated by the CXL driver.

Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Link: https://lore.kernel.org/r/20220926215711.2893286-3-ira.weiny@intel.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/cxl/pci.c
include/uapi/linux/pci_regs.h