[PATCH rtw-next v2 0/2] wifi: rtw88: reduce RTL8822CS SDIO request overhead
From: Leonard Lausen
Date: Mon Nov 16 2026 - 05:10:33 EST
Reduce RTL8822CS SDIO request overhead by filtering hardware-handled
control frames and combining adjacent TX-capacity reads.
This complete v2 series is based on rtw-next at 61a5eb87b2d9. Changes in v2:
- Rebase both patches onto rtw-next.
- Fix continuation and argument alignment, declaration order, comment
formatting and long lines throughout the added code.
- Remove the deprecated Assisted-by tag.
- Refresh throughput measurements using the rebased driver.
TCP medians on RTL8822CS/NanoPi M5 with the v2 driver, in Mbit/s:
Upload Download
rtw-next baseline 165.7 206.7
Both patches 296.9 271.2
Together the patches improved median upload by 79.2% and download by 31.2%.
Each configuration used three 20-second TCP samples per direction on a
shared Wi-Fi network, so throughput can vary.
Both driver stacks were built against the running v7.4-rc2 kernel and
hot-loaded. The same test-only adaptation restored the older key-iteration
API and RCU locking in firmware recovery. Both configurations used the
same MMC host stack, 198 MHz SDR104 and performance governors, with SDIO
IRQ on CPU4, iperf client on CPU6 and server on CPU7. Traffic crossed
Wi-Fi/AP/Ethernet between two endpoints on the board.
Independent v1 tests measured a 52% upload and 9% download gain from
filtering alone, and 9% upload and 8% download from combined reads alone.
Adding combined reads after filtering gave another 11% upload and 4%
download. Those tests used v7.4-rc2 with the RX-bounds and MMC voltage-switch
fixes and stock MMC host limits: four 20-second upload samples and four
30-second download samples per configuration on the shared network.
All 20 configured rtw88 module objects compiled and linked as relocatable
objects on ARM64 with W=1 after each patch, without warnings. Runtime
builds passed modpost; loaded module IDs, traffic paths and register
settings were checked. MMC traces confirmed three 4-byte capacity reads
became one 12-byte read, with zero SDIO command errors.
No full rtw-next kernel was booted or installed module files replaced.
AP/monitor, suspend/resume and other-chip hardware remain untested.
AI assistance: Codex helped develop the code, inspect vendor sources,
automate the earlier benchmarks, rebase the series, apply style fixes
and draft the messages.
v1: https://lore.kernel.org/linux-wireless/20261115142330.359247-2-leonard@xxxxxxxxx/
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/reg.h | 4 ++
drivers/net/wireless/realtek/rtw88/rtw8822c.c | 10 +++
drivers/net/wireless/realtek/rtw88/sdio.c | 63 +++++++++++++++++--
drivers/net/wireless/realtek/rtw88/sdio.h | 1 +
4 files changed, 74 insertions(+), 4 deletions(-)
base-commit: 61a5eb87b2d9b4d5e353780b781cf691f39ba9e1