diff mbox

MSI problem with ethernet on Asus P5GC mobo

Message ID 20100105094745.06e854e6@jbarnes-piketon (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Jesse Barnes Jan. 5, 2010, 5:47 p.m. UTC
None
diff mbox

Patch

diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c
index c746943..922f0a6 100644
--- a/drivers/pci/quirks.c
+++ b/drivers/pci/quirks.c
@@ -2203,6 +2203,22 @@  DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_NVIDIA,
 			PCI_DEVICE_ID_NVIDIA_NVENET_15,
 			nvenet_msi_disable);
 
+/*
+ * On Asus P5GC, the Realtek NIC driver fails if MSI is enabled.  This could
+ * be a chipset problem or a NIC hw problem.  Just disable the NIC for now.
+ */
+static void __devinit asus_realtek_msi_disable(struct pci_dev *dev)
+{
+	if (dmi_name_in_vendors("ASUS P5GC")) {
+		dev_info(&dev->dev,
+			 "Disabling MSI for Realtek NIC on P5GC\n");
+		dev->no_msi = 1;
+	}
+}
+DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_REALTEK,
+			PCI_DEVICE_ID_REALTEK_8139,
+			asus_realtek_msi_disable);
+
 static int __devinit ht_check_msi_mapping(struct pci_dev *dev)
 {
 	int pos, ttl = 48;