Repository navigation
Bluetooth: bcm4377: abort suspend if wake IRQ arming fails - #600
Conversation
With controller wake enabled, bcm4377_suspend() returns success even when enable_irq_wake() fails. The MSI is then not a wake source, although HCI has been suspended for remote wake and the function remains in D0. A fault-injected callback test reproduces a zero return with HCI still suspended and no wake reference after enable_irq_wake() returns -ENXIO. Return the arming error and undo HCI suspension using the existing resume path. Clear the powered-resume epoch before that rollback, since no system sleep completed, and preserve the original error if HCI rollback also fails. Arm the IRQ before saving PCI state, so an aborted suspend does not leave a saved-state marker. The PM core does not invoke resume for the device whose suspend callback failed. The extracted PM callbacks pass host tests with mocked kernel APIs for arming failure, rollback failure, repeated successful wake cycles, wake-disabled quiescence and HCI suspend failure, with recovery support on and off. ARM64 kernel build and hardware wake qualification remain pending; this does not establish the cause of a particular machine hang. Fixes: 0609ca7 ("Bluetooth: hci_bcm4377: Support remote wakeup") Assisted-by: LLM Signed-off-by: Ryan Murray <[email protected]> (cherry picked from commit d808471) Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
The convergence stack build is still waiting for a buildbox slot, because every slot is busy with other builds. It is buildbox |
|
The stack build passed: |
|
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 on the M1 Pro.
|
This carries d808471 from aurora-wip onto integration/aurora. It is part of the convergence of the two kernel lines: once this and the other ready topics land here, aurora-wip has nothing left that integration/aurora lacks.
With controller wake enabled,
bcm4377_suspend()returned success even whenenable_irq_wake()failed. The MSI was then not a wake source, although HCI had been suspended for remote wake. The suspend now fails with the arming error and undoes the HCI suspend through the existing resume path. The PM core never calls resume for a device whose suspend failed, so the rollback has to happen here. The IRQ is armed before the PCI state is saved, so an aborted suspend leaves no saved-state marker.Testing
🤖 Generated with Claude Code