net/bnxt: log firmware status on early init failure
authorKalesh AP <kalesh-anakkur.purayil@broadcom.com>
Tue, 21 Apr 2020 21:33:50 +0000 (14:33 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 22 Apr 2020 11:41:24 +0000 (13:41 +0200)
commitf02ea89fcbcdd64b976d5db872e96144ed0a2cf5
tree886a93b616532bbbe3e14845272de4c8a7d369a1
parent8b60154d4b8a413eec43aafce1b4341dd575d4c3
net/bnxt: log firmware status on early init failure

Firmware reports any fatal error (either ASIC or Firmware related) via a
new status register. This status register can provide more detailed
information about the firmware errors, especially if error occurs before
HWRM_VER_GET is issued. Attempt to map this register if it is present
and check for firmware status when VER_GET command fails.

Refactored the code to allocate the "bp->recovery_info" structure
in bnxt_init_fw() instead of doing in bnxt_hwrm_error_recovery_qcfg().

Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/bnxt.h
drivers/net/bnxt/bnxt_ethdev.c
drivers/net/bnxt/bnxt_hwrm.c
drivers/net/bnxt/hsi_struct_def_dpdk.h