[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1262822843-14700-1-git-send-email-benli@broadcom.com>
Date: Wed, 6 Jan 2010 16:07:23 -0800
From: "Benjamin Li" <benli@...adcom.com>
To: "netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"Kalyan Ram Chintalapati" <kalyanc@...are.com>,
"Michael Chan" <mchan@...adcom.com>
cc: "Benjamin Li" <benli@...adcom.com>,
"Kalyan Ram Chintalapati" <kalyanc@...are.com>,
"Michael Chan" <mchan@...adcom.com>
Subject: [PATCH net-next] bnx2: Flush the register writes which setup
the MSI-X table
The MSI-X table size needs to be properly set before pci_enable_msix()
is called. But on certain machines, the writes are delayed and the
MSI-X table size is incorrectly read. By reading the
BNX2_PCI_MSIX_CONTROL register, the writes are flushed and now
ensure that the MSI-X table is set correctly before MSI-X
is enable on the device.
This patch was originally diagnosed and authored by
Kalyan Ram Chintalapati <kalyanc@...are.com>.
Signed-off-by: Benjamin Li <benli@...adcom.com>
Signed-off-by: Kalyan Ram Chintalapati <kalyanc@...are.com>
Signed-off-by: Michael Chan <mchan@...adcom.com>
---
drivers/net/bnx2.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/drivers/net/bnx2.c b/drivers/net/bnx2.c
index 65df1de..c7289b5 100644
--- a/drivers/net/bnx2.c
+++ b/drivers/net/bnx2.c
@@ -6145,6 +6145,10 @@ bnx2_enable_msix(struct bnx2 *bp, int msix_vecs)
REG_WR(bp, BNX2_PCI_MSIX_TBL_OFF_BIR, BNX2_PCI_GRC_WINDOW2_BASE);
REG_WR(bp, BNX2_PCI_MSIX_PBA_OFF_BIT, BNX2_PCI_GRC_WINDOW3_BASE);
+ /* Need to flush the previous three writes to ensure MSI-X
+ * is setup properly */
+ REG_RD(bp, BNX2_PCI_MSIX_CONTROL);
+
for (i = 0; i < BNX2_MAX_MSIX_VEC; i++) {
msix_ent[i].entry = i;
msix_ent[i].vector = 0;
--
1.6.1.2
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists