]> git.itanic.dy.fi Git - linux-stable/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)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 Apr 2024 13:13:18 +0000 (14:13 +0100)
commita1acdc226baec331512f815d6ac9dd6f8435cc7f
treead838c489bae898f819d92b00e0d054eb3d247b5
parent7474b1c82be3780692d537d331f9aa7fc1e5a368
bnxt_en: Fix the PCI-AER routines

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>
drivers/net/ethernet/broadcom/bnxt/bnxt.c