PCI/DOE: Add DOE mailbox support functions
Introduced in a PCIe r6.0, sec 6.30, DOE provides a config space based mailbox with standard protocol discovery. Each mailbox is accessed through a DOE Extended Capability. Each DOE mailbox must support the DOE discovery protocol in addition to any number of additional protocols. Define core PCIe functionality to manage a single PCIe DOE mailbox at a defined config space offset. Functionality includes iterating, creating, query of supported protocol, and task submission. Destruction of the mailboxes is device managed. Cc: "Li, Ming" <ming4.li@intel.com> Cc: Bjorn Helgaas <helgaas@kernel.org> Cc: Matthew Wilcox <willy@infradead.org> Acked-by:Bjorn Helgaas <helgaas@kernel.org> Signed-off-by:
Jonathan Cameron <Jonathan.Cameron@huawei.com> Co-developed-by:
Ira Weiny <ira.weiny@intel.com> Signed-off-by:
Ira Weiny <ira.weiny@intel.com> Link: https://lore.kernel.org/r/20220719205249.566684-4-ira.weiny@intel.com Signed-off-by:
Dan Williams <dan.j.williams@intel.com>
Showing
- .clang-format 1 addition, 0 deletions.clang-format
- drivers/pci/Kconfig 3 additions, 0 deletionsdrivers/pci/Kconfig
- drivers/pci/Makefile 1 addition, 0 deletionsdrivers/pci/Makefile
- drivers/pci/doe.c 536 additions, 0 deletionsdrivers/pci/doe.c
- include/linux/pci-doe.h 77 additions, 0 deletionsinclude/linux/pci-doe.h
- include/uapi/linux/pci_regs.h 28 additions, 1 deletioninclude/uapi/linux/pci_regs.h
Loading
Please register or sign in to comment