diff options
author | Sudarsana Reddy Kalluru <skalluru@marvell.com> | 2020-07-04 07:43:44 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-07-05 03:51:07 +0300 |
commit | a46665707144d768ed4c9d4a6ed51edfd8cd7edf (patch) | |
tree | 2dd2e1fa4b22ab0fda71fb50f5d1fb7fb74bda98 /drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c | |
parent | cdf711f20b23087a96811e92f9600a9cf5ea23d6 (diff) | |
download | linux-a46665707144d768ed4c9d4a6ed51edfd8cd7edf.tar.xz |
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: Sudarsana Reddy Kalluru <skalluru@marvell.com>
Signed-off-by: Igor Russkikh <irusskikh@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c')
-rw-r--r-- | drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c index 41aac4f7634a..fd957212bc1b 100644 --- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c +++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c @@ -1176,9 +1176,18 @@ void bnx2x_panic_dump(struct bnx2x *bp, bool disable_int) } #endif if (IS_PF(bp)) { + int tmp_msg_en = bp->msg_enable; + 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_ERR("end crash dump -----------------\n"); } |