]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
bnxt_en: Skip firmware fatal error recovery if chip is not accessible
authorVikas Gupta <vikas.gupta@broadcom.com>
Wed, 7 Jun 2023 07:54:07 +0000 (00:54 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Jun 2023 09:16:52 +0000 (11:16 +0200)
commitb41a23551ed8d688ec9fcc54758e476fe925cc9e
treeb2d4da520223900dc9cdf9a4b6ab335cf6af2fa7
parent0d4a88949a32dc03acb25684daba5e784fd27cc0
bnxt_en: Skip firmware fatal error recovery if chip is not accessible

[ Upstream commit 83474a9b252ab23e6003865c2775024344cb9c09 ]

Driver starts firmware fatal error recovery by detecting
heartbeat failure or fw reset count register changing.  But
these checks are not reliable if the device is not accessible.
This can happen while DPC (Downstream Port containment) is in
progress.  Skip firmware fatal recovery if pci_device_is_present()
returns false.

Fixes: acfb50e4e773 ("bnxt_en: Add FW fatal devlink_health_reporter.")
Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
Reviewed-by: Pavan Chebbi <pavan.chebbi@broadcom.com>
Signed-off-by: Vikas Gupta <vikas.gupta@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/broadcom/bnxt/bnxt.c