Skip to content

wifi: ath12k: implement TX flow control

Jose Ignacio Tornos Martinez ath11k ath12k linux-wireless lkml 10 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v8 Latest posting 3/32 patches 0 repliesNew
  2. v8 posting 2/31 of 2 patches 0 repliesSuperseded
  3. v8 posting 1/32 of 3 patches 0 repliesSuperseded
Earlier versions · 7
VersionPostedPatchesRepliesStatus
v74 patches6 repliesSuperseded
v64 patches0 repliesSuperseded
v54 patches8 repliesSuperseded
v44 patches4 repliesSuperseded
v33 patches2 repliesSuperseded
v23 patches4 repliesSuperseded
v12 patches4 repliesSuperseded

Patches in v8 posting 3/3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2wifi: ath12k: remove skb parameter from get_ring_selectordrivers/net/wireless/ath/ath12k/hw.h drivers/net/wireless/ath/ath12k/wifi7/dp_tx.c drivers/net/wireless/ath/ath12k/wifi7/hw.c+5 -50 replies
2/2wifi: ath12k: implement custom wake_tx_queue with flow controldrivers/net/wireless/ath/ath12k/dp.c drivers/net/wireless/ath/ath12k/dp.h drivers/net/wireless/ath/ath12k/hal.c +1 more+72 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v8 yet.

Read the v8 thread

Cover letter [PATCH v8 0/2] wifi: ath12k: implement TX flow control

This series implements a custom wake_tx_queue operation for the ath12k driver to prevent hardware ring overflow issues under heavy traffic.

Without proper flow control, the driver can hang and experiences -ENOMEM errors ("failed to transmit frame -12") when the hardware TCL ring fills up. These issues are more commonly observed in VMs with PCIe passthrough but also occur on bare metal systems.

The implementation follows the pattern used in the iwlwifi driver, adapted for ath12k hardware ring architecture, checking hardware ring space before dequeuing packets from mac80211.

Testing shows stable operation with eliminated -ENOMEM errors, no hangs, and improved throughput under heavy traffic conditions.

Jose Ignacio Tornos Martinez (2):
wifi: ath12k: remove skb parameter from get_ring_selector
wifi: ath12k: implement custom wake_tx_queue with flow control

v8: Split ath11k and ath12k into separate series to avoid conflict
with Julius's airtime queue limits series (ath11k only) and help to unblock both
No code changes from v7
v7: https://lore.kernel.org/all/[email protected]/
--
2.54.0