ath10k: Fix the race condition in firmware dump work queue
PATCH 1/1 ath10k: Fix the race condition in firmware dump work queue
There is a race condition, when the user writes 'hw-restart' and 'hard' in the simulate_fw_crash debugfs file without any delay. In the above scenario, the firmware dump work queue(scheduled by 'hard') should be handled gracefully, while the target is in the 'hw-restart'.
Tested HW: QCA9984
Tested FW: 10.4-3.9.0.2-00044
--- drivers/net/wireless/ath/ath10k/pci.c | 1 + 1 file changed, 1 insertion(+)
drivers/net/wireless/ath/ath10k/pci.c +1 -0
@@ -2074,6 +2074,7 @@ static void ath10k_pci_hif_stop(struct ath10k *ar)ath10k_pci_irq_sync (ar);napi_synchronize (&ar->napi);napi_disable (&ar->napi); +cancel_work_sync (&ar_pci->dump_work);/* Most likely the device has HTT Rx ring configured. The only way to * prevent the device from accessing (and possible corrupting) host
Signature · 1 line
1.9.1
Quoted 6 lines · Maharaja Kennadyrajan
There is a race condition, when the user writes 'hw-restart' and 'hard' in the
simulate_fw_crashdebugfs file without any delay. In the above scenario, the firmware dump work queue(scheduled by 'hard') should be handled gracefully, while the target is in the 'hw-restart'.
Quoted 7 lines
Tested HW: QCA9984
Tested FW: 10.4-3.9.0.2-00044Co-developed-by Govindaraj Saminathan <[email protected]>Signed-off-by Govindaraj Saminathan <[email protected]>Signed-off-by Maharaja Kennadyrajan <[email protected]>Signed-off-by Kalle Valo <[email protected]>
Patch applied to ath-next branch of ath.git, thanks.
3d1c60460fb2 ath10k: Fix the race condition in firmware dump work queue
Signature · 8 lines
https://patchwork.kernel.org/patch/11459703/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches _______________________________________________ ath10k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath10k
Quoted 6 lines · Maharaja Kennadyrajan
There is a race condition, when the user writes 'hw-restart' and 'hard' in the
simulate_fw_crashdebugfs file without any delay. In the above scenario, the firmware dump work queue(scheduled by 'hard') should be handled gracefully, while the target is in the 'hw-restart'.
Quoted 7 lines
Tested HW: QCA9984
Tested FW: 10.4-3.9.0.2-00044Co-developed-by Govindaraj Saminathan <[email protected]>Signed-off-by Govindaraj Saminathan <[email protected]>Signed-off-by Maharaja Kennadyrajan <[email protected]>Signed-off-by Kalle Valo <[email protected]>
Patch applied to ath-next branch of ath.git, thanks.
3d1c60460fb2 ath10k: Fix the race condition in firmware dump work queue
Signature · 3 lines
https://patchwork.kernel.org/patch/11459703/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches