Re: [PATCH v3 2/3] Bluetooth: hci_bcm4377: probe again after a resume through firmware
From: Raymond Berger
Date: Sun Nov 29 2026 - 22:21:26 EST
Tested on a MacBookAir9,1 on 7.2.15, with your "wifi: brcmfmac: reload
the firmware after a missing D3 ACK" (as carried in linux-t2-patches
PR 80 [1]) for Wi-Fi, not your brcmfmac S3 series. Bluetooth came back
after S3: 4 of 4 resumes on AC, 8 of 8 on battery (45 s to 15 min) and
3 of 3 with audio streaming, plus the 8 short ones in my 3/3 reply.
Most of these runs had 3/3 applied too; 3 of the battery resumes had
only 1/3 and 2/3. One other resume failed, but not because of this
patch; see below.
One observation: the re-probe's function reset lands at nearly the
same moment as brcmfmac's firmware reload on the Wi-Fi function. In 59
of 65 logged resumes the two were within 50 ms (mostly with PR 87's
re-probe; with this patch, 8 of 8 at 13-27 ms). Once, with PR 87, the
Wi-Fi firmware crashed 2 s after the overlapping reset ("Firmware has
halted or crashed") and Wi-Fi stayed down until reboot. I now unbind
Bluetooth before suspend and bind it again once Wi-Fi is back, from
userspace, so the re-probe path isn't used; that has given 0 failures
in over 140 resumes. I can't prove the overlap caused the firmware
crash, but it may matter for the brcmfmac series too.
The failed resume, with all three of your patches, was the only one I
started with a bare "rtcwake -m mem" instead of systemctl suspend.
While suspending, before entering S3, the root port logged a DPC
containment event (status 0x1f01) and both functions "AER: can't
recover". On resume brcmfmac's reload read 0xffffffff and failed
(-19), then the re-probe failed reading the OTP (-2). The machine hung
on the next suspend. I've seen the same DPC/AER pair once before
(August, 7.1.8, in-tree drivers), so I don't think the re-probe caused
it.
[1] https://github.com/t2linux/linux-t2-patches/pull/80
Tested-by: Raymond Berger <ray.berger@xxxxxxxxxxx>
I used Claude Opus 5.5 to help run these tests and go through the
logs.