Repository navigation
Kernel: backport the MT7986 WDMA TX hang fix (#35) - #58
Merged
Merged
Conversation
…4232f9f) build/m3/patches/991-mtk_wed-wdma-resv-buff-0x80.patch: WED v2 sets WDMA RESV_BUFF to 0x80 instead of 0x40, avoiding a CDM TX FIFO overflow that can hang WDMA TX (the WiFi hardware-forwarding path). Upstream 2026-08 (from mtk-openwrt-feeds); not in 6.18.52 nor in OpenWrt's patches-6.18. Closes #35
This was referenced Sep 25, 2026
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
New kernel patch
build/m3/patches/991-mtk_wed-wdma-resv-buff-0x80.patch: a backport of upstream c0ef04232f9f ("net: ethernet: mtk_wed: increase WED v2 WDMA RESV_BUFF to 0x80", 2026-08, from mtk-openwrt-feeds). WED v2 (MT7986 / MT7981) sets WDMARESV_BUFFto 0x80 instead of 0x40, which avoids a CDM TX FIFO overflow that can hang WDMA TX, i.e. the WiFi hardware-forwarding (WED) path. Documented in docs/modules/platform.md.Why
Upstream says mt7986 and mt7981 "may have WDMA TX hang issue" without it. The fix is in neither 6.18.52 nor OpenWrt's
patches-6.18. Related reports: openwrt/mt76#1067, #877.Verification
RESV_BUFFanywhere; the upstream diff applies cleanly (offset 17);wdma_m32()exists. A running AX6000 (read only) logsattaching wed device 0 version 2, so the changed branch (mtk_wed_is_v2) is the one it takes.build/m3/kernel.sh: rebuilt; its post-build check confirms every99*patch is applied in the build tree (RESV_BUFFpresent inmtk_wed.c/mtk_wed_regs.h); the kernel.configdifference to the flashed build is unchanged (only the nft tproxy/socket modules).build/m3/selftest.sh) passes: installer A–E, rollback R, preinit P1–P8.tools/ci.shpasses (private and public trees).Closes #35
https://claude.ai/code/session_01HWeUjo1dmS7gBkCYHrVjCr