Repository navigation
Bluetooth: btcentauri: Quiesce Beta for sleep on every N1 board - #3130
Conversation
Suspend sent Beta the ACIPC host-sleep request only on apple,j813. J815 has the same N1 behind the same PCI functions, so it went into deep sleep with Beta never told: after the wake the transport read exec=3 and stopped, and every HCI command failed with -ENETDOWN until a reboot. Send the request wherever the IPC is up and Beta's firmware runs, as the Alpha side does since "wifi: apple: centauri: Quiesce Alpha for sleep on every N1 board". A firmware that isn't running has nothing to quiesce, and resume still only undoes a request suspend sent. Fixes: 507c53d ("Bluetooth: btcentauri: quiesce the J813 transport across deep sleep") Signed-off-by: Nick <[email protected]>
|
Merge readiness at
Areas: none matched in CODEOWNERS Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
satchlj
left a comment
There was a problem hiding this comment.
Verdict: MERGE at 76bf36c59312
Blockers: none
Checked: drivers/bluetooth/btcentauri.c (cen_suspend, cen_transport_state, and cen_resume symmetry), verifying bt->bar + 0x18 (exec stage 2) and bt->bar (IPC state 2) match the running firmware state already logged and checked in cen_transport_state(), that bt->transport_sleep_sent still guards the resume wake path so boards without running Beta firmware remain untouched, and that all CI checks and the exact-head J815 deep-sleep hardware row are green.
Evidence
- Diff check: replaces the board-specific
of_machine_is_compatible("apple,j813")gate incen_suspend()withbt->ipc_requested && readl(bt->bar + 0x18) == 2 && readl(bt->bar) == 2, matchingcen_transport_state()'s register layout (execat+0x18,ipcat+0x00). - Hardware evidence: J815 (MacBook Air 15-inch M5) PASS at
76bf36c59312across a 24.464 s deep-sleep cycle (exec=2 ipc=2, LE mouse stays connected with 0 TX/RX errors vsexec=3and-100without the fix; 0 failed units, 0 new kernel errors). - CI:
host-tests,pr-text, andreadinessall green (3/3 successful, 0 failing, 0 pending).
|
J815 (MacBook Air 15" M5) row at Candidate: One deep sleep with no timer, woken by a key on the built-in keyboard after about 10 minutes (boot Regression on the same boot, after the wake: 0 SELinux denials (SELinux off), 0 failed units, 0 new kernel errors vs the previous boot, 0 WARN/BUG/Oops. |
What: send Beta's ACIPC host-sleep request on every N1 board instead of only on
apple,j813, as #2385 does for Alpha. On J815 the deep sleep went ahead with Beta never told: after the wake the transport readexec=3and stopped, and every HCI command failed with-ENETDOWNuntil a reboot. The request is now sent wherever the IPC is up and Beta's firmware runs (exec stage 2, IPC 2).Tested: J815 (MacBook Air 15" M5) at
76bf36c59312, in the batched candidatem0d16l14n1/linuxj815/prtest-r68ad9358 (main70381bd + the open T8142 sleep, N1 and J815 PR heads, unchanged): PASS. One timed deep sleep and wake (Timekeeping suspended for 24.464 seconds, 9 cores in one burst, CPUs 0-9) with an LE mouse connected: after the wake Beta reads exec 2 / IPC 2, the mouse moves with no reconnect, 0 TX/RX errors. The same tree without this commit:Beta transport stopped (exec=3 ipc=2)and HCI-100after the wake. Regression: 0 SELinux denials (SELinux off), 0 failed units, 0 new kernel errors, 0 WARN/BUG/Oops.Risk: two-way door. J813 and J815 Bluetooth (the btcentauri boards). J813 keeps the same request it sends today; a board whose Beta firmware isn't running skips it, as suspend did on J815 before.
Not yet: a J813 row at this head; several cycles in one boot; a lid-close wake.
Details
cen_suspend()gated the request onof_machine_is_compatible("apple,j813") && bt->ipc_requested. The gate is nowbt->ipc_requestedplus Beta's exec stage and IPC state both reading 2, the same statecen_transport_state()requires; resume is unchanged and still only undoes a request suspend sent.Fixes: 507c53d46cf2 ("Bluetooth: btcentauri: quiesce the J813 transport across deep sleep").Evidence
Without this commit (boot
7791e409):With it (boot
6aaae3d9):