Skip to content

wifi: brcmfmac: keep BCM4388 receive DMA buffers readable too - #383

Merged
RyanTheTide merged 1 commit into
aurora-silicon:integration/aurorafrom
jgoyvaerts:m4pro/brcmfmac-4388-rx-dma
Oct 23, 2026
Merged

RyanTheTide merged 1 commit into
aurora-silicon:integration/aurorafrom
jgoyvaerts:m4pro/brcmfmac-4388-rx-dma

Conversation

@jgoyvaerts

Copy link
Copy Markdown
Contributor

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):

  • Wi-Fi scans, but authentication times out (Authentication with … timed out);
  • every firmware command then times out (brcmf_msgbuf_query_dcmd_len: Timeout on response for query command);
  • Bluetooth on the same chip (behind the same PCIe DART) times out too.

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.c only. W=1-clean, checkpatch --strict clean.

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

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
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.

2 participants