Repository navigation
soc: apple: sleep: Enable T6020 deep sleep by default - #4227
Closed
DjDeveloperr wants to merge 1 commit into
Closed
DjDeveloperr wants to merge 1 commit into
DjDeveloperr wants to merge 1 commit into
Conversation
Drop the .untested gate on t6020_sleep_soc so deep sleep is offered and selected by default on T6020 (M2 Pro) without apple_sleep.deep=1 or apple_sleep.untested_commit=1, and update the KUnit profile expectation and Kconfig help text. 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. |
Contributor
Author
|
Superseded by #4228 (per-board |
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
Drop
.untested = trueont6020_sleep_socindrivers/soc/apple/sleep-t6020.h, updateapple_sleep_test_known_profilesindrivers/soc/apple/sleep-test.cto expect!soc->untestedforapple,t6020-sleep, and updatedrivers/soc/apple/Kconfighelp text so T6020 (M2 Pro) deep sleep is offered and selected by default withoutapple_sleep.deep=1orapple_sleep.untested_commit=1.All follow-ups from #3999 review (
6175485736) are closed onmain(c77250fb4a9d):ebfc4f60bdd1) are onmain.AUTO_ENABLEwake-poll timeout (sep 0x1000030f (-110)->(0)) was 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) is qualified below.Tested
7b7afa6263a4:scripts/checkpatch.pl --strict --git HEAD~1..HEAD: 0 errors, 0 warnings, 0 checks (51 lines checked).ARCH=arm64 LLVM=1 W=1 drivers/soc/apple/sleep.owithCONFIG_APPLE_SOC_SLEEP_KUNIT_TEST=y: 0 warnings.Mac14,9, M2 Pro 10-core, T6020, OS firmware 27.2,m1n1/boot.binsha256196da4c690882ac64a70932e2dbb5affa0828e533117c975633e1b6705a9bd38):7.3.0-j414s-qual-c772(main c77250fb4a9d, treea27800eeb800, build ID06dd9b583c8d98644179c91acc7fb402d629a978, Image sha2569ef2ec2b0a1eeee22d2c4f9f57513bfc7de906e6c13e7d7de832c9860dc5f271, stock config + DTB).1cb03ed8-85e9-4c73-a4b0-4d24252fb624, Apple SoC Watchdog + systemd dead-man timer armed throughout 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(appledrm.s2r_untestedomitted from/proc/cmdline, sysfs parameter readY; internal389c00000.dcp+ external289c00000.dcpand315c00000.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/500eDP-1 On, 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/500eDP-1 On, 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_seplivekeyctltrusted-keySEP_SEAL_UNSEAL_OK bytes=226, panel117/500eDP-1 On, 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. Re-adding
.untested = true(or passingmem_sleep_default=s2idle) reverts T6020 tos2idledefault immediately. Scoped strictly tot6020_sleep_soc(apple,t6020-sleep); other SoCs are untouched.Not yet
7b7afa6263a4) has not yet been booted directly on hardware withoutapple_sleep.deep=1 apple_sleep.untested_commit=1; hardware qualification above ran on its exact parentc77250fb4a9dwith those flags enabled.