Skip to contentSkip to conversation

forcedeth: msi interrupt fix

PATCH Applied Ayaz Abdulla 2 participants 2 messages Feb 6, 2009 – Feb 7, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 2/5 forcedeth: msi interrupt fix

This patch fixes an issue with the suspend/resume cycle with msi interrupts. See bugzilla number 10487 for more details. The fix is to re-setup a private msi pci config offset field.

drivers/net/forcedeth.c +5 -0
@@ -589,6 +589,9 @@
 #define NV_MSI_X_VECTOR_TX    0x1
 #define NV_MSI_X_VECTOR_OTHER 0x2
 
+#define NV_MSI_PRIV_OFFSET 0x68
+#define NV_MSI_PRIV_VALUE  0xffffffff
+
 #define NV_RESTART_TX         0x1
 #define NV_RESTART_RX         0x2
 
@@ -6074,6 +6077,8 @@
 	for (i = 0;i <= np->register_size/sizeof(u32); i++)
 		writel(np->saved_config_space[i], base+i*sizeof(u32));
 
+	pci_write_config_dword(pdev, NV_MSI_PRIV_OFFSET, NV_MSI_PRIV_VALUE);
+
 	netif_device_attach(dev);
 	if (netif_running(dev)) {
 		rc = nv_open(dev);
maintainer Applied
#1 lore raw

From: Ayaz Abdulla <[email protected]>
Date: Fri, 06 Feb 2009 14:27:24 -0500

Quoted 5 lines

This patch fixes an issue with the suspend/resume cycle with msi interrupts. See bugzilla number 10487 for more details. The fix is to re-setup a private msi pci config offset field.

Applied to net-next-2.6