1: a89a0f9fd503 < -: ------------ wifi: ath10k: fix SDIO aux workqueue starvation in recovery detection  2: 243bf3094623 < -: ------------ wifi: ath10k: shorten the recovery timeout to 10 seconds  -: ------------ > 1: 3115d8868d53 wifi: ath10k: fix SDIO aux workqueue starvation in recovery detection  -: ------------ > 2: ab184534de19 wifi: ath10k: replace the recovery failure count with a single deadline  -: ------------ > 3: 0cd94de204a6 wifi: ath10k: shorten the recovery timeout to 10 seconds  3: fe0ec6cb6283 = 4: df97ec1050db wifi: ath10k: wake blocked waiters when entering WEDGED state  4: 739b56a90769 < -: ------------ wifi: ath10k: also wake remaining blocked waiters  5: 6f5121f94d61 < -: ------------ wifi: ath10k: hard-block the radio when entering WEDGED state  -: ------------ > 5: 2f7407dc0ad9 wifi: ath10k: also wake remaining blocked waiters  -: ------------ > 6: 721ce6c59e2f wifi: ath10k: hard-block the radio when entering WEDGED state  6: fac835d8f105 ! 7: 876dd397a177 wifi: ath10k: remove now-unused driver_recovery completion @@ drivers/net/wireless/ath/ath10k/core.h: struct ath10k {  ## drivers/net/wireless/ath/ath10k/mac.c ##  @@ drivers/net/wireless/ath/ath10k/mac.c: static void ath10k_reconfig_complete(struct ieee80211_hw *hw, - cancel_delayed_work_sync(&ar->recovery_check_work); -  - /* Clear recovery state. */ + ath10k_info(ar, "device successfully recovered\n"); + ar->state = ATH10K_STATE_ON; + ieee80211_wake_queues(ar->hw);  - complete(&ar->driver_recovery); - atomic_set(&ar->pending_recovery, 0);  if (ar->hw_params.hw_restart_disconnect) { + list_for_each_entry(arvif, &ar->arvifs, list) {  ## drivers/net/wireless/ath/ath10k/snoc.c ##  @@ drivers/net/wireless/ath/ath10k/snoc.c: static void ath10k_snoc_remove(struct platform_device *pdev)  7: 702059be44b0 ! 8: 80e4fd0362a7 wifi: ath10k: trigger recovery on PCIe MMIO wake-up failures @@ drivers/net/wireless/ath/ath10k/pci.c: static void ath10k_bus_pci_write32(struct ath10k_warn(ar, "failed to wake target for write32 of 0x%08x at 0x%08x: %d\n", value, offset, ret);  + /* -+ * wake_wait timed out; the device is unresponsive at the -+ * MMIO level. write32 returns void so the write is -+ * silently dropped -- kick recovery here instead of -+ * letting an upper WMI wait notice it seconds later. -+ * Guards confine this to runtime; cmpxchg dedups. ++ * The device is unresponsive and the write is silently ++ * dropped; recover now instead of waiting for a WMI timeout.  + */  + if (test_bit(ATH10K_FLAG_CORE_REGISTERED, &ar->dev_flags) &&  + ar->state == ATH10K_STATE_ON)  8: ff7696fb570b ! 9: 45e2b36fdf43 wifi: ath10k: trigger recovery on corrupted HTC bundle lookahead @@ drivers/net/wireless/ath/ath10k/sdio.c: static int ath10k_sdio_mbox_alloc_bundle le16_to_cpu(htc_hdr->len), max_msgs);  + ath10k_core_start_recovery(ar); -+ /* Recovery is a no-op if already pending, so also mask the -+ * target interrupts to stop the IRQ storm. -+ */ ++ /* Prevent IRQ storm. */  + ath10k_sdio_disable_intrs(ar); return -ENOMEM; }  9: 5cd635df90d5 = 10: d78ebf2d1f90 wifi: ath10k: reject scan requests while the device is not running  -: ------------ > 11: f6f5fe1a08f2 wifi: ath10k: move sdio irqs_disabled completion off the stack 10: f82e7dffbe87 ! 12: 2ce99acac994 wifi: ath10k: drop async writes and sleep timer across power cycles @@ drivers/net/wireless/ath/ath10k/sdio.c: static void ath10k_sdio_sleep_timer_hand queue_work(ar_sdio->workqueue, &ar_sdio->wr_async_work); }  -+/* Drop any requests still queued on wr_asyncq without touching the bus. -+ * Caller must ensure wr_async_work is not running concurrently. -+ */ ++/* Drop queued wr_asyncq requests; caller must ensure wr_async_work is idle. */  +static void ath10k_sdio_drop_wr_async_reqs(struct ath10k *ar)  +{  + struct ath10k_sdio *ar_sdio = ath10k_sdio_priv(ar); @@ drivers/net/wireless/ath/ath10k/sdio.c: static void ath10k_sdio_write_async_work struct ath10k_sdio_bus_request *req, *tmp_req; struct ath10k_mbox_info *mbox_info = &ar_sdio->mbox_info;  -+ /* The card is powered down; drop pending requests instead of -+ * touching the bus. Prevents stale writes from racing with a -+ * concurrent BMI power-up on the next recovery cycle. -+ */ ++ /* Card is powered down; drop requests instead of touching the bus. */  + if (ar_sdio->is_disabled) {  + ath10k_sdio_drop_wr_async_reqs(ar);  + return; @@ drivers/net/wireless/ath/ath10k/sdio.c: static int ath10k_sdio_hif_power_up(stru if (!ar_sdio->is_disabled) return 0;  -+ /* Flush any sleep timer or async work left over from the previous -+ * cycle so they cannot fire during BMI and poke the bus. -+ */ ++ /* Flush leftover sleep timer and async work from the last cycle. */  + timer_delete_sync(&ar_sdio->sleep_timer);  + cancel_work_sync(&ar_sdio->wr_async_work);  + ath10k_sdio_drop_wr_async_reqs(ar); @@ drivers/net/wireless/ath/ath10k/sdio.c: static void ath10k_sdio_hif_power_down(s  ath10k_dbg(ar, ATH10K_DBG_BOOT, "sdio power off\n");  -+ /* Reject new async writes from ath10k_sdio_hif_tx_sg() and make -+ * ath10k_sdio_write_async_work() drop any already-queued -+ * requests before they touch the bus. -+ */ ++ /* Reject new async writes and drop already-queued ones. */  + ar_sdio->is_disabled = true;  + timer_delete_sync(&ar_sdio->sleep_timer);