mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH ath-next v4 00/10] wifi: ath10k: fix recovery and WEDGED failure handling
@ 2026-11-20  8:41 Kang Yang
  2026-11-20  8:41 ` [PATCH ath-next v4 01/10] wifi: ath10k: fix SDIO aux workqueue starvation in recovery detection Kang Yang
                   ` (9 more replies)
  0 siblings, 10 replies; 22+ messages in thread
From: Kang Yang @ 2026-11-20  8:41 UTC (permalink / raw)
  To: Jeff Johnson, Loic Poulain, Baochen Qiang
  Cc: Jeff Johnson, linux-wireless, ath10k, linux-kernel, Kang Yang

Recovery failures can consume significant time before the
driver eventually gives up and enters ATH10K_STATE_WEDGED.

This series fixes several issues in the recovery and WEDGED
failure-handling paths, including recovery detection,
recovery time bounding, waiter release, and PCIe error
handling.

Several patches fix specific bugs and therefore carry Fixes
tags. The remaining patches address closely related issues in
the same recovery path because the fixes alone do not fully
resolve the reported failures.

Taken together, the series ensures that recovery either
succeeds or transitions to ATH10K_STATE_WEDGED within a
bounded amount of time, avoids unnecessary waits after
recovery has failed, and reduces the likelihood of watchdog
timeouts on affected platforms.

Google has reported this class of failures for an extended
period, with more than 4000 observed crashes over the last
month.

---
v4:
- patch 1: replace the blocking wait and the failure count with a
  non-blocking one-shot delayed work monitor, as suggested in review.
  (OFF state), and arm the monitor before queueing restart_work.
- patch 2 (new): shorten the recovery timeout from 20 to 10 seconds.
- patch 3, 6: adapt to the one-shot monitor, no functional change.
- patch 8: reword the commit message to match the order of the
  calls.
- patch 9: fix the function name in the commit message.
- patch 10: describe the change in skb ownership in
  ath10k_sdio_hif_stop() in the commit message.

v3:
- rebase onto the latest ath-next.
- patch 1: fold the old patch 5 ("check the recovery deadline on its own
  timeline") into this patch, so the recovery monitor is a self-rearming
  delayed work from the start; move recovery_start_jiffies to patch 4.
- patch 4: reword the commit message; recovery_start_jiffies is now
  introduced here, where it is first used.
- patch 8 (new): on SDIO, mask the target interrupts and start recovery
  when an invalid HTC bundle count is read from the lookahead, to stop
  the SDIO IRQ storm.
- patch 9 (new): reject scan requests while the device is not running.
- patch 10 (new): sdio: drop pending async writes and stop the sleep timer
  and work across power cycles, so stale requests cannot touch the bus
  after power up.

v2:
- patch 3: also wake wow.wakeup_completed, peer_stats_info_complete and
  wmi.radar_confirm on WEDGED; reinit peer_delete_done before each
  peer delete command.
- patch 5: remove the early-return time_after() branch from the monitor;
  in ath10k_reconfig_complete(), cancel the monitor with
  cancel_delayed_work_sync() before clearing fail_cont_count and
  pending_recovery.
- add SDIO Test-on tag.

To: Jeff Johnson <jjohnson@kernel.org>
To: Loic Poulain <loic.poulain@oss.qualcomm.com>
To: Baochen Qiang <baochen.qiang@oss.qualcomm.com>
Cc: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
Cc: linux-wireless@vger.kernel.org
Cc: ath10k@lists.infradead.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Kang Yang <kang.yang@oss.qualcomm.com>

---
Kang Yang (10):
      wifi: ath10k: fix SDIO aux workqueue starvation in recovery detection
      wifi: ath10k: shorten the recovery timeout to 10 seconds
      wifi: ath10k: wake blocked waiters when entering WEDGED state
      wifi: ath10k: also wake remaining blocked waiters
      wifi: ath10k: hard-block the radio when entering WEDGED state
      wifi: ath10k: remove now-unused driver_recovery completion
      wifi: ath10k: trigger recovery on PCIe MMIO wake-up failures
      wifi: ath10k: trigger recovery on corrupted HTC bundle lookahead
      wifi: ath10k: reject scan requests while the device is not running
      wifi: ath10k: drop async writes and sleep timer across power cycles

 drivers/net/wireless/ath/ath10k/core.c | 130 ++++++++++++++++++++-------------
 drivers/net/wireless/ath/ath10k/core.h |  13 ++--
 drivers/net/wireless/ath/ath10k/mac.c  |  25 ++++++-
 drivers/net/wireless/ath/ath10k/pci.c  |  27 +++++++
 drivers/net/wireless/ath/ath10k/sdio.c |  85 +++++++++++++++------
 drivers/net/wireless/ath/ath10k/snoc.c |   8 +-
 6 files changed, 204 insertions(+), 84 deletions(-)
---
base-commit: 1983b40acfcb3c3464b291c85977290a785bcfdc
change-id: 20261119-recovery-v4-de5f5df13e9f

Best regards,
--  
Kang Yang <kang.yang@oss.qualcomm.com>


^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2026-11-26 16:02 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-20  8:41 [PATCH ath-next v4 00/10] wifi: ath10k: fix recovery and WEDGED failure handling Kang Yang
2026-11-20  8:41 ` [PATCH ath-next v4 01/10] wifi: ath10k: fix SDIO aux workqueue starvation in recovery detection Kang Yang
2026-11-25 10:26   ` Loic Poulain
2026-11-26  8:16   ` Baochen Qiang
2026-11-26 16:01     ` Loic Poulain
2026-11-20  8:41 ` [PATCH ath-next v4 02/10] wifi: ath10k: shorten the recovery timeout to 10 seconds Kang Yang
2026-11-20  8:41 ` [PATCH ath-next v4 03/10] wifi: ath10k: wake blocked waiters when entering WEDGED state Kang Yang
2026-11-25 10:29   ` Loic Poulain
2026-11-26  7:05     ` Kang Yang
2026-11-20  8:41 ` [PATCH ath-next v4 04/10] wifi: ath10k: also wake remaining blocked waiters Kang Yang
2026-11-25 10:35   ` Loic Poulain
2026-11-26  7:07     ` Kang Yang
2026-11-20  8:41 ` [PATCH ath-next v4 05/10] wifi: ath10k: hard-block the radio when entering WEDGED state Kang Yang
2026-11-20  8:41 ` [PATCH ath-next v4 06/10] wifi: ath10k: remove now-unused driver_recovery completion Kang Yang
2026-11-20  8:41 ` [PATCH ath-next v4 07/10] wifi: ath10k: trigger recovery on PCIe MMIO wake-up failures Kang Yang
2026-11-20  8:41 ` [PATCH ath-next v4 08/10] wifi: ath10k: trigger recovery on corrupted HTC bundle lookahead Kang Yang
2026-11-25 10:48   ` Loic Poulain
2026-11-26  8:20   ` Baochen Qiang
2026-11-20  8:41 ` [PATCH ath-next v4 09/10] wifi: ath10k: reject scan requests while the device is not running Kang Yang
2026-11-20  8:41 ` [PATCH ath-next v4 10/10] wifi: ath10k: drop async writes and sleep timer across power cycles Kang Yang
2026-11-26  8:37   ` Baochen Qiang
2026-11-26 10:01     ` Kang Yang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®