Repository navigation
Bluetooth: hci_bcm4377: handle function resets through the PCI core - #590
Merged
Merged
Conversation
Probe resets the function with pci_reset_function_locked() while the driver is bound. The driver has no reset_prepare or reset_done handler, so since commit a3151e6 ("PCI: Warn if a running device is unaware of reset") every boot logs hci_bcm4377 0000:01:00.1: resetting hci_bcm4377 0000:01:00.1: reset done on the M1 Pro, the M2 and the M4 Pro. The warning has a point: a reset from the PCI core or from sysfs while the controller runs loses its firmware and rings, and nothing in the driver notices until commands time out. Add the handlers. Probe resets before it sets the driver data, and bcm4377_pci_reset() already quiesces and restarts the controller around its own reset, so both are left alone. Any other reset keeps the interrupt off while it runs and then rebinds the driver, the recovery the driver already uses after a command timeout; that path moves into bcm4377_queue_rebind() so both callers share it. Assisted-by: LLM Signed-off-by: Ryan Murray <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Oct 30, 2026
Contributor
Author
Contributor
Author
|
Boot-tested in fleet10 (7.3.0-aurora-fleet10): integration/aurora 1173b79 plus 587, 588, 589, 590, 596, 599, 600, 601, 603, 604, 605, 607 and 608, built with the shipping recipe (Fedora Asahi base + asahi.config, 0 mismatches, all distro gates). apple-dcp host selftests 80/80, and the other host tests match integration/aurora exactly (62 pass, the same 26 pre-existing failures). One-shot boots on the Neo (J700), the M2 and the M1 Pro, compared with each machine's fleet9 boot; fleet10 is now the default on all three. Full dmesg and journals are in aurora-ctl reports/fleet10-20261030. Result for this PR: pass.
|
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.
Every boot of the M1 Pro, the M2 and the J616s logs two PCI warnings from the Bluetooth probe:
Probe resets the function with
pci_reset_function_locked()while the driver is bound, and the driver has noreset_prepare/reset_donehandler, which the PCI core has warned about since a3151e6 ("PCI: Warn if a running device is unaware of reset"). The warning is right in general: a reset from the PCI core or sysfs while the controller runs loses its firmware and rings and the driver would only notice through command timeouts.This adds the handlers:
bcm4377_pci_reset()already quiesces and restarts the controller around its own reset (marked with a newown_resetflag), so nothing to do.bcm4377_queue_rebind()so both share it; the high-window radio keeps its "requires a platform reboot" refusal.Testing
resetting/reset donepair and Bluetooth comes up (bluetoothctl show). Optional:echo 1 > /sys/bus/pci/devices/0000:01:00.1/resetshould log "function reset, rebinding the driver" and Bluetooth should come back.🤖 Generated with Claude Code