bnx2: Dump additional BC_STATE during firmware sync timeout.
authorMichael Chan <mchan@broadcom.com>
Sat, 16 Jun 2012 15:45:42 +0000 (15:45 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 17 Jun 2012 05:22:58 +0000 (22:22 -0700)
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2.c
drivers/net/ethernet/broadcom/bnx2.h

index 8eaab0ce220a441289e7543ddfa404cf04ce0a64..da88de73e899b6266960363e5b58206e6230c936 100644 (file)
@@ -2473,6 +2473,7 @@ bnx2_dump_mcp_state(struct bnx2 *bp)
                   bnx2_shmem_rd(bp, BNX2_BC_STATE_RESET_TYPE));
        pr_cont(" condition[%08x]\n",
                bnx2_shmem_rd(bp, BNX2_BC_STATE_CONDITION));
+       DP_SHMEM_LINE(bp, BNX2_BC_RESET_TYPE);
        DP_SHMEM_LINE(bp, 0x3cc);
        DP_SHMEM_LINE(bp, 0x3dc);
        DP_SHMEM_LINE(bp, 0x3ec);
index 29975857842e0e95ecca93d51744ffd39f4ba817..f9cb639a478734278bea2953a308ad6eff36b6fe 100644 (file)
@@ -7355,6 +7355,8 @@ struct bnx2_rv2p_fw_file {
 #define BNX2_BC_STATE_RESET_TYPE_VALUE(msg) (BNX2_BC_STATE_RESET_TYPE_SIG | \
                                             (msg))
 
+#define BNX2_BC_RESET_TYPE                     0x000001c0
+
 #define BNX2_BC_STATE                          0x000001c4
 #define BNX2_BC_STATE_ERR_MASK                  0x0000ff00
 #define BNX2_BC_STATE_SIGN                      0x42530000