mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-11 03:24:58 -06:00
pcie_aer: Don't trigger a LSI if none are defined
Skip triggering an LSI when the AER root error status is updated if no LSI is defined for the device. We can have a root bridge with no LSI, MSI and MSI-X defined, for example on POWER systems. Signed-off-by: Frederic Barrat <fbarrat@linux.ibm.com> Message-Id: <20211116170133.724751-4-fbarrat@linux.ibm.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Cédric Le Goater <clg@kaod.org>
This commit is contained in:
parent
2fedf46e34
commit
20766514d6
1 changed files with 3 additions and 1 deletions
|
@ -774,7 +774,9 @@ void pcie_aer_root_write_config(PCIDevice *dev,
|
||||||
uint32_t root_cmd = pci_get_long(aer_cap + PCI_ERR_ROOT_COMMAND);
|
uint32_t root_cmd = pci_get_long(aer_cap + PCI_ERR_ROOT_COMMAND);
|
||||||
/* 6.2.4.1.2 Interrupt Generation */
|
/* 6.2.4.1.2 Interrupt Generation */
|
||||||
if (!msix_enabled(dev) && !msi_enabled(dev)) {
|
if (!msix_enabled(dev) && !msi_enabled(dev)) {
|
||||||
|
if (pci_intx(dev) != -1) {
|
||||||
pci_set_irq(dev, !!(root_cmd & enabled_cmd));
|
pci_set_irq(dev, !!(root_cmd & enabled_cmd));
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue