Skip to content

Commit 57a8730

Browse files
Vasundhara Volamdavem330
authored andcommitted
bnxt_en: Increase timeout for HWRM_DBG_COREDUMP_XX commands
Firmware coredump messages take much longer than standard messages, so increase the timeout accordingly. Fixes: 6c5657d ("bnxt_en: Add support for ethtool get dump.") Signed-off-by: Vasundhara Volam <[email protected]> Signed-off-by: Michael Chan <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 268d089 commit 57a8730

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

drivers/net/ethernet/broadcom/bnxt/bnxt.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -648,6 +648,7 @@ struct nqe_cn {
648648
#define SHORT_HWRM_CMD_TIMEOUT 20
649649
#define HWRM_CMD_TIMEOUT (bp->hwrm_cmd_timeout)
650650
#define HWRM_RESET_TIMEOUT ((HWRM_CMD_TIMEOUT) * 4)
651+
#define HWRM_COREDUMP_TIMEOUT ((HWRM_CMD_TIMEOUT) * 12)
651652
#define HWRM_RESP_ERR_CODE_MASK 0xffff
652653
#define HWRM_RESP_LEN_OFFSET 4
653654
#define HWRM_RESP_LEN_MASK 0xffff0000

drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3112,7 +3112,7 @@ static int bnxt_hwrm_dbg_coredump_initiate(struct bnxt *bp, u16 component_id,
31123112
req.component_id = cpu_to_le16(component_id);
31133113
req.segment_id = cpu_to_le16(segment_id);
31143114

3115-
return hwrm_send_message(bp, &req, sizeof(req), HWRM_CMD_TIMEOUT);
3115+
return hwrm_send_message(bp, &req, sizeof(req), HWRM_COREDUMP_TIMEOUT);
31163116
}
31173117

31183118
static int bnxt_hwrm_dbg_coredump_retrieve(struct bnxt *bp, u16 component_id,

0 commit comments

Comments
 (0)