Repository navigation
arm64: dts: apple: t8142-j815: Give the SEP its power domains - #3129
Conversation
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]>
|
Row on the next candidate, which adds #3130 (Bluetooth quiesce on J815), at this head Candidate: One timed deep sleep and wake: Regression on the same boot ( |
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
|
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: 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 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 started in one burst, CPUs 0-9 online,suspend_statssuccess=1 fail=0; panel, NVMe, Wi-Fi and Bluetooth back; accelerometer/gyro rows equal before and after. The same tree without this commit: refused withirreversible 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
power-domains;t8142-j813-sep.dtsidescribesps_sep/ps_gpiofor J813 at the same offsets. The J815 ADT's PMGR lists GPIO at0x380700000 + 0x120and SEP at+ 0xc00, the same as J813.sep_pm_commit_prepare()(drivers/soc/apple/pm_shim.c) returns-ENOENTwhen the node has no first power domain; the sleep controller then refuses withSEP has no prepared irreversible sleep request.apple_sep.xart_writes=0 apple_sep.provision_keybag=0on the command line (the Touch ID loader in our image requires them); the rest of the command line is the default pluspcie_aspm=offand the T8142 sleep opt-insapple_sleep.deep=1 nvme_apple.sleep_untested=1 appledrm.s2r_untested=1.Evidence
Without this commit (same tree otherwise, boot
d0f910e8):With it (boot
7791e409):