mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
To: jeff.johnson@oss.qualcomm.com
Cc: ath11k@lists.infradead.org, ath12k@lists.infradead.org,
	dolinux.peng@gmail.com, jjohnson@kernel.org, jtornosm@redhat.com,
	linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org,
	toke@toke.dk
Subject: Re: [PATCH v5 4/4] wifi: ath12k: implement custom wake_tx_queue with flow control
Date: Thu, 17 Sep 2026 08:40:23 +0200	[thread overview]
Message-ID: <20260917064024.12175-1-jtornosm@redhat.com> (raw)
In-Reply-To: <0bac4c07-6c78-478c-b3ec-1d897cdd8acf@oss.qualcomm.com>

Hello Jeff,

Sorry for the late reply, I was on leave as noted in the v6 cover letter.

> I have a fixup for ath9k which does:
>       171 -  ratetbl = rcu_dereference(sta->rates);
>       171 +  ratetbl = rcu_dereference_bh(sta->rates);
>
> Should ath12k also use rcu_dereference_bh()?
I think the ath9k and ath12k situations are different. 

In ath9k, the rcu_dereference(sta->rates) is already inside the
spin_lock_bh(&sc->chan_lock) section, so BH is disabled and switching to
rcu_dereference_bh() directly satisfies lockdep without needing
rcu_read_lock().

In ath12k, narrowing the rcu_read_lock() scope would require changing the 4
existing rcu_dereference() calls inside ath12k_wifi7_mac_op_tx() to
rcu_dereference_bh(), since that function has an existing contract
(/* Note: called under rcu_read_lock() */) and is called from wake_tx_queue.
That is modifying working code beyond the scope of this series. Happy to do
it as a follow-up if you prefer.

Thanks

Best regards
José Ignacio


      reply	other threads:[~2026-09-17  6:40 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-07 10:58 [PATCH v5 0/4] ath11k/ath12k: implement TX " Jose Ignacio Tornos Martinez
2026-08-07 10:58 ` [PATCH v5 1/4] wifi: ath11k: use queue mapping for WCN6750 ring selection Jose Ignacio Tornos Martinez
2026-08-07 10:58 ` [PATCH v5 2/4] wifi: ath11k/ath12k: remove skb parameter from get_ring_selector Jose Ignacio Tornos Martinez
2026-08-07 10:58 ` [PATCH v5 3/4] wifi: ath11k: implement custom wake_tx_queue with flow control Jose Ignacio Tornos Martinez
2026-08-08 18:42   ` Jeff Johnson
2026-08-11 10:42     ` Jose Ignacio Tornos Martinez
2026-08-07 10:58 ` [PATCH v5 4/4] wifi: ath12k: " Jose Ignacio Tornos Martinez
2026-08-08 19:29   ` Jeff Johnson
2026-08-11 11:14     ` Jose Ignacio Tornos Martinez
2026-08-13 16:23       ` Jeff Johnson
2026-09-17  6:32         ` Jose Ignacio Tornos Martinez
2026-08-13 17:25       ` Jeff Johnson
2026-09-17  6:40         ` Jose Ignacio Tornos Martinez [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=20260917064024.12175-1-jtornosm@redhat.com \
    --to=jtornosm@redhat.com \
    --cc=ath11k@lists.infradead.org \
    --cc=ath12k@lists.infradead.org \
    --cc=dolinux.peng@gmail.com \
    --cc=jeff.johnson@oss.qualcomm.com \
    --cc=jjohnson@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=toke@toke.dk \
    /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®