Linux wireless drivers development
 help / color / mirror / Atom feed
From: Rosen Penev <rosenp@gmail.com>
To: Stanislaw Gruszka <stf_xl@wp.pl>
Cc: linux-wireless@vger.kernel.org
Subject: [PATCH wireless-next 0/3] wifi: rt2800usb: don't wait for every TX status
Date: Sat, 21 Nov 2026 23:03:39 -0800	[thread overview]
Message-ID: <20261122070342.101054-1-rosenp@gmail.com> (raw)

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


             reply	other threads:[~2026-11-22  7:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-22  7:03 Rosen Penev [this message]
2026-11-22  7:03 ` [PATCH wireless-next 1/3] wifi: rt2x00: add a mode that doesn't wait for every TX status 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

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=20261122070342.101054-1-rosenp@gmail.com \
    --to=rosenp@gmail.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=stf_xl@wp.pl \
    /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