summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c
diff options
context:
space:
mode:
authorMichael Chan <michael.chan@broadcom.com>2019-06-29 18:16:44 +0300
committerDavid S. Miller <davem@davemloft.net>2019-07-01 02:00:25 +0300
commitc20dc142dd7b2884b8570eeab323bcd4a84294fa (patch)
treee63a7eb997867558489dbfde09421cdc7fa51b65 /drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c
parent7b75e49de424ceb53d13e60f35d0a73765626fda (diff)
downloadlinux-c20dc142dd7b2884b8570eeab323bcd4a84294fa.tar.xz
bnxt_en: Disable bus master during PCI shutdown and driver unload.
Some chips with older firmware can continue to perform DMA read from context memory even after the memory has been freed. In the PCI shutdown method, we need to call pci_disable_device() to shutdown DMA to prevent this DMA before we put the device into D3hot. DMA memory request in D3hot state will generate PCI fatal error. Similarly, in the driver remove method, the context memory should only be freed after DMA has been shutdown for correctness. Fixes: 98f04cf0f1fc ("bnxt_en: Check context memory requirements from firmware.") Signed-off-by: Michael Chan <michael.chan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c')
0 files changed, 0 insertions, 0 deletions