Skip to contentSkip to conversation

igb: Use irq_synchronize per vector when using MSI-X

PATCH Applied Jeff Kirsher 2 participants 2 messages Aug 3, 2010

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

PATCH 1/1 igb: Use irq_synchronize per vector when using MSI-X

From: Emil Tantilov <[email protected]>

Synchronize all IRQs when using MSI-X. Similar to ixgbe. Issue was reported on e1000e, but the patch is also valid for igb.

---

 drivers/net/igb/igb_main.c |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
drivers/net/igb/igb_main.c +7 -1
index 667b527..df5dcd2 100644
@@ -1290,7 +1290,13 @@ static void igb_irq_disable(struct igb_adapter *adapter)
 	wr32(E1000_IAM, 0);
 	wr32(E1000_IMC, ~0);
 	wrfl();
-	synchronize_irq(adapter->pdev->irq);
+	if (adapter->msix_entries) {
+		int i;
+		for (i = 0; i < adapter->num_q_vectors; i++)
+			synchronize_irq(adapter->msix_entries[i].vector);
+	} else {
+		synchronize_irq(adapter->pdev->irq);
+	}
 }
 
 /**
maintainer Applied
#1 lore raw

From: Jeff Kirsher <[email protected]>
Date: Mon, 02 Aug 2010 17:40:52 -0700

Quoted 9 lines

From: Emil Tantilov <[email protected]>

Synchronize all IRQs when using MSI-X. Similar to ixgbe. Issue was reported on e1000e, but the patch is also valid for igb.

Applied.