Repository navigation
wifi: apple: centauri: Send the Alpha sleep handshake by default - #3136
Conversation
Alpha's host-power and ACIPC sleep handshake ran only with apple_centauri.alpha_sleep_untested=1. Without it the N1 firmware is not told the host goes to sleep, and a deep sleep is aborted and the Mac woken about a minute in. The handshake runs through full deep sleeps and wakes on J813 and J815 (MacBook Air 13" and 15" M5). Default it on, for a deep sleep only: across s2idle the firmware keeps running and nothing is sent, as before. alpha_sleep_untested=0 skips it. 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 f63bd6893795
Blockers: none
Checked: Full diff and surrounding centauri_wifi_suspend() / centauri_wifi_resume() / alpha_resume_locked() paths audited in drivers/net/wireless/apple/centauri/centauri_wifi.c, plus readiness and exact-head J815 deep-sleep hardware row at f63bd6893795.
Evidence
- Suspend/resume symmetry:
centauri_wifi_suspend()checks!pm_suspend_via_firmware()before acquiringwifi->lockor settingtransport_paused,host_sleep_sent, ortransport_sleep_sent, sos2idlereturns0immediately with zero firmware traffic. On resume,alpha_resume_locked()returns0immediately whenever!wifi->transport_sleep_sent && !wifi->host_sleep_sent, keepings2idlecompletely untouched while enabling the deep-sleep handshake by default (withapple_centauri.alpha_sleep_untested=0retained as an escape hatch). - Readiness & hardware gate: Stacked cleanly on
spec-m5neo/t8142-air-parity-n1, zero merge conflicts,pr-readinesschecks clean aside from review, with exact-head J815 (MacBook Air 15" M5) deep-sleep/wake verification recorded atf63bd6893795.
|
J813 (MacBook Air 13" M5) row at
Assisted-by: LLM (Claude:Opus 5.5) |
e65cbcb
into
aurora-silicon:spec-m5neo/t8142-air-parity-n1
What: send the N1's Alpha (Wi-Fi) host-power and ACIPC sleep handshake by default, for a deep sleep only. It ran only with
apple_centauri.alpha_sleep_untested=1. Without it the firmware isn't told the host is going to sleep, and a deep sleep is aborted and the Mac woken about a minute in, so an M5 needed the parameter to stay asleep. Stacked on #2385 (basespec-m5neo/t8142-air-parity-n1,b1c3392ad232), which makes the handshake run on every N1 board.Tested: J815 (MacBook Air 15" M5) at
f63bd6893795, in the batched candidatem0d16l14n1/linuxj815/prtest-r87b4bbe9, with no centauri word on the command line (the test initramfs told not to set it): PASS.alpha_sleep_untested=Yas booted; a plainsystemctl suspendwith Wi-Fi connected sent the handshake (host LPNA ret 0, ACIPC host sleep ret 0) and slept 185.3 s until a key/trackpad touch, with no abort; on the wake, ACIPC host wake and host awake returned 0 (exec 2, IPC 2) and Wi-Fi reconnected. Centauri host tests: 18/18 pass. Regression: 0 SELinux denials (SELinux off), 0 failed units, 0 new kernel errors after the wake, 0 WARN/BUG/Oops.Risk: two-way door; boards with an N1 on the shared transport (J813, J815 and the others #2385 enables), deep sleep only:
pm_suspend_via_firmware()is false across s2idle, and nothing is sent there, as before. T6050 boards use their own transport and are not reached.apple_centauri.alpha_sleep_untested=0skips the handshake.Not yet: a J813 row at this head; boards other than J815 with the handshake on by default.
Details
One commit,
wifi: apple: centauri: Send the Alpha sleep handshake by default:alpha_sleep_untesteddefaults to true, andcentauri_wifi_suspend()returns early unless the parameter is set and the suspend is a firmware (deep) sleep (pm_suspend_via_firmware(); the apple sleep driver sets it in itsbeginforPM_SUSPEND_MEM, before devices suspend). Before #2385 the handshake was J813-only; #2385 drops that gate, and this makes it the default.Evidence
Candidate:
m0d16l14n1/linuxj815/prtest-r87b4bbe9 =j815/prtest-r7d70fd05 (maina60fef7 + #2384 f9d03e8, #2385 b1c3392, #2192 c5daf57, #2193 8be9e73, #3123 822a1dd, #3124 1a272ce, #3125 4ad71b8, #3129 6d5ec4d, #3130 76bf36c and the open J815 PRs, unchanged) +j815/t8142-no-timed-wake50bc7fa +j815/t8142-deep-defaulta8f7cec +j815/centauri-alpha-sleep-defaultf63bd68.Command line, with no sleep words:
console=tty0 user4k=on pcie_aspm=off idle=nop arm64.nowfxtplus the image's root/ESP words,apple_sep.xart_writes=0 apple_sep.provision_keybag=0(removed frommain, logged as unknown and ignored) andaurora.untested_commit=0 aurora.alphasleep=0(stop the test initramfs setting the two opt-ins, so the kernel defaults are what run).Boot
53a3b9b0: