PCI: endpoint: Add RC-to-EP doorbell support using platform MSI controller
authorFrank Li <Frank.Li@nxp.com>
Thu, 10 Jul 2025 19:13:49 +0000 (15:13 -0400)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 24 Jul 2025 21:51:17 +0000 (16:51 -0500)
commit1c3b002c6bf684b445a7107609979bca5f21bc03
tree62213d7a2068ec54d57d0329950ac2f0b8149c7b
parent19272b37aa4f83ca52bdf9c16d5d81bdd1354494
PCI: endpoint: Add RC-to-EP doorbell support using platform MSI controller

Implement the doorbell feature by mapping the EP's MSI interrupt controller
message address to a dedicated BAR.

The EPF driver should pass the actual message data to be written to the
message address by the host through implementation-specific logic.

Signed-off-by: Frank Li <Frank.Li@nxp.com>
[mani: minor code cleanups and reworded commit message]
Signed-off-by: Manivannan Sadhasivam <mani@kernel.org>
[bhelgaas: fix kernel-doc]
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Tested-by: Niklas Cassel <cassel@kernel.org>
Link: https://patch.msgid.link/20250710-ep-msi-v21-3-57683fc7fb25@nxp.com
drivers/pci/endpoint/Kconfig
drivers/pci/endpoint/Makefile
drivers/pci/endpoint/pci-ep-msi.c [new file with mode: 0644]
include/linux/pci-ep-msi.h [new file with mode: 0644]
include/linux/pci-epf.h