diff options
author | Michael Chan <mchan@broadcom.com> | 2010-07-03 16:42:17 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-07-04 14:44:00 -0400 |
commit | 5804a8fbb8f53759a6c806c2a8da1b47b82f12bc (patch) | |
tree | e2136f298c5e9d949210eafdb6a9fe601f4119a9 /drivers/net/bnx2.c | |
parent | fdc8541d693a04ba3d6c335dace19b8362ac4e83 (diff) |
bnx2: Dump some config space registers during TX timeout.
These config register values will be useful when the memory registers
are returning 0xffffffff which has been reported.
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bnx2.c')
-rw-r--r-- | drivers/net/bnx2.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/drivers/net/bnx2.c b/drivers/net/bnx2.c index 1450c75bc19d..bf5302026d78 100644 --- a/drivers/net/bnx2.c +++ b/drivers/net/bnx2.c | |||
@@ -6313,9 +6313,14 @@ static void | |||
6313 | bnx2_dump_state(struct bnx2 *bp) | 6313 | bnx2_dump_state(struct bnx2 *bp) |
6314 | { | 6314 | { |
6315 | struct net_device *dev = bp->dev; | 6315 | struct net_device *dev = bp->dev; |
6316 | u32 mcp_p0, mcp_p1; | 6316 | u32 mcp_p0, mcp_p1, val1, val2; |
6317 | 6317 | ||
6318 | netdev_err(dev, "DEBUG: intr_sem[%x]\n", atomic_read(&bp->intr_sem)); | 6318 | pci_read_config_dword(bp->pdev, PCI_COMMAND, &val1); |
6319 | netdev_err(dev, "DEBUG: intr_sem[%x] PCI_CMD[%08x]\n", | ||
6320 | atomic_read(&bp->intr_sem), val1); | ||
6321 | pci_read_config_dword(bp->pdev, bp->pm_cap + PCI_PM_CTRL, &val1); | ||
6322 | pci_read_config_dword(bp->pdev, BNX2_PCICFG_MISC_CONFIG, &val2); | ||
6323 | netdev_err(dev, "DEBUG: PCI_PM[%08x] PCI_MISC_CFG[%08x]\n", val1, val2); | ||
6319 | netdev_err(dev, "DEBUG: EMAC_TX_STATUS[%08x] EMAC_RX_STATUS[%08x]\n", | 6324 | netdev_err(dev, "DEBUG: EMAC_TX_STATUS[%08x] EMAC_RX_STATUS[%08x]\n", |
6320 | REG_RD(bp, BNX2_EMAC_TX_STATUS), | 6325 | REG_RD(bp, BNX2_EMAC_TX_STATUS), |
6321 | REG_RD(bp, BNX2_EMAC_RX_STATUS)); | 6326 | REG_RD(bp, BNX2_EMAC_RX_STATUS)); |