This patch continue https://lore.kernel.org/linux-pci/20220922163206.21281-1-Frank.Li@xxxxxxx/ The above patch series fork to two parts. clean up and use msi as doorbell. clean up patch already been in https://git.kernel.org/pub/scm/linux/kernel/git/lpieralisi/pci.git/commit/?h=pci/endpoint These patches based on the above git branch. Change from v12 to v13: fixed Lorenzo Pieralisi comments in https://lore.kernel.org/imx/Yz%2FuMiElbqB3ThGd@lpieralisi/T/#u - update diagram - Add platform_msi_domain_free_irqs at failure path - sizeof(u32) is because hardcode by ntb_hw_epf.c Frank Li (2): PCI: endpoint: pci-epf-vntb: change doorbell register offset calc mathod PCI: endpoint: pci-epf-vntb: using platform MSI as doorbell drivers/pci/endpoint/functions/pci-epf-vntb.c | 150 +++++++++++++++--- 1 file changed, 127 insertions(+), 23 deletions(-) -- 2.34.1