Commit f739fc7e authored by Committed by Greg Kroah-HartmanBrowse files
bnxt_en: Re-write PCI BARs after PCI fatal error.
[ Upstream commit f75d9a0aa96721d20011cd5f8c7a24eb32728589 ] When a PCIe fatal error occurs, the internal latched BAR addresses in the chip get reset even though the BAR register values in config space are retained. pci_restore_state() will not rewrite the BAR addresses if the BAR address values are valid, causing the chip's internal BAR addresses to stay invalid. So we need to zero the BAR registers during PCIe fatal error to force pci_restore_state() to restore the BAR addresses. These write cycles to the BAR registers will cause the proper BAR addresses to latch internally. Fixes: 6316ea6d ("bnxt_en: Enable AER support.") Signed-off-by: Vasundhara Volam <firstname.lastname@example.org> Signed-off-by: Michael Chan <email@example.com> Signed-off-by: Jakub Kicinski <firstname.lastname@example.org> Signed-off-by: Greg Kroah-Hartman <email@example.com>