[PATCH rtw-next v4 0/2] wifi: rtw88: reduce RTL8822CS SDIO request overhead
From: Leonard Lausen
Date: Thu Nov 26 2026 - 14:02:43 EST
Reduce RTL8822CS SDIO request overhead by filtering hardware-handled
control frames and combining adjacent TX-capacity reads.
Changes in v4:
- Add the requested blank line, order RXFLTMAP1 bits from high to low,
and describe the filter as not forwarding the selected control frames.
- Quantify patch 2's request time and isolated throughput gain, and add
Ping-Ke Shih's Acked-by with that description.
Full-series testing on RTL8822CS/NanoPi M5 on 16 November with v3
measured these TCP medians in Mbit/s:
Upload Download
Neither patch (rtw-next) 163.4 247.5
Both patches 285.4 277.0
That comparison used three 20-second samples per direction and build:
74.6% higher median upload and 11.9% higher median download.
The follow-up v4 tests on 17 November isolate patch 2, with patch 1
enabled in both builds. Median TCP throughput in Mbit/s:
Upload Download
Filtering only 254.4 275.4
Both patches 284.7 285.5
Upload increased by 11.9% and download by 3.7%. Each configuration used
six 20-second samples per direction in F/FC/FC/F blocks, three samples
per block. The two tables report separate test sessions on a shared
Wi-Fi network; download samples overlap and throughput can vary.
Separate MMC traces timed the reads of available transmit-buffer space.
Without patch 2, the driver reads three registers using three 4-byte SDIO
requests; patch 2 reads the same 12 bytes in one request. The median time
from the first request start to the final completion fell from 51 to
13 us (74.5%). This measures the SDIO request span, excluding waiting to
acquire the host before the first request and processing results after
the last completion.
Two traces per build reproduced the same respective median during
15-second UDP uploads. The sender's requested rate was 600 Mbit/s;
achieved TCP throughput was measured separately above. No MMC errors
or dropped trace events were observed.
AI assistance: Codex developed the changes and messages and automated
builds, hardware checks and measurements. Prompts requested the review
corrections and an isolated, repeated benchmark of the register reads.
Earlier discussion:
https://lore.kernel.org/linux-wireless/20261116100804.425592-2-leonard@xxxxxxxxx/T/#t
Leonard Lausen (2):
wifi: rtw88: 8822c: filter hardware-handled control frames on SDIO
wifi: rtw88: sdio: combine free TX page register reads
drivers/net/wireless/realtek/rtw88/bf.c | 4 +-
drivers/net/wireless/realtek/rtw88/mac80211.c | 10 ++-
drivers/net/wireless/realtek/rtw88/main.c | 11 ++++
drivers/net/wireless/realtek/rtw88/main.h | 2 +
drivers/net/wireless/realtek/rtw88/reg.h | 4 ++
drivers/net/wireless/realtek/rtw88/rtw8723x.c | 2 +-
drivers/net/wireless/realtek/rtw88/rtw8814a.c | 2 +-
drivers/net/wireless/realtek/rtw88/rtw8821c.c | 2 +-
drivers/net/wireless/realtek/rtw88/rtw8822b.c | 2 +-
drivers/net/wireless/realtek/rtw88/rtw8822c.c | 12 +++-
drivers/net/wireless/realtek/rtw88/rtw88xxa.c | 2 +-
drivers/net/wireless/realtek/rtw88/sdio.c | 64 +++++++++++++++++--
drivers/net/wireless/realtek/rtw88/sdio.h | 1 +
13 files changed, 100 insertions(+), 18 deletions(-)
base-commit: 61a5eb87b2d9b4d5e353780b781cf691f39ba9e1