Skip to content

Generic PCIe host bridge INTx determination for INTx routing

Eric Auger qemu-arm qemu-devel 3 versions – Applied

Status from this message: Applied to target-arm.next, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest3 patches 2 repliesApplied
  2. v3 posting 2/23 patches 5 repliesSuperseded
  3. v3 posting 1/23 patches 1 replySuperseded

v3 -> v3 from the cover letter

- use int instead of uint32_t for gsis
- added Drew's R-b
- Added Feng's T-b

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/3hw/pci-host/gpex: Set INTx index/gsi mappinghw/pci-host/gpex.c include/hw/pci-host/gpex.h+13 -01 reply
2/3hw/arm/virt: Set INTx/gsi mappinghw/arm/virt.c+1 -00 replies
3/3hw/pci-host/gpex: Implement PCI INTx routinghw/pci-host/gpex.c+12 -00 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchFeng KanAndrew Jones
1/3T-b R-b
2/3T-b R-b
3/3T-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [Qemu-arm] [PATCH v4 0/3] Generic PCIe host bridge INTx determination for INTx routing

This series implements INTx to gsi routing for ARM VIRT/Gpex. This is a respin of [1] which was lost in limbo.

ARM virt uses GPEX PCIe bridge. This latter does not implement INTx to GSI routing. PCIe/INTx assignment works but the consequence is irqfd is not used along with INTx interrupts and VFIO INTx handlers are executed on userspace leading to an important performance degradation.

This issue is witnessed by the following messages;

qemu-system-aarch64: -device vfio-pci,host=0006:90:00.0: PCI: Bug - unimplemented PCI INTx routing (gpex-pcihost)
qemu-system-aarch64: PCI: Bug - unimplemented PCI INTx routing (gpex-pcihost)
qemu-system-aarch64: PCI: Bug - unimplemented PCI INTx routing (gpex-pcihost)

So with this series, irqfd is set up for PCIe/INTx passthrough and we get the optimal performance. Also we get rid of the above messages.

This series can be found at:
https://github.com/eauger/qemu/tree/v2.10.0-gpex-v4

References:
[1] Generic PCIe host bridge INTx determination for INTx routing
https://lists.gnu.org/archive/html/qemu-devel/2015-09/msg04975.html

History:
v3 -> v3:
- use int instead of uint32_t for gsis
- added Drew's R-b
- Added Feng's T-b

Pranavkumar Sawargaonkar (3):
hw/pci-host/gpex: Set INTx index/gsi mapping
hw/arm/virt: Set INTx/gsi mapping
hw/pci-host/gpex: Implement PCI INTx routing

 hw/arm/virt.c              |  1 +
 hw/pci-host/gpex.c         | 22 ++++++++++++++++++++++
 include/hw/pci-host/gpex.h |  3 +++
 3 files changed, 26 insertions(+)
Signature · 1 line
2.5.5