]> Gentwo Git Trees - linux/.git/commit
PCI: endpoint: pci-epf-vntb: Add MSI doorbell support
authorFrank Li <Frank.Li@nxp.com>
Wed, 15 Oct 2025 15:27:31 +0000 (11:27 -0400)
committerManivannan Sadhasivam <mani@kernel.org>
Mon, 27 Oct 2025 15:15:52 +0000 (20:45 +0530)
commitdc693d60664470ec47188c328055d80e8ce7ea44
tree631652758fe9a4e62b07743e37beb3f5d391832c
parent0bfc6758f213a701bd662982de86f0032b51f18c
PCI: endpoint: pci-epf-vntb: Add MSI doorbell support

Add MSI doorbell support to reduce latency between PCI host and EP.

Before this change:
  ping 169.254.172.137
  64 bytes from 169.254.172.137: icmp_seq=1 ttl=64 time=0.575 ms
  64 bytes from 169.254.172.137: icmp_seq=2 ttl=64 time=1.80 ms
  64 bytes from 169.254.172.137: icmp_seq=3 ttl=64 time=8.19 ms
  64 bytes from 169.254.172.137: icmp_seq=4 ttl=64 time=2.00 ms

After this change:
  ping 169.254.144.71
  64 bytes from 169.254.144.71: icmp_seq=1 ttl=64 time=0.215 ms
  64 bytes from 169.254.144.71: icmp_seq=2 ttl=64 time=0.456 ms
  64 bytes from 169.254.144.71: icmp_seq=3 ttl=64 time=0.448 ms

Also, change the data type of 'epf_ntb::db' to 'atomic_64' as multiple
doorbell interrupts might trigger at the same time.

Signed-off-by: Frank Li <Frank.Li@nxp.com>
[mani: added 'pci_epf_' prefix to doorbell IRQ name, minor code cleanups]
Signed-off-by: Manivannan Sadhasivam <mani@kernel.org>
Link: https://patch.msgid.link/20251015-vntb_msi_doorbell-v6-4-9230298b1910@nxp.com
drivers/pci/endpoint/functions/pci-epf-vntb.c