]> git.karo-electronics.de Git - linux-beck.git/commitdiff
PCI: Assume all Mellanox devices have broken INTx masking
authorGavin Shan <gwshan@linux.vnet.ibm.com>
Fri, 5 Sep 2014 21:35:30 +0000 (15:35 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 8 Sep 2014 17:06:13 +0000 (11:06 -0600)
The VFIO driver routes LSI interrupts by capturing, masking, and then
delivering.  When passing though Mellanox adapters from host to guest,
interrupt storm are reported from host and guest.  That's because the PCI
command register INTx Disable bit doesn't work on Mellanox devices.

  # lspci | grep Mellanox
  0001:05:00.0 Ethernet controller: Mellanox Technologies MT27500 Family [ConnectX-3]
  0005:01:00.0 Ethernet controller: Mellanox Technologies MT26448 [ConnectX EN 10GigE, PCIe 2.0 5GT/s] (rev b0)

Amir Vadai confirmed that all Mellanox devices have same problem.
The patch marks broken INTx masking for all Mellanox adapters.

Suggested-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-By: Amir Vadai <amirv@mellanox.com>
drivers/pci/quirks.c

index 80c2d014283d12c86d83ad22e98531bc8121cdc3..da062d8ae36f889865f4239e7b5cc404c2e4cb25 100644 (file)
@@ -2985,6 +2985,8 @@ DECLARE_PCI_FIXUP_HEADER(0x1814, 0x0601, /* Ralink RT2800 802.11n PCI */
  */
 DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_REALTEK, 0x8169,
                         quirk_broken_intx_masking);
+DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_MELLANOX, PCI_ANY_ID,
+                        quirk_broken_intx_masking);
 
 #ifdef CONFIG_ACPI
 /*