Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 266177
b: refs/heads/master
c: 853d4bc
h: refs/heads/master
i:
  266175: f0e193f
v: v3
  • Loading branch information
Ameen Rahman authored and David S. Miller committed Sep 23, 2011
1 parent 0256e31 commit 3a5328c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fb7a6d4e7da219f895d156cad00e2b6373e2494f
refs/heads/master: 853d4bcaeb31905b85ba9f65f46cfaf9c41d1915
11 changes: 8 additions & 3 deletions trunk/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -3087,7 +3087,7 @@ static int
qlcnic_check_health(struct qlcnic_adapter *adapter)
{
u32 state = 0, heartbeat;
struct net_device *netdev = adapter->netdev;
u32 peg_status;

if (qlcnic_check_temp(adapter))
goto detach;
Expand Down Expand Up @@ -3127,8 +3127,8 @@ qlcnic_check_health(struct qlcnic_adapter *adapter)
if (auto_fw_reset)
clear_bit(__QLCNIC_FW_ATTACHED, &adapter->state);

dev_info(&netdev->dev, "firmware hang detected\n");
dev_info(&adapter->pdev->dev, "Dumping hw/fw registers\n"
dev_err(&adapter->pdev->dev, "firmware hang detected\n");
dev_err(&adapter->pdev->dev, "Dumping hw/fw registers\n"
"PEG_HALT_STATUS1: 0x%x, PEG_HALT_STATUS2: 0x%x,\n"
"PEG_NET_0_PC: 0x%x, PEG_NET_1_PC: 0x%x,\n"
"PEG_NET_2_PC: 0x%x, PEG_NET_3_PC: 0x%x,\n"
Expand All @@ -3140,6 +3140,11 @@ qlcnic_check_health(struct qlcnic_adapter *adapter)
QLCRD32(adapter, QLCNIC_CRB_PEG_NET_2 + 0x3c),
QLCRD32(adapter, QLCNIC_CRB_PEG_NET_3 + 0x3c),
QLCRD32(adapter, QLCNIC_CRB_PEG_NET_4 + 0x3c));
peg_status = QLCRD32(adapter, QLCNIC_PEG_HALT_STATUS1);
if (LSW(MSB(peg_status)) == 0x67)
dev_err(&adapter->pdev->dev,
"Firmware aborted with error code 0x00006700. "
"Device is being reset.\n");
detach:
adapter->dev_state = (state == QLCNIC_DEV_NEED_QUISCENT) ? state :
QLCNIC_DEV_NEED_RESET;
Expand Down

0 comments on commit 3a5328c

Please sign in to comment.