Skip to content

Kernel: backport the MT7986 WDMA TX hang fix (#35) - #58

Merged
Cd1s merged 1 commit into
mainfrom
fix/wdma-tx-hang
Sep 25, 2026
Merged

Cd1s merged 1 commit into
mainfrom
fix/wdma-tx-hang

Conversation

@Cd1s

@Cd1s Cd1s commented Sep 25, 2026

Copy link
Copy Markdown
Owner

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 WDMA RESV_BUFF to 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

  • Before: the 6.18.52 build tree with OpenWrt's patches has no RESV_BUFF anywhere; the upstream diff applies cleanly (offset 17); wdma_m32() exists. A running AX6000 (read only) logs attaching 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 every 99* patch is applied in the build tree (RESV_BUFF present in mtk_wed.c / mtk_wed_regs.h); the kernel .config difference to the flashed build is unchanged (only the nft tproxy/socket modules).
  • Image built from this tree and the nandsim self-test (build/m3/selftest.sh) passes: installer A–E, rollback R, preinit P1–P8.
  • tools/ci.sh passes (private and public trees).
  • Pending: long WiFi stress test on the router after flashing (the owner decides when to flash). This PR stays open until then.

Closes #35

https://claude.ai/code/session_01HWeUjo1dmS7gBkCYHrVjCr

…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
@Cd1s
Cd1s merged commit 1d814d5 into main Sep 25, 2026
2 checks passed
@Cd1s
Cd1s deleted the fix/wdma-tx-hang branch September 25, 2026 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

内核:回移 MT7986 WDMA TX hang 修复(c0ef04232f9f)

1 participant