Repository navigation
wifi: brcmfmac: keep BCM4388 receive DMA buffers readable too - #383
Merged
RyanTheTide merged 1 commit intoOct 23, 2026
Merged
RyanTheTide merged 1 commit into
RyanTheTide merged 1 commit into
Conversation
On a MacBook Pro M4 Pro (BCM4388, PCI ID 0x4434) Wi-Fi scans, but
authentication times out, then every firmware command does ("Timeout
on response for query command"), and Bluetooth behind the same DART
times out as well. The PCIe DART takes a fault from the chip just
before.
Since commit f0ba5fd ("wifi: brcmfmac: Set DMA direction for
msgbuf packet IDs") receive buffers are mapped DMA_FROM_DEVICE, which
permission-enforcing IOMMUs such as the Apple DART make write-only.
Commit 25836bd ("wifi: brcmfmac: Keep BCM4387 receive DMA buffers
readable") keeps them bidirectional for the BCM4387, whose firmware
reads posted receive buffers. The BCM4388 firmware does the same:
without that commit, or with this change, the same machine
associates and never faults.
Match the BCM4388 as well.
Fixes: f0ba5fd ("wifi: brcmfmac: Set DMA direction for msgbuf packet IDs")
Signed-off-by: Jonathan Goyvaerts <[email protected]>
Assisted-by: LLM
This was referenced Oct 23, 2026
Closed
Closed
This was referenced Oct 23, 2026
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.
Summary
Extends 25836bd ("wifi: brcmfmac: Keep BCM4387 receive DMA buffers readable") to the BCM4388 (PCI ID 0x4434).
Since f0ba5fd receive buffers are mapped
DMA_FROM_DEVICE, which the Apple DART turns into write-only mappings. The BCM4388 firmware reads posted receive buffers, as the BCM4387's does. The result on a MacBook Pro 16" M4 Pro (J616s, T6040):Authentication with … timed out);brcmf_msgbuf_query_dcmd_len: Timeout on response for query command);With this change the machine associates and Bluetooth connects. It has been in daily use on 7.3 since 2026-10-22, and the DART reports no faults.
One commit,
drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.conly. W=1-clean, checkpatch--strictclean.Related: #369 carries the rest of the BCM4388 (M4 Pro) Wi-Fi/Bluetooth support. This fix is separate because #369's base predates 25836bd.
🤖 Generated with Claude Code