From: Ping-Ke Shih <pkshih@realtek.com>
To: Bitterblue Smith <rtl8821cerfe2@gmail.com>,
"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>
Subject: RE: [PATCH rtw-next] wifi: rtw88: Iterate stas non-atomically in rtw_wow_fw_media_status()
Date: Sun, 6 Dec 2026 02:30:03 +0000 [thread overview]
Message-ID: <07a4745f521e4b68a6b9576966449f6c@realtek.com> (raw)
In-Reply-To: <7c0b56be-d941-4fc8-b1c5-999d0c254d6e@gmail.com>
Bitterblue Smith <rtl8821cerfe2@gmail.com> wrote:
> rtw_wow_fw_media_status() calls ieee80211_iterate_stations_atomic() with
> an iterator which accesses hardware registers. This doesn't work
> ("Voluntary context switch within RCU read-side critical section!") for
> USB and SDIO because register accesses can sleep.
>
> Use the non-atomic rtw_iterate_stas() wrapper instead. It needs
> rtwdev->mutex to be held, which rtw_ops_suspend() and rtw_ops_resume()
> both do.
>
> It must have been forgotten from 78d5bf925f30 ("wifi: rtw88: iterate
> over vif/sta list non-atomically") because no one tested Wowlan with
> USB devices.
>
> Fixes: 78d5bf925f30 ("wifi: rtw88: iterate over vif/sta list non-atomically")
> Cc: stable@vger.kernel.org
> Signed-off-by: Bitterblue Smith <rtl8821cerfe2@gmail.com>
Acked-by: Ping-Ke Shih <pkshih@realtek.com>
prev parent reply other threads:[~2026-12-06 2:30 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-04 22:03 [PATCH rtw-next] wifi: rtw88: Iterate stas non-atomically in rtw_wow_fw_media_status() Bitterblue Smith
2026-12-05 16:00 ` Luka Gejak
2026-12-06 2:30 ` Ping-Ke Shih [this message]
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=07a4745f521e4b68a6b9576966449f6c@realtek.com \
--to=pkshih@realtek.com \
--cc=linux-wireless@vger.kernel.org \
--cc=rtl8821cerfe2@gmail.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