From: Raymond Berger <ray.berger@archive.org>
To: dev@deq.rocks
Cc: Sven Peter <sven@kernel.org>,
Marcel Holtmann <marcel@holtmann.org>,
Luiz Augusto von Dentz <luiz.dentz@gmail.com>,
Janne Grunau <j@jannau.net>, Neal Gompa <neal@gompa.dev>,
asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org,
linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3 2/3] Bluetooth: hci_bcm4377: probe again after a resume through firmware
Date: Sun, 29 Nov 2026 19:20:58 -0800 [thread overview]
Message-ID: <20261130032058.26628-1-ray.berger@archive.org> (raw)
In-Reply-To: <20261127132501.262651-3-dev@deq.rocks>
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@archive.org>
I used Claude Opus 5.5 to help run these tests and go through the
logs.
next prev parent reply other threads:[~2026-11-30 3:21 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-27 13:24 [PATCH v3 0/3] Bluetooth: hci_bcm4377: resume after ACPI S3 and ASPM Andre Eikmeyer
2026-11-27 13:24 ` [PATCH v3 1/3] Bluetooth: hci_bcm4377: check hci_register_dev() for a negative return Andre Eikmeyer
2026-11-30 3:17 ` Raymond Berger
2026-11-27 13:25 ` [PATCH v3 2/3] Bluetooth: hci_bcm4377: probe again after a resume through firmware Andre Eikmeyer
2026-11-30 3:20 ` Raymond Berger [this message]
2026-11-27 13:25 ` [PATCH v3 3/3] Bluetooth: hci_bcm4377: keep ASPM off only while the firmware boots Andre Eikmeyer
2026-11-30 3:25 ` Raymond Berger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261130032058.26628-1-ray.berger@archive.org \
--to=ray.berger@archive.org \
--cc=asahi@lists.linux.dev \
--cc=dev@deq.rocks \
--cc=j@jannau.net \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-bluetooth@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=luiz.dentz@gmail.com \
--cc=marcel@holtmann.org \
--cc=neal@gompa.dev \
--cc=sven@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®