Commit a4666570 authored by Sudarsana Reddy Kalluru's avatar Sudarsana Reddy Kalluru Committed by David S. Miller

bnx2x: Perform Idlechk dump during the debug collection.

The patch adds driver changes to perform Idlechk dump during the debug
data collection.
Signed-off-by: default avatarSudarsana Reddy Kalluru <skalluru@marvell.com>
Signed-off-by: default avatarIgor Russkikh <irusskikh@marvell.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent cdf711f2
...@@ -1176,9 +1176,18 @@ void bnx2x_panic_dump(struct bnx2x *bp, bool disable_int) ...@@ -1176,9 +1176,18 @@ void bnx2x_panic_dump(struct bnx2x *bp, bool disable_int)
} }
#endif #endif
if (IS_PF(bp)) { if (IS_PF(bp)) {
int tmp_msg_en = bp->msg_enable;
bnx2x_fw_dump(bp); bnx2x_fw_dump(bp);
bp->msg_enable |= NETIF_MSG_HW;
BNX2X_ERR("Idle check (1st round) ----------\n");
bnx2x_idle_chk(bp);
BNX2X_ERR("Idle check (2nd round) ----------\n");
bnx2x_idle_chk(bp);
bp->msg_enable = tmp_msg_en;
bnx2x_mc_assert(bp); bnx2x_mc_assert(bp);
} }
BNX2X_ERR("end crash dump -----------------\n"); BNX2X_ERR("end crash dump -----------------\n");
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment