Commit bc7208c
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: 24d694a ("bnxt_en: Allocate backing store memory for FW trace logs")
Reported-by: Jakub Kicinski <[email protected]>
Reviewed-by: Damodharam Ammepalli <[email protected]>
Reviewed-by: Kalesh AP <[email protected]>
Reviewed-by: Somnath Kotur <[email protected]>
Signed-off-by: Michael Chan <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>1 parent c383826 commit bc7208c
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16892 | 16892 | | |
16893 | 16893 | | |
16894 | 16894 | | |
| 16895 | + | |
| 16896 | + | |
| 16897 | + | |
| 16898 | + | |
16895 | 16899 | | |
16896 | 16900 | | |
16897 | 16901 | | |
| |||
0 commit comments