From: "Luka Gejak" <luka.gejak@linux.dev>
To: "Bitterblue Smith" <rtl8821cerfe2@gmail.com>,
linux-wireless@vger.kernel.org
Cc: "Ping-Ke Shih" <pkshih@realtek.com>
Subject: Re: [PATCH rtw-next] wifi: rtw88: Iterate stas non-atomically in rtw_wow_fw_media_status()
Date: Sat, 05 Dec 2026 16:00:03 +0000 [thread overview]
Message-ID: <8b0512c4f73fa452ff2fb53c77e424c33fb7ed03@linux.dev> (raw)
In-Reply-To: <7c0b56be-d941-4fc8-b1c5-999d0c254d6e@gmail.com>
December 4, 2026 at 11:03 PM, "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>
> ---
Looks good to me,
Reviewed-by: Luka Gejak <luka.gejak@linux.dev>
Best regards,
Luka Gejak
prev parent reply other threads:[~2026-12-05 16:00 UTC|newest]
Thread overview: 2+ 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 [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=8b0512c4f73fa452ff2fb53c77e424c33fb7ed03@linux.dev \
--to=luka.gejak@linux.dev \
--cc=linux-wireless@vger.kernel.org \
--cc=pkshih@realtek.com \
--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