wifi: ath12k: fix soft lockup on suspend
Subsystems (2)
PATCH 1/1 wifi: ath12k: fix soft lockup on suspend
The ext interrupts are enabled when the firmware has been started, but this may never happen, for example, if the board configuration file is missing.
When the system is later suspended, the driver unconditionally tries to disable interrupts, which results in an irq disable imbalance and causes the driver to spin indefinitely in napi_synchronize().
Make sure that the interrupts have been enabled before attempting to disable them.
--- drivers/net/wireless/ath/ath12k/pci.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/wireless/ath/ath12k/pci.c +2 -1
@@ -472,7 +472,8 @@ static void __ath12k_pci_ext_irq_disable(struct ath12k_base *ab) {int i; -clear_bit (ATH12K_FLAG_EXT_IRQ_ENABLED , &ab->dev_flags); +if (!test_and_clear_bit (ATH12K_FLAG_EXT_IRQ_ENABLED , &ab->dev_flags)) +return ;for (i =0 ; i <ATH12K_EXT_IRQ_GRP_NUM_MAX ; i++) {struct ath12k_ext_irq_grp *irq_grp = &ab->ext_irq_grp[i];
Signature · 1 line
2.44.1
Quoted 8 lines · Johan Hovold
The ext interrupts are enabled when the firmware has been started, but this may never happen, for example, if the board configuration file is missing.
When the system is later suspended, the driver unconditionally tries to disable interrupts, which results in an irq disable imbalance and causes the driver to spin indefinitely in
napi_synchronize().
Quoted 6 lines
Make sure that the interrupts have been enabled before attempting to disable them.
Fixes d889913205cf ("wifi: ath12k: driver for Qualcomm Wi-Fi 7 devices")Cc [email protected] # 6.3Signed-off-by Johan Hovold <[email protected]>