Skip to content

Fix irq allocation of PCI host bridge on powernv

Frederic Barrat qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3ppc/pnv: Tune the POWER9 PCIe Host bridge modelhw/pci-host/pnv_phb4.c+4 -15 replies
2/3pci: Export the pci_intx() functionhw/pci/pci.c include/hw/pci/pci.h+5 -51 reply
3/3pcie_aer: Don't trigger a LSI if none are definedhw/pci/pcie_aer.c+3 -11 reply

Reviews trailers per patch

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

PatchCédric Le Goater
1/3R-b
2/3R-b
3/3R-b

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

Read the v1 thread

Cover letter [PATCH 0/3] Fix irq allocation of PCI host bridge on powernv

This series removes a bogus allocation of a LSI interrupt for the PCI Host Bridge found in the powernv model (phb4). The real hardware doesn't declare any LSI, so the model should match. It was causing some inconsistencies in the interrupt controller data.

However, removing that LSI shows that the PCI AER code assumes an interrupt is defined (LSI or MSI or MSI-X), which is not the case with the root bridge device on powernv. So the last patch adds a check to make sure a LSI is defined before entering pci_set_irq() as it asserts if it's called with no LSI defined.

Frederic Barrat (3):
ppc/pnv: Tune the POWER9 PCIe Host bridge model
pci: Export the pci_intx() function
pcie_aer: Don't trigger a LSI if none are defined

 hw/pci-host/pnv_phb4.c | 5 ++++-
 hw/pci/pci.c           | 5 -----
 hw/pci/pcie_aer.c      | 4 +++-
 include/hw/pci/pci.h   | 5 +++++
 4 files changed, 12 insertions(+), 7 deletions(-)
Signature · 1 line
2.33.1