Skip to content

PCI/gic-v3-its: Add support for same ITS device ID for multiple PCIe devices

Kishon Vijay Abraham I linux-pci lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 11 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3PCI: Add support in pci_walk_bus() to invoke callback matching RIDdrivers/pci/bus.c include/linux/pci.h+14 -66 replies
2/3PCI: Export find_pci_root_bus()drivers/pci/host-bridge.c include/linux/pci.h+3 -11 reply
3/3irqchip/gic-v3-its: Include "msi-map-mask" for calculating nvecsdrivers/irqchip/irq-gic-v3-its-pci-msi.c+20 -11 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] PCI/gic-v3-its: Add support for same ITS device ID for multiple PCIe devices

AM64 has an issue in that it doesn't trigger interrupt if the address in the *pre_its_window* is not aligned to 8-bytes (this is due to an invalid bridge configuration in HW).

This means there will not be interrupts for devices with PCIe requestor ID 0x1, 0x3, 0x5..., as the address in the pre-ITS window would be 4 (1 << 2), 12 (3 << 2), 20 (5 << 2) respectively which are not aligned to 8-bytes.

The DT binding has specified "msi-map-mask" using which multiple PCIe devices could be made to use the same ITS device ID.

Add support in irq-gic-v3-its-pci-msi.c for such cases where multiple PCIe devices are using the same ITS device ID.

Kishon Vijay Abraham I (3):
PCI: Add support in pci_walk_bus() to invoke callback matching RID
PCI: Export find_pci_root_bus()
irqchip/gic-v3-its: Include "msi-map-mask" for calculating nvecs

 drivers/irqchip/irq-gic-v3-its-pci-msi.c | 21 ++++++++++++++++++++-
 drivers/pci/bus.c                        | 13 +++++++++----
 drivers/pci/host-bridge.c                |  3 ++-
 include/linux/pci.h                      |  8 ++++++--
 4 files changed, 37 insertions(+), 8 deletions(-)
Signature · 1 line
2.17.1