Skip to content

arm64: dts: apple: t8142-j815: Give the SEP its power domains - #3129

Merged
DjDeveloperr merged 1 commit into
aurora-silicon:mainfrom
m0d16l14n1:j815/sep-power-domains
Nov 25, 2026
Merged

DjDeveloperr merged 1 commit into
aurora-silicon:mainfrom
m0d16l14n1:j815/sep-power-domains

Conversation

@m0d16l14n1

@m0d16l14n1 m0d16l14n1 commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

What: give the J815 SEP node its power domains (SEP +0xc00, GPIO +0x120, both always on, from the J815 ADT, as J813's node has). The SEP driver stages its sleep request on the SEP's PMGR word, which it finds through the node's first power domain. Without it, every J815 deep sleep was refused: apple_sep 30a600000.sep: sleep refused: irreversible request could not be staged (ENOENT).
Tested: J815 (MacBook Air 15" M5) at 6d5ec4dd45a5, in the batched candidate m0d16l14n1/linux j815/prtest-r6 8ad9358 (main 70381bd + 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 started in one burst, CPUs 0-9 online, suspend_stats success=1 fail=0; panel, NVMe, Wi-Fi and Bluetooth back; accelerometer/gyro rows equal before and after. The same tree without this commit: refused with irreversible request could not be staged (ENOENT). Regression: 0 SELinux denials (SELinux off), 0 failed units, 0 new kernel errors, 0 WARN/BUG/Oops.
Risk: two-way door. J815 only (one DT file). Both domains are always on, so nothing is powered down that wasn't before; the SEP binds as before.
Not yet: a second and third cycle in the same boot; a lid-close wake.

Details
  • The J815 SEP node came with the Touch ID series and named no power-domains; t8142-j813-sep.dtsi describes ps_sep/ps_gpio for J813 at the same offsets. The J815 ADT's PMGR lists GPIO at 0x380700000 + 0x120 and SEP at + 0xc00, the same as J813.
  • sep_pm_commit_prepare() (drivers/soc/apple/pm_shim.c) returns -ENOENT when the node has no first power domain; the sleep controller then refuses with SEP has no prepared irreversible sleep request.
  • The SEP driver on this boot was loaded with apple_sep.xart_writes=0 apple_sep.provision_keybag=0 on the command line (the Touch ID loader in our image requires them); the rest of the command line is the default plus pcie_aspm=off and the T8142 sleep opt-ins apple_sleep.deep=1 nvme_apple.sleep_untested=1 appledrm.s2r_untested=1.
Evidence

Without this commit (same tree otherwise, boot d0f910e8):

[  224.483265] PM: suspend entry (deep)
[  224.627943] apple_sep 30a600000.sep: sleep refused: irreversible request could not be staged (ENOENT)
[  224.677680] PM: suspend exit

With it (boot 7791e409):

[  212.652347] PM: suspend entry (deep)
[  213.335659] apple-sleep: wake: 9 cores started in one burst; stop/sys/e/p now 0/0/0/0
[  213.335659] Timekeeping suspended for 24.624 seconds
[  213.351826] apple-sleep 380700000.sleep-controller: wake source: NUB.SPMI0.SW3
[  214.182656] PM: suspend exit
sleep 1: rc 0, '9 cores started in one burst' x1, 9 secondaries, online 0-9, suspend_stats fail 0

The SEP driver stages its sleep request for the commit on the SEP's
PMGR word, which it finds through the node's first power domain. The
J815 node named none, so every deep sleep was refused with "irreversible
request could not be staged (ENOENT)".

Describe the GPIO (+0x120) and SEP (+0xc00) words from the J815 ADT,
both always on, and name them on the SEP node, as J813 does.

Signed-off-by: Nick <[email protected]>
@m0d16l14n1

Copy link
Copy Markdown
Contributor Author

Row on the next candidate, which adds #3130 (Bluetooth quiesce on J815), at this head 6d5ec4dd45a5 unchanged.

Candidate: m0d16l14n1/linux j815/prtest-r6 8ad9358 = main 70381bd with these PR heads merged unchanged: #2384 f9d03e8, #2385 b1c3392, #2192 c5daf57, #2193 8be9e73, #3123 227c89b, #3124 1a272ce, #3125 4ad71b8, #3129 6d5ec4d, #3130 76bf36c, plus the open J815 PRs. Stage 2: aura main 508390223 + aura#391/#165/#363. Command line: default + pcie_aspm=off apple_sleep.deep=1 nvme_apple.sleep_untested=1 appledrm.s2r_untested=1 apple_sep.xart_writes=0 apple_sep.provision_keybag=0.

One timed deep sleep and wake: Timekeeping suspended for 24.464 seconds, 9 cores started in one burst, CPUs 0-9, suspend_stats success=1 fail=0; panel, NVMe, Wi-Fi and Bluetooth back.

Regression on the same boot (6aaae3d9, after the wake): 0 SELinux denials (SELinux off), 0 failed units, 0 new kernel errors vs the previous boot, 0 WARN/BUG/Oops. The Bluetooth errors on the earlier boot are gone.

@github-actions github-actions Bot added area:bringup Area from CODEOWNERS (bot) door:two-way Revertible or not, from Merge risk (bot) labels Nov 25, 2026
@github-actions

github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Merge readiness at 6d5ec4dd: not ready yet

Check Detail
CI at head no failing: pr-text / pr-text
Review ok approved by DjDeveloperr
Requested changes ok none
Hardware row at head ok in the PR body at 6d5ec4dd
Conflicts ok none
PR text ok Risk: two-way · . J815 only (one DT file). Both domains are always on, so nothing is powered down that wasn't before; the SEP binds as before.

Areas: area:bringup

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

@github-actions github-actions Bot added the ci-failing A check failed at the PR head (bot) label Nov 25, 2026
@m0d16l14n1

Copy link
Copy Markdown
Contributor Author

J815 (MacBook Air 15" M5) row at 6d5ec4dd45a5 unchanged: PASS.

Candidate: m0d16l14n1/linux j815/prtest-r7 d70fd05 = main a60fef7 with these PR heads merged unchanged: #2384 f9d03e8, #2385 b1c3392, #2192 c5daf57, #2193 8be9e73, #3123 822a1dd, #3124 1a272ce, #3125 4ad71b8, #3129 6d5ec4d, #3130 76bf36c, plus the open J815 PRs (r6 + #3123's new head). Stage 2 as on r6. Command line: default + pcie_aspm=off apple_sleep.deep=1 nvme_apple.sleep_untested=1 appledrm.s2r_untested=1 apple_sep.xart_writes=0 apple_sep.provision_keybag=0 apple_sleep.t8142_wake_s=0 (the last one turns off the timed PMU wake, so the sleep lasts until a key).

One deep sleep with no timer, woken by a key on the built-in keyboard after about 10 minutes (boot 9325546c): Timekeeping suspended for 603.654 seconds, 9 cores started in one burst, CPUs 0-9 online, suspend_stats success=1 fail=0; the wake source is the built-in keyboard/trackpad. Panel, NVMe, Wi-Fi (up 5 s after the wake) and Bluetooth (LE mouse still connected, 0 TX/RX errors, exec 2 / IPC 2) back.

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.

@DjDeveloperr
DjDeveloperr merged commit 34bdf71 into aurora-silicon:main Nov 25, 2026
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:bringup Area from CODEOWNERS (bot) ci-failing A check failed at the PR head (bot) door:two-way Revertible or not, from Merge risk (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants