ath12k (IPQ9574): WSI multi-radio devices intermittently fail WMI init ("WMI CONTROL service status: -71" / "failed to parse tlv -22")
Describe the bug
On Askey SBE1V1K (IPQ9574, WSI single-phy/3-radio ath12k), radios intermittently fail to initialize on boot with a QMI/WMI failure chain, non-deterministically — anywhere from 0 to 3 of the 3 radios come up on a given boot, with no config or hardware change between attempts:
ath12k_pci 0001:01:00.0: qmi dma allocation failed (29360128 B type 1), will try later with small size
ath12k_pci 0001:01:00.0: HTC Service WMI MAC1 connect request failed: 0x1)
ath12k_pci 0001:01:00.0: failed to connect to WMI CONTROL service status: -71
ath12k_pci 0001:01:00.0: failed to parse tlv -22Repeats per-radio (0001:01:00.0, 0002:01:00.0, 0003:01:00.0 — the three WSI PCI paths). Whichever radios fail this handshake either don't appear in /sys/class/ieee80211/wl0/addresses at all, or get a MAC that isn't the real hardware-fixed one (drifts between boots - e.g. observed ...:52/:53/:54 on one boot, ...:52/:62/:72 on another, ...:53/:63/:73 on a third — looks like a pdev_idx-derived fallback used when the real per-radio MAC never arrives via WMI_READY_EVENT).
qmi dma allocation failed... will try later with small size alone is expected/designed fallback behavior (ath12k_qmi_alloc_chunk() retrying at reduced size is normal - confirmed by reading the driver source). The actual failure is what follows: WMI CONTROL service status: -71 and failed to parse tlv -22, which prevent that radio from completing init.
Not a direct duplicate of #24370 or #23578. #24370 describes radios landing on the wrong band/index, attributed to unstable enumeration order: radioN gets reassigned between boots, but each radio still has a real, stable, hardware-fixed MAC once it comes up — the bug there is purely about tracking which index is currently which band. That's a different failure mode from this report: here, some radios never get a real per-radio identity from firmware at all — no amount of index-tracking helps, because there's nothing stable to track. wifi-radio-remap-style fixes for #24370 (matching MAC-to-band) have nothing to correct against here: when WMI fails, the phy exposes either one real address or pdev_idx-derived fallback addresses with no hardware meaning, not a stable-but-mislabeled one.
That said, the two are probably entangled in practice: #24370's own symptom description ("radio assigned to wrong band") is exactly what a user would also observe if a radio silently failed this WMI handshake and got a fallback identity instead — the two failure modes look identical from the outside. So it's plausible some fraction of existing #24370 reports are actually this bug, not the index-tracking issue #24370 was filed to describe. Worth keeping them separate rather than merging, since they need different fixes (index-tracking vs. why WMI/QMI init fails), but they may share root-cause reports.
#23578 (NVMEM-derived MAC assignment being wrong on single-wiphy multi-radio devices) is a closer relative mechanism-wise, but still describes something different — a wrong-but-present nvmem-derived MAC, not a failed WMI handshake with no real identity delivered at all.
Not board-specific — also observed on two other independent IPQ9574 board designs from different vendors. In two other device-bringup PRs:
- #20373 (TP-Link BE800 V1):
HTC Service WMI MAC1 connect request failed: 0x1)→failed to connect to WMI CONTROL service status: -71→Invalid module id 2→failed to parse tlv -22— same exact chain, same error codes. - #22708 (TP-Link Deco BE85 v1): same
WMI CONTROL service status: -71failure across all three radios, with the reporter noting "Error on init (but did create radios)" — the same partial-recovery pattern observed here. Also showsboard_id 0xff, matching what's seen on SBE1V1K.
Neither PR's thread identifies or tracks this as its own issue — it's just sitting in their boot logs. Combined with this device, that's three unrelated board designs from different vendors hitting the identical failure, which points at a genuine platform-level ath12k/WSI driver issue rather than anything board-specific.
What's been ruled out on this device: Reproduced on two builds — the last known-good build (0e178e1542, kernel 6.18.39) and a fresh rebuild from current main (kernel 6.18.44) — with identical failure behavior on both, so this isn't a regression between them. Diffed everything that differs between the two builds:
- ath12k/mac80211 driver source: unchanged — pinned to a fixed
backports-v6.18.39snapshot regardless of kernel version; confirmed via recursive tree-hash match on theath12kpatches directory between both builds' base commits. ath12k-firmware-qcn9274blob: byte-identical SHA256 between both builds'firmware-2.bin.- Board calibration data (
board-2.bin): swapped the old build's file onto a live unit running the new build — identical failure persisted, ruling out a bad/mismatched calibration bundle. CONFIG_CMA: disabled in both builds' generated kernel.config(confirmed via the actual built.config, not inferred).target/linux/qualcommbe/config-6.18: diffed directly between both builds' base commits — only unrelated additions (CONFIG_NVMEM_BLOCK,CONFIG_VIDEO_QCOM_IRISdisable) and an ARM64 CPU erratum removal scoped to Cortex-A76/A510/A710/Neoverse-N2 (SBE1V1K is Cortex-A53, none apply).- SoC devicetree (
ipq9574.dtsi) and all 14 local qualcommbe DTS patches touching it: diffed directly — byte-identical, both the upstream base and every local patch. - Also checked the generic (non-qualcommbe) kernel changes in the exact
v6.18.39→v6.18.44stable range fordrivers/bus/mhi,drivers/pci,kernel/dma,drivers/iommu— nothing applicable to this hardware/code path survived reading the actual diffs.
So the failure is present on both a kernel-6.18.39-era build and a kernel-6.18.44 rebuild, with every board/driver/firmware input verified identical between them, and on two other vendors' boards entirely — looks like a pre-existing race in the shared ath12k/WSI driver path, not a regression from any specific commit or anything specific to this device.
OpenWrt version
Reproduced on r35573+4-0e178e1542 and a rebuild from main @ a3357c90be (post PR #21586 merge).
OpenWrt release
SNAPSHOT
OpenWrt target/subtarget
qualcommbe/ipq95xx
Device
Askey SBE1V1K
Image kind
Self-built image
Steps to reproduce
Power cycle repeatedly (not every boot fails — non-deterministic). dmesg | grep -iE "qmi dma|WMI CONTROL|parse tlv" after boot; check /sys/class/ieee80211/wl0/addresses for fewer than 3 entries or values that don't match the previous boot's. See also #20373 and #22708 for the same signature on other IPQ9574 boards.
Actual behaviour
0-3 of 3 radios come up per boot, unpredictably, with the log signature above.
Expected behaviour
All 3 radios complete WMI init and register their real, hardware-fixed MACs every boot.
Additional info
No response
Diffconfig
Terms
- I am reporting an issue for OpenWrt, not an unsupported fork.
Source: openwrt/openwrt