mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Kang Yang <kang.yang@oss.qualcomm.com>
To: Loic Poulain <loic.poulain@oss.qualcomm.com>,
	Baochen Qiang <baochen.qiang@oss.qualcomm.com>
Cc: Jeff Johnson <jjohnson@kernel.org>,
	Jeff Johnson <jeff.johnson@oss.qualcomm.com>,
	linux-wireless@vger.kernel.org, ath10k@lists.infradead.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH ath-next v4 01/10] wifi: ath10k: fix SDIO aux workqueue starvation in recovery detection
Date: Fri, 27 Nov 2026 11:23:46 +0800	[thread overview]
Message-ID: <b25a7fa6-de52-4543-829c-b4e1b8cad56d@oss.qualcomm.com> (raw)
In-Reply-To: <CAFEp6-2b48rEz5ozY8C5YGH_mWJQov1X64S=M=Fv2c+WCWHM=A@mail.gmail.com>



On 11/27/2026 12:01 AM, Loic Poulain wrote:
> On Thu, Nov 26, 2026 at 9:16 AM Baochen Qiang
> <baochen.qiang@oss.qualcomm.com> wrote:
>>
>>
>>
>> On 11/20/2026 4:41 PM, Kang Yang wrote:
>>
>>> @@ -8170,9 +8177,13 @@ static void ath10k_reconfig_complete(struct ieee80211_hw *hw,
>>>                ar->state = ATH10K_STATE_ON;
>>>                ieee80211_wake_queues(ar->hw);
>>>
>>> +             /* Cancel the deadline monitor first so it cannot declare the
>>> +              * device wedged after recovery has completed.
>>> +              */
>>> +             cancel_delayed_work_sync(&ar->recovery_check_work);
>>
>> If recovery monitor runs between "state = ON" and the cancel. It then wedges a device that
>> has just recovered. The sync cancel only waits for it to finish, after which
>> pending_recovery is cleared while the state stays WEDGED.
>>
>> would be better to move cancel_delayed_work_sync() and the pending_recovery reset in front
>> of the `ar->state == ATH10K_STATE_RESTARTED` check? Then either the monitor has already
>> run and the check fails, or it is cancelled and can no longer race with the transition to ON.
> 
> Alternatively, disable_delayed_work_sync() could be used, but it needs
> to be balanced.

I need to use a fix that can porting to v5.10 kernel. 
disable_delayed_work_sync() is introduce after v6 kernel.



> 
>>
>>> +
>>>                /* Clear recovery state. */
>>>                complete(&ar->driver_recovery);
>>> -             atomic_set(&ar->fail_cont_count, 0);
>>>                atomic_set(&ar->pending_recovery, 0);
>>>
>>>                if (ar->hw_params.hw_restart_disconnect) {
>>>
>>


  reply	other threads:[~2026-11-27  3:23 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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-27  3:23       ` Kang Yang [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b25a7fa6-de52-4543-829c-b4e1b8cad56d@oss.qualcomm.com \
    --to=kang.yang@oss.qualcomm.com \
    --cc=ath10k@lists.infradead.org \
    --cc=baochen.qiang@oss.qualcomm.com \
    --cc=jeff.johnson@oss.qualcomm.com \
    --cc=jjohnson@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=loic.poulain@oss.qualcomm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®