Skip to content

Commit 3243025

Browse files
Michael Changregkh
authored andcommitted
bnxt_en: Wait for FLR to complete during probe
[ Upstream commit 3c1069f ] The first message to firmware may fail if the device is undergoing FLR. The driver has some recovery logic for this failure scenario but we must wait 100 msec for FLR to complete before proceeding. Otherwise the recovery will always fail. Fixes: ba02629 ("bnxt_en: log firmware status on firmware init failure") Reviewed-by: Damodharam Ammepalli <damodharam.ammepalli@broadcom.com> Signed-off-by: Michael Chan <michael.chan@broadcom.com> Link: https://lore.kernel.org/r/20240117234515.226944-2-michael.chan@broadcom.com Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent d86cc6a commit 3243025

File tree

1 file changed

+5
-0
lines changed
  • drivers/net/ethernet/broadcom/bnxt

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11925,6 +11925,11 @@ static int bnxt_fw_init_one_p1(struct bnxt *bp)
1192511925

1192611926
bp->fw_cap = 0;
1192711927
rc = bnxt_hwrm_ver_get(bp);
11928+
/* FW may be unresponsive after FLR. FLR must complete within 100 msec
11929+
* so wait before continuing with recovery.
11930+
*/
11931+
if (rc)
11932+
msleep(100);
1192811933
bnxt_try_map_fw_health_reg(bp);
1192911934
if (rc) {
1193011935
rc = bnxt_try_recover_fw(bp);

0 commit comments

Comments
 (0)