Repository navigation
Conversation
On a 13" MacBook Pro M2 (J493, BCM4378, PCI ID 0x4425) the firmware
loads and wld0 appears, but every firmware command then times out
("brcmf_msgbuf_query_dcmd_len: Timeout on response for query
command"), so scans, channel and tx-power queries and multicast setup
fail with -EIO and the machine never associates. Just before, the
PCIe DART reports a read fault from the chip:
apple-dart 681008000.iommu: translation fault: status:0x80000020
stream:0 code:0x20 (READ FAULT) at 0xbfdd00d8
The same machine has working Wi-Fi on a 7.2 kernel without commit
f0ba5fd.
Since commit f0ba5fd ("wifi: brcmfmac: Set DMA direction for
msgbuf packet IDs") receive buffers are mapped DMA_FROM_DEVICE, which
the Apple DART makes write-only. Commits 25836bd ("wifi:
brcmfmac: Keep BCM4387 receive DMA buffers readable") and 3217ca6
("wifi: brcmfmac: keep BCM4388 receive DMA buffers readable too") keep
them bidirectional for the BCM4387 and BCM4388, whose firmware reads
posted receive buffers. The BCM4378 firmware shows the same failure;
with this change the J493 associates again.
Match the BCM4378 as well.
Fixes: f0ba5fd ("wifi: brcmfmac: Set DMA direction for msgbuf packet IDs")
Link: aurora-silicon/alarm-aurora#48
Signed-off-by: Jos Dehaes <jos.dehaes@gmail.com>
Assisted-by: LLM
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
|
The same change is already in integration/aurora: 2834599 ("wifi: brcmfmac: keep BCM4378 receive DMA buffers readable too") adds |
Contributor
Author
|
yeah I saw that, closing. |
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.
Fixes aurora-silicon/alarm-aurora#48.
Extends 25836bd (BCM4387) and 3217ca6 (#383, BCM4388) to the BCM4378 (PCI ID 0x4425). Without this change, M1 and M2 Macs with that chip have no Wi-Fi on the 7.3-based
linux-aurora.Since f0ba5fd, receive buffers are mapped
DMA_FROM_DEVICE, which the Apple DART makes write-only. On a 13" MacBook Pro M2 (J493), runningtesting-20261030.3(linux-aurora7.3.0.aurora1-5, firmwareBCM4378/5 wl0 … 18.20.383.15), the firmware loads andwld0appears. After that, every command times out:The PCIe DART logs a read fault from the chip just before the commands start timing out:
These are the same symptoms #383 describes for the BCM4388. The same machine has working Wi-Fi on
linux-asahi7.2.12, which doesn't have f0ba5fd.This change only touches
brcmf_msgbuf_rx_dma_direction()indrivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c: it addsBRCM_PCIE_4378_DEVICE_IDto the match and updates the comment.Since every Apple-firmware Broadcom chip so far needs this, it may be better to key it on the device sitting behind an Apple DART, or on Apple firmware, than to keep extending a list of chip IDs. I've kept this PR to the existing pattern.
Testing: I tested on the same J493 running
linux-aurora7.3.0.aurora1-16 (testing-20261103.9, kernel source 21f7ffc). I builtbrcmutil,brcmfmacandbrcmfmac-wccfrom that tree with this change, installed them as module overrides (updates/), and rebooted. Wi-Fi comes up and connects. Without the change, the same kernel fails as described above.🤖 Generated with Claude Code