History

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.

Ira Weiny committed 4 years ago

Commit 487d8281 parent 27829472 files · +6 −0Browse files

Showing the changes to include/uapi (1 of 2 files). Show all

Unified · Split

include/uapi/linux/pci_regs.h+1−0
@@ -1119,6 +1119,7 @@ · 1118 unmodified lines
11191119 #define PCI_DOE_STATUS_DATA_OBJECT_READY 0x80000000 /* Data Object Ready */
11201120 #define PCI_DOE_WRITE 0x10 /* DOE Write Data Mailbox Register */
11211121 #define PCI_DOE_READ 0x14 /* DOE Read Data Mailbox Register */
1122+#define PCI_DOE_CAP_SIZEOF 0x18 /* Size of DOE register block */
11221123
11231124 /* DOE Data Object - note not actually registers */
11241125 #define PCI_DOE_DATA_OBJECT_HEADER_1_VID 0x0000ffff