Linux wireless drivers development
 help / color / mirror / Atom feed
* [PATCH wireless-next 0/3] wifi: rt2800usb: don't wait for every TX status
@ 2026-11-22  7:03 Rosen Penev
  2026-11-22  7:03 ` [PATCH wireless-next 1/3] wifi: rt2x00: add a mode that doesn't " Rosen Penev
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Rosen Penev @ 2026-11-22  7:03 UTC (permalink / raw)
  To: Stanislaw Gruszka; +Cc: linux-wireless

rt2800usb keeps each frame in its TX queue until it has read the frame's
TX status from TX_STA_FIFO, one USB control transfer per report. On
hosts where a control transfer takes several milliseconds (AMD X470
chipset USB 2.0 ports take 3 ms or more), TX is capped at a few hundred
frames per second.

Patch 1 adds a mode to rt2x00lib, REQUIRE_TXSTATUS_SAMPLING, in which
only frames that need their status (mac80211 asked for one, or BARs)
wait for it. All other frames are completed when their DMA is done, and
a few of them still ask for a report that only feeds rate control.
Patch 2 implements it in rt2800lib using the TXWI packet id: 0 for no
report, the queue for waiting frames, and a sample bit plus the low
bits of the requested MCS for rate control samples. Patch 3 enables it
for rt2800usb. rt2800pci/soc behaviour is unchanged.

RT3070 station, MT7612U AP, channel 6 HT20, WPA2-CCMP, same host,
median of three 15 s iperf3 runs:

                       before                  after
  TCP TX               3.4 Mbit/s, ~340 retr   37.8 Mbit/s, 1-8 retr
  UDP TX (60M sent)    8.9 Mbit/s, 60% loss    43.8 Mbit/s, 0% loss
  TCP RX               10.2 Mbit/s             29.8 Mbit/s

A GTK rekey every 10 s during 60 s of saturating TX with an A-MPDU
session completed every time, with no TX status timeouts or unmatched
reports. Each patch builds with W=1 and passes checkpatch --strict.

An AI coding assistant (Claude Code, Claude Opus 5.5) was used to review
the series, write the fixes from that review, run the hardware tests
and draft this cover letter.

Rosen Penev (3):
  wifi: rt2x00: add a mode that doesn't wait for every TX status
  wifi: rt2800: support TX status sampling
  wifi: rt2800usb: don't hold every TX frame until its status is read

 drivers/net/wireless/ralink/rt2x00/rt2800.h   |   6 +
 .../net/wireless/ralink/rt2x00/rt2800lib.c    | 175 +++++++++++++++++-
 .../net/wireless/ralink/rt2x00/rt2800lib.h    |   1 +
 .../net/wireless/ralink/rt2x00/rt2800usb.c    |  27 ++-
 drivers/net/wireless/ralink/rt2x00/rt2x00.h   |  22 +++
 .../net/wireless/ralink/rt2x00/rt2x00dev.c    |  79 +++++++-
 .../net/wireless/ralink/rt2x00/rt2x00queue.c  |  93 ++++++++++
 .../net/wireless/ralink/rt2x00/rt2x00queue.h  |  13 ++
 8 files changed, 408 insertions(+), 8 deletions(-)

-- 
2.56.1


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

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

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-22  7:03 [PATCH wireless-next 0/3] wifi: rt2800usb: don't wait for every TX status Rosen Penev
2026-11-22  7:03 ` [PATCH wireless-next 1/3] wifi: rt2x00: add a mode that doesn't " Rosen Penev
2026-11-22  7:03 ` [PATCH wireless-next 2/3] wifi: rt2800: support TX status sampling Rosen Penev
2026-11-22  7:03 ` [PATCH wireless-next 3/3] wifi: rt2800usb: don't hold every TX frame until its status is read Rosen Penev

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