aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/rust/kernel/debugfs/git:/ssh:/git@git.zx2c4.com
diff options
context:
space:
mode:
authorMichael Chan <michael.chan@broadcom.com>2025-11-03 16:56:55 -0800
committerJakub Kicinski <kuba@kernel.org>2025-11-04 17:25:19 -0800
commitbc7208ca805ae6062f353a4753467d913d963bc6 (patch)
treee3b6ac580745f9f8cb3adaa03190bdc68244544d /rust/kernel/debugfs/git:/ssh:/git@git.zx2c4.com
parentvirtio_net: fix alignment for virtio_net_hdr_v1_hash (diff)
downloadwireguard-linux-bc7208ca805ae6062f353a4753467d913d963bc6.tar.xz
wireguard-linux-bc7208ca805ae6062f353a4753467d913d963bc6.zip
bnxt_en: Shutdown FW DMA in bnxt_shutdown()
The netif_close() call in bnxt_shutdown() only stops packet DMA. There may be FW DMA for trace logging (recently added) that will continue. If we kexec to a new kernel, the DMA will corrupt memory in the new kernel. Add bnxt_hwrm_func_drv_unrgtr() to unregister the driver from the FW. This will stop the FW DMA. In case the call fails, call pcie_flr() to reset the function and stop the DMA. Fixes: 24d694aec139 ("bnxt_en: Allocate backing store memory for FW trace logs") Reported-by: Jakub Kicinski <kicinski@meta.com> Reviewed-by: Damodharam Ammepalli <damodharam.ammepalli@broadcom.com> Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com> Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com> Signed-off-by: Michael Chan <michael.chan@broadcom.com> Link: https://patch.msgid.link/20251104005700.542174-2-michael.chan@broadcom.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'rust/kernel/debugfs/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions