Linux wireless drivers development
 help / color / mirror / Atom feed
* [PATCH ath-next 1/2] wifi: ath11k: account TX before TCL publication
@ 2026-11-29 22:43 Giuseppe Piscitelli
  2026-11-29 22:43 ` [PATCH ath-next 2/2] wifi: ath11k: dump TX data before DMA mapping Giuseppe Piscitelli
  0 siblings, 1 reply; 2+ messages in thread
From: Giuseppe Piscitelli @ 2026-11-29 22:43 UTC (permalink / raw)
  To: ath11k; +Cc: linux-wireless, jjohnson

The host makes the TCL descriptor visible when it publishes the ring
head. Completion processing can run before the subsequent pending
count increment. Increment the count before publishing the ring head
so a completion always has a pending frame to account for.

OpenAI Codex helped review the ordering and verify the AArch64 build.

Fixes: d5c65159f289 ("ath11k: driver for Qualcomm IEEE 802.11ax devices")
Signed-off-by: Giuseppe Piscitelli <ooonea@gmail.com>
---

diff --git a/drivers/net/wireless/ath/ath11k/dp_tx.c b/drivers/net/wireless/ath/ath11k/dp_tx.c
--- a/drivers/net/wireless/ath/ath11k/dp_tx.c
+++ b/drivers/net/wireless/ath/ath11k/dp_tx.c
@@ -256,6 +256,7 @@
 	ath11k_hal_tx_cmd_desc_setup(ab, hal_tcl_desc +
 					 sizeof(struct hal_tlv_hdr), &ti);
 
+	atomic_inc(&ar->dp.num_tx_pending);
 	ath11k_hal_srng_access_end(ab, tcl_ring);
 
 	ath11k_dp_shadow_start_timer(ab, tcl_ring, &dp->tx_ring_timer[ti.ring_id]);
@@ -264,8 +265,6 @@
 
 	ath11k_dbg_dump(ab, ATH11K_DBG_DP_TX, NULL, "dp tx msdu: ",
 			skb->data, skb->len);
-
-	atomic_inc(&ar->dp.num_tx_pending);
 
 	return 0;
 

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

end of thread, other threads:[~2026-11-29 22:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-29 22:43 [PATCH ath-next 1/2] wifi: ath11k: account TX before TCL publication Giuseppe Piscitelli
2026-11-29 22:43 ` [PATCH ath-next 2/2] wifi: ath11k: dump TX data before DMA mapping Giuseppe Piscitelli

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