Skip to content

Commit 177489e

Browse files
Vasundhara Volamgregkh
Vasundhara Volam
authored andcommitted
bnxt_en: Issue PCIe FLR in kdump kernel to cleanup pending DMAs.
[ Upstream commit 8743db4 ] If crashed kernel does not shutdown the NIC properly, PCIe FLR is required in the kdump kernel in order to initialize all the functions properly. Fixes: d629522 ("bnxt_en: Reduce memory usage when running in kdump kernel.") Signed-off-by: Vasundhara Volam <[email protected]> Signed-off-by: Michael Chan <[email protected]> Signed-off-by: David S. Miller <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 7daf11d commit 177489e

File tree

1 file changed

+8
-0
lines changed
  • drivers/net/ethernet/broadcom/bnxt

1 file changed

+8
-0
lines changed

drivers/net/ethernet/broadcom/bnxt/bnxt.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11712,6 +11712,14 @@ static int bnxt_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
1171211712
if (version_printed++ == 0)
1171311713
pr_info("%s", version);
1171411714

11715+
/* Clear any pending DMA transactions from crash kernel
11716+
* while loading driver in capture kernel.
11717+
*/
11718+
if (is_kdump_kernel()) {
11719+
pci_clear_master(pdev);
11720+
pcie_flr(pdev);
11721+
}
11722+
1171511723
max_irqs = bnxt_get_max_irq(pdev);
1171611724
dev = alloc_etherdev_mq(sizeof(*bp), max_irqs);
1171711725
if (!dev)

0 commit comments

Comments
 (0)