Skip to content

Commit ebdf7d3

Browse files
htejunLinus Torvalds
authored andcommitted
pci-quirks: fix MSI disabling on RS400-200 and RS480
Commit c0affe9 doesn't work because the host controller is being quirked not a PCI bridge. This patch reverts the commit, rename quirk_svw_msi() to quirk_disable_all_msi() and use it instead. Signed-off-by: Tejun Heo <htejun@gmail.com> Cc: Matias Alejandro Torres <torresmat@gmail.com> Cc: Greg K-H <greg@kroah.com> Cc: Jeff Garzik <jeff@garzik.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent c1aee21 commit ebdf7d3

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

‎drivers/pci/quirks.c‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1625,18 +1625,20 @@ DECLARE_PCI_FIXUP_RESUME(PCI_VENDOR_ID_NVIDIA, PCI_DEVICE_ID_NVIDIA_CK804_PCIE,
16251625
quirk_nvidia_ck804_pcie_aer_ext_cap);
16261626

16271627
#ifdef CONFIG_PCI_MSI
1628-
/* The Serverworks PCI-X chipset does not support MSI. We cannot easily rely
1629-
* on setting PCI_BUS_FLAGS_NO_MSI in its bus flags because there are actually
1630-
* some other busses controlled by the chipset even if Linux is not aware of it.
1631-
* Instead of setting the flag on all busses in the machine, simply disable MSI
1632-
* globally.
1628+
/* Some chipsets do not support MSI. We cannot easily rely on setting
1629+
* PCI_BUS_FLAGS_NO_MSI in its bus flags because there are actually
1630+
* some other busses controlled by the chipset even if Linux is not
1631+
* aware of it. Instead of setting the flag on all busses in the
1632+
* machine, simply disable MSI globally.
16331633
*/
1634-
static void __init quirk_svw_msi(struct pci_dev *dev)
1634+
static void __init quirk_disable_all_msi(struct pci_dev *dev)
16351635
{
16361636
pci_no_msi();
16371637
printk(KERN_WARNING "PCI: MSI quirk detected. MSI deactivated.\n");
16381638
}
1639-
DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_SERVERWORKS, PCI_DEVICE_ID_SERVERWORKS_GCNB_LE, quirk_svw_msi);
1639+
DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_SERVERWORKS, PCI_DEVICE_ID_SERVERWORKS_GCNB_LE, quirk_disable_all_msi);
1640+
DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_ATI, PCI_DEVICE_ID_ATI_RS400_200, quirk_disable_all_msi);
1641+
DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_ATI, PCI_DEVICE_ID_ATI_RS480, quirk_disable_all_msi);
16401642

16411643
/* Disable MSI on chipsets that are known to not support it */
16421644
static void __devinit quirk_disable_msi(struct pci_dev *dev)
@@ -1649,8 +1651,6 @@ static void __devinit quirk_disable_msi(struct pci_dev *dev)
16491651
}
16501652
}
16511653
DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_8131_BRIDGE, quirk_disable_msi);
1652-
DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_ATI, PCI_DEVICE_ID_ATI_RS400_200, quirk_disable_msi);
1653-
DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_ATI, PCI_DEVICE_ID_ATI_RS480, quirk_disable_msi);
16541654

16551655
/* Go through the list of Hypertransport capabilities and
16561656
* return 1 if a HT MSI capability is found and enabled */

0 commit comments

Comments
 (0)