diff options
Diffstat (limited to 'drivers/net/qlcnic/qlcnic_main.c')
-rw-r--r-- | drivers/net/qlcnic/qlcnic_main.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/drivers/net/qlcnic/qlcnic_main.c b/drivers/net/qlcnic/qlcnic_main.c index d287a2bd498d..ec8ef72d38d3 100644 --- a/drivers/net/qlcnic/qlcnic_main.c +++ b/drivers/net/qlcnic/qlcnic_main.c | |||
@@ -3109,7 +3109,18 @@ qlcnic_check_health(struct qlcnic_adapter *adapter) | |||
3109 | clear_bit(__QLCNIC_FW_ATTACHED, &adapter->state); | 3109 | clear_bit(__QLCNIC_FW_ATTACHED, &adapter->state); |
3110 | 3110 | ||
3111 | dev_info(&netdev->dev, "firmware hang detected\n"); | 3111 | dev_info(&netdev->dev, "firmware hang detected\n"); |
3112 | 3112 | dev_info(&adapter->pdev->dev, "Dumping hw/fw registers\n" | |
3113 | "PEG_HALT_STATUS1: 0x%x, PEG_HALT_STATUS2: 0x%x,\n" | ||
3114 | "PEG_NET_0_PC: 0x%x, PEG_NET_1_PC: 0x%x,\n" | ||
3115 | "PEG_NET_2_PC: 0x%x, PEG_NET_3_PC: 0x%x,\n" | ||
3116 | "PEG_NET_4_PC: 0x%x\n", | ||
3117 | QLCRD32(adapter, QLCNIC_PEG_HALT_STATUS1), | ||
3118 | QLCRD32(adapter, QLCNIC_PEG_HALT_STATUS2), | ||
3119 | QLCRD32(adapter, QLCNIC_CRB_PEG_NET_0 + 0x3c), | ||
3120 | QLCRD32(adapter, QLCNIC_CRB_PEG_NET_1 + 0x3c), | ||
3121 | QLCRD32(adapter, QLCNIC_CRB_PEG_NET_2 + 0x3c), | ||
3122 | QLCRD32(adapter, QLCNIC_CRB_PEG_NET_3 + 0x3c), | ||
3123 | QLCRD32(adapter, QLCNIC_CRB_PEG_NET_4 + 0x3c)); | ||
3113 | detach: | 3124 | detach: |
3114 | adapter->dev_state = (state == QLCNIC_DEV_NEED_QUISCENT) ? state : | 3125 | adapter->dev_state = (state == QLCNIC_DEV_NEED_QUISCENT) ? state : |
3115 | QLCNIC_DEV_NEED_RESET; | 3126 | QLCNIC_DEV_NEED_RESET; |