Repository navigation
arm64: dts: apple: t6020-j414s: Enable deep sleep by default - #4228
Merged
Merged
Conversation
Allow the per-board boolean property apple,sleep-tested in apple,t6020-sleep.yaml, matching apple,t8140-sleep.yaml. Signed-off-by: DjDeveloperr <hey@djdev.me>
Add apple,sleep-tested to J414s's &sleep node so deep sleep is offered and selected by default on J414s without apple_sleep.deep=1 or apple_sleep.untested_commit=1, while keeping the opt-ins on untested T6020 boards (J416s, J474s). Signed-off-by: DjDeveloperr <hey@djdev.me>
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
DjDeveloperr
commented
Dec 3, 2026
DjDeveloperr
left a comment
Contributor
Author
There was a problem hiding this comment.
Frontier review at ae70c2bc1293: good to merge.
- Scope is right. Only J414s gets deep sleep by default. J416s and J474s also include
t6020.dtsi'sapple,t6020-sleepnode, and they keep the opt-ins until they have their own rows. This replaces #4227, which would have flipped all three. - The driver side is already on main:
s->untested = soc->untested && !apple,sleep-tested. J613 and J615 use the same switch. - The binding has
additionalProperties: false, so the yaml entry is needed. Checked locally with dtschema 2026.9 (hosteddt-checkswas still queued):dt-doc-validateon the new yaml is clean. The J414s sleep node from the PR body, withapple,sleep-tested, validates clean against it. The same node fails against main's binding ('apple,sleep-tested' does not match any of the regexes), so this PR's binding change is what makes it pass. - Hardware: the c772 4/4 qualify (1 s2idle + 3 committed deep sleeps in one boot) ran with
untestedoff on J414s. That's the same driver state this property gives the board, so it covers this head. The J414s has since gone back to its owner, so later T6020 rows come from peers.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Add
apple,sleep-tested;to J414s's&sleepnode inarch/arm64/boot/dts/apple/t6020-j414s.dts(matchingt8122-j613.dts/t8122-j615.dtsand the per-board DT opt-in pattern indrivers/soc/apple/sleep.c) and documentapple,sleep-testedinDocumentation/devicetree/bindings/soc/apple/apple,t6020-sleep.yaml(matchingapple,t8140-sleep.yaml).sleep-t6020.h,Kconfig, andsleep-test.care untouched, so J416s and J474s keep theapple_sleep.deep=1/apple_sleep.untested_commit=1opt-ins until they have their own hardware rows.All follow-ups from #3999 review (
6175485736) are closed onmain:ebfc4f60bdd1).AUTO_ENABLEwake-poll timeout (sep 0x1000030f (-110)->(0)) fixed by soc: apple: sleep: Skip T6020 SEP PS_ACTUAL poll when AUTO_ENABLE is set #4218 (merged ase7e65987fbf6).s2idlewith defaultappledrm.s2r_untested=1(internal panel + both external DCPs) qualified below.Replaces #4227.
Tested
ae70c2bc1293:scripts/checkpatch.pl --strict --git HEAD~2..HEAD: 0 errors, 0 warnings, 0 checks on both commits (384b2d91084aandae70c2bc1293).make ARCH=arm64 LLVM=1 W=1 apple/t6020-j414s.dtb: clean on/soc/sleep-controller@28e080000.arch/arm64/boot/dts/apple/t6020-j414s.dtbnode dump (dtc -q -I dtb -O dts,fdtgetnot installed on build host):dt-validateis not installed on the build host; CIdtbs_checkcovers schema validation.Mac14,9, M2 Pro 10-core, T6020, OS firmware 27.2,m1n1/boot.binsha256196da4c690882ac64a70932e2dbb5affa0828e533117c975633e1b6705a9bd38):apple,sleep-testedDT property path itself (s->untested = s->soc->untested && !of_property_read_bool(..., "apple,sleep-tested")) is already proven on J613/J615 (t8122). Because the lab J414s stays on stock for physical pickup, no extra Stage 2 DTB boot was run atae70c2bc1293; the 4/4 J414s qualification row below onmain c77250fb4a9dexercises the exact J414s deep-sleep ands2idlepaths enabled byapple,sleep-tested;.7.3.0-j414s-qual-c772(main c77250fb4a9d, treea27800eeb800, build ID06dd9b583c8d98644179c91acc7fb402d629a978, Image sha2569ef2ec2b0a1eeee22d2c4f9f57513bfc7de906e6c13e7d7de832c9860dc5f271, stock config + DTB, withapple_sleep.deep=1 apple_sleep.untested_commit=1).1cb03ed8-85e9-4c73-a4b0-4d24252fb624, Apple SoC Watchdog + systemd dead-man timer armed and disarmed cleanly.suspend_stats = 4/0, zero resets,BAD_LINES = 0, taint unchanged4 -> 4):s2idle(rtcwake -d /dev/rtc0 -m freeze -s 15) with defaultappledrm.s2r_untested=Y(omitted from/proc/cmdline, sysfs parameter readY;389c00000.dcp,289c00000.dcp, and315c00000.dcpbound):GPU held for sleep: submitted=2083 completed=2083 pending=0->GPU released after sleep: running=Ok(0) pending=0; post-wake panel117/500,eDP-1 connected/enabled/On,kwin_wayland3024x1964,kscreen-doctor --dpms off/on(Off bl=0 -> On bl=117),dEQP-VK.api.smoke.*8/8, PCIe identical (0dead), NVMeO_DIRECTrc=0, Wi-Fiwld0up.rtcwake -d /dev/rtc0 -m mem -s 20) after Vulkan GPU load (dEQP-VK.api.smoke.*8/8pre-sleep):boot object resumes 0 -> 1,sep 0x1000030f (0), both PCIe portslink back, PWREN and PERST# cycled as at probe,apple_sepback, GPU fw 27.2 back in7457 us(pending=0); post-wakedEQP-VK.api.smoke.*8/8, timed audio48 kHz 2.199 s / 44.1 kHz 2.100 s(rc=0), panel117/500, PCIe identical (0dead), NVMeO_DIRECTrc=0, Wi-Fi up.rtcwake -d /dev/rtc0 -m mem -s 20) after internal-panel DPMS off/on (Off bl=0 -> On bl=117pre-sleep):boot object resumes 1 -> 2,sep 0x1000030f (0), both PCIe portslink back, PWREN and PERST# cycled as at probe,apple_sepback, GPU fw 27.2 back in3350 us(pending=0); post-wakedEQP-VK.api.smoke.*8/8, timed audio48 kHz 2.197 s / 44.1 kHz 2.084 s(rc=0), panel117/500, PCIe identical (0dead), NVMeO_DIRECTrc=0, Wi-Fi up.rtcwake -d /dev/rtc0 -m mem -s 20, consecutive):boot object resumes 2 -> 3,sep 0x1000030f (0), both PCIe portslink back, PWREN and PERST# cycled as at probe,apple_sepback, GPU fw 27.2 back in3040 us(pending=0); post-wake DPMSOff bl=0 -> On bl=117,dEQP-VK.api.smoke.*8/8, timed audio48 kHz 2.197 s / 44.1 kHz 2.071 s(rc=0),apple_sepliveSEP_SEAL_UNSEAL_OK bytes=226, panel117/500, PCIe identical (0dead), NVMeO_DIRECTrc=0, Wi-Fi up.7.3.0-47.fc45.aurora.aarch64,boot b41bdc32-3f5e-4715-b01b-bf3cf76e8569).work/j414s-qual-c772-20261203/(SHA256SUMS).Risk
Two-way. Removing
apple,sleep-tested;fromt6020-j414s.dts(or passingmem_sleep_default=s2idle) reverts J414s tos2idledefault. Scoped strictly to J414s; J416s and J474s remain opt-in.Not yet
ae70c2bc1293withoutapple_sleep.*args was run because the lab J414s is parked on stock for pickup; theapple,sleep-testedproperty path is proven on J613/J615 and the J414s sleep path is qualified 4/4 above.