]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
bnxt_en: Fix the PCI-AER routines
authorVikas Gupta <vikas.gupta@broadcom.com>
Fri, 19 Apr 2024 18:34:48 +0000 (11:34 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 May 2024 14:32:35 +0000 (16:32 +0200)
commite33625b9b598eb8b0b0beace463009d2bfbf8072
tree1c8379b8f8af2e27cf98c24ce73b17b3de3f66bb
parent96ef6582223a6ec70a360673b4ddfa5b23c4518a
bnxt_en: Fix the PCI-AER routines

[ Upstream commit a1acdc226baec331512f815d6ac9dd6f8435cc7f ]

We do not support two simultaneous recoveries so check for reset
flag, BNXT_STATE_IN_FW_RESET, and do not proceed with AER further.
When the pci channel state is pci_channel_io_frozen, the PCIe link
can not be trusted so we disable the traffic immediately and stop
BAR access by calling bnxt_fw_fatal_close().  BAR access after
AER fatal error can cause an NMI.

Fixes: f75d9a0aa967 ("bnxt_en: Re-write PCI BARs after PCI fatal error.")
Signed-off-by: Vikas Gupta <vikas.gupta@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/broadcom/bnxt/bnxt.c