Skip to content

wifi: apple: centauri: Send the Alpha sleep handshake by default - #3136

Merged
DjDeveloperr merged 1 commit into
aurora-silicon:spec-m5neo/t8142-air-parity-n1from
m0d16l14n1:j815/centauri-alpha-sleep-default
Nov 25, 2026
Merged

DjDeveloperr merged 1 commit into
aurora-silicon:spec-m5neo/t8142-air-parity-n1from
m0d16l14n1:j815/centauri-alpha-sleep-default

Conversation

@m0d16l14n1

@m0d16l14n1 m0d16l14n1 commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

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 (base spec-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 candidate m0d16l14n1/linux j815/prtest-r8 7b4bbe9, with no centauri word on the command line (the test initramfs told not to set it): PASS. alpha_sleep_untested=Y as booted; a plain systemctl suspend with 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=0 skips 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_untested defaults to true, and centauri_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 its begin for PM_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/linux j815/prtest-r8 7b4bbe9 = j815/prtest-r7 d70fd05 (main a60fef7 + #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-wake 50bc7fa + j815/t8142-deep-default a8f7cec + j815/centauri-alpha-sleep-default f63bd68.
Command line, with no sleep words: console=tty0 user4k=on pcie_aspm=off idle=nop arm64.nowfxt plus the image's root/ESP words, apple_sep.xart_writes=0 apple_sep.provision_keybag=0 (removed from main, logged as unknown and ignored) and aurora.untested_commit=0 aurora.alphasleep=0 (stop the test initramfs setting the two opt-ins, so the kernel defaults are what run).

Boot 53a3b9b0:

264.788 apple_centauri 0000:01:00.0: TEST: Alpha firmware host LPNA: ret=0 status=0 exec=2
264.794 apple_centauri 0000:01:00.0: TEST: Alpha ACIPC host sleep: ret=0 status=3 exec=2 ipc=2
        Timekeeping suspended for 185.292 seconds
265.071 apple_centauri 0000:01:00.0: TEST: Alpha ACIPC host wake: ret=0 status=0 exec=2 ipc=2
265.074 apple_centauri 0000:01:00.0: TEST: Alpha firmware host awake: ret=0 status=0 exec=2
        apple-sleep: the radio's PCIe link trained again after the wake

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]>
@github-actions github-actions Bot added blast:m5 Macs affected, from Merge risk (bot) door:two-way Revertible or not, from Merge risk (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) labels Nov 25, 2026
@github-actions

github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Merge readiness at f63bd689: ready to merge

Check Detail
CI at head ok no CI for this change (the hardware row is the gate)
Review ok approved by satchlj
Requested changes ok none
Hardware row at head ok in the PR body at f63bd689
Conflicts ok none
PR text ok Risk: two-way · boards with an N1 on the shared transport (J813, J815 and the others #2385 enables), deep sleep only: pmsuspendviafirmware() is false across s2idle, and nothing is sent there, as before. T6050 boards use their own transport and are not reached. applecentauri.alphasleepuntested=0 skips the handshake.

Areas: none matched in CODEOWNERS
Merge: gh pr merge 3136 --merge (Owners and Core through the bypass: add --admin).

Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels.

@satchlj satchlj left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 acquiring wifi->lock or setting transport_paused, host_sleep_sent, or transport_sleep_sent, so s2idle returns 0 immediately with zero firmware traffic. On resume, alpha_resume_locked() returns 0 immediately whenever !wifi->transport_sleep_sent && !wifi->host_sleep_sent, keeping s2idle completely untouched while enabling the deep-sleep handshake by default (with apple_centauri.alpha_sleep_untested=0 retained as an escape hatch).
  • Readiness & hardware gate: Stacked cleanly on spec-m5neo/t8142-air-parity-n1, zero merge conflicts, pr-readiness checks clean aside from review, with exact-head J815 (MacBook Air 15" M5) deep-sleep/wake verification recorded at f63bd6893795.

@github-actions github-actions Bot added ready-to-merge Meets the merge policy: merge it (bot) and removed needs-review No approving review from Core or Omarchy Mac yet (bot) labels Nov 25, 2026
@gig3m

gig3m commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

J813 (MacBook Air 13" M5) row at f63bd6893795, in m0d16l14n1/linux j815/prtest-r8 7b4bbe9 plus the local XRGB plane patch, with no sleep or centauri words on the command line: PASS.

  • alpha_sleep_untested=Y as booted.
  • Three plain systemctl suspends over two boots, Wi-Fi connected, woken by a key: 20 s, 4 min 48 s, and 5 min 12 s with an external display on the front port. Every one sent the full handshake both ways:
TEST: Alpha firmware host LPNA: ret=0 status=0 exec=2
TEST: Alpha ACIPC host sleep: ret=0 status=3 exec=2 ipc=2
TEST: Alpha ACIPC host wake: ret=0 status=0 exec=2 ipc=2
TEST: Alpha firmware host awake: ret=0 status=0 exec=2
  • The two long sleeps stayed down until the key, with no abort about a minute in. Wi-Fi reconnected after each (3/3 pings over Wi-Fi), Bluetooth powered, 0 failed units, 0 WARN/BUG/Oops.

Assisted-by: LLM (Claude:Opus 5.5)

@DjDeveloperr
DjDeveloperr merged commit e65cbcb into aurora-silicon:spec-m5neo/t8142-air-parity-n1 Nov 25, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

blast:m5 Macs affected, from Merge risk (bot) door:two-way Revertible or not, from Merge risk (bot) ready-to-merge Meets the merge policy: merge it (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants