Repository navigation
wifi: brcmfmac: quiesce TX and defer country updates across suspend - #854
Merged
Merged
Conversation
Cache regulatory requests under RTNL while the wiphy is suspended and replay the latest valid country from wiphy resume, after transport resume. Keep failed updates pending and preserve the initial band setup until it succeeds. Stop and drain network TX before the PCIe D3 handshake, fence message-buffer TX and flowring workers while retaining their pending work, and restart them only after interrupts and HOSTREADY are restored. Track bus flow control independently so resume cannot clear disconnected or firmware flow-control stops. Restore the console timer and TX on a failed D3 handshake. Add production-code host controls for regulatory replay, TX stop reasons, deferred workers, retained/cold resume and suspend rollback, with five assertion-producing mutations. Assisted-by: LLM Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
Keep failed country updates pending with their existing firmware diagnostics, without returning the regulatory error from the wiphy PM callback. A country not present in the firmware mapping must not cause cfg80211 to shut down all interfaces on wake. Assisted-by: LLM Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
This was referenced Nov 2, 2026
notmysegv
pushed a commit
to notmysegv/linux
that referenced
this pull request
Nov 4, 2026
…tion/aurora Bring integration/aurora up to aurora-wip 7f12698, the source of 7.3.0-aurora-fleet14n, promoted on all four machines on 2026-11-02. The range also covers the fleet14m source a7a8a25. It adds aurora-silicon#780, aurora-silicon#781, aurora-silicon#848, aurora-silicon#849, aurora-silicon#850, aurora-silicon#853, aurora-silicon#851 and aurora-silicon#854. No conflicts. Assisted-by: LLM Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
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.
brcmfmac logged three errors on every system suspend on the J616s (BCM4388) and the M1 Pro (BCM4387): "bus is down", "Country code iovar returned err = -5" and, on the M1 Pro, "xmit rejected". The regulatory notifier fired after the PCIe bus had already entered D3, and the network stack kept handing packets to a bus that was going down.
This series fixes that at the source:
No log levels were lowered. No radio power, Bluetooth, GPIO or DART behaviour changes.
Testing
Kernel 7.3.0-aurora-j616s-sleepq (aurora-wip a7a8a25 with this series, #851 and an AFK change):
The M1 Pro baseline also logged 2 "flowring txstatus" timeouts; the series logged none. The M1 Pro drops association on every freeze and takes about 20 s to reassociate with and without this series, so that is a separate issue. Bluetooth stayed up after every cycle on both machines, with no hci0 errors, DART faults or warnings.
Host tests: 175/175 (tools/asahi/run-host-tests.py), including the new brcmf-suspend-tests with five mutation controls. checkpatch --strict: 0 errors, 1 MAINTAINERS note for the new test file.
Task: t-4548.
🤖 Generated with Claude Code