Repository navigation
soc: apple: sleep: T8142: drop the t8142_wake_s test parameter - #3735
Conversation
apple_sleep.t8142_wake_s overwrote the PMU's RTC compare with a time a given number of seconds after the commit. It was a bring-up knob for the J813/J815 sleep tests and has defaulted to 0 since linux#3134, which leaves the compare as the PMU has it. Remove it: the post-timer step now always writes back the compare it read, which is what every default boot already does. A timed wake for tests is the RTC's job (rtcwake), not a sleep-driver parameter. No change with the default command line. Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
There was a problem hiding this comment.
Verdict: MERGE at d2b8e2e
Checked: the full diff. With t8142_wake_s at its default 0 the compare was already written back as read. Removing the overwrite leaves t8142_alarm and t8142_alarm_counter exactly as the default path filled them. t8142_alarm_counter stays for the debug note. The comment matches the new behaviour.
Follow-ups: the RTC alarm cells for a timed wake via rtcwake on J813/J815 are a separate change, as the PR says. The merge gate still needs one T8142 deep-sleep row.
|
Merging at d2b8e2e under the 12-01 bar: one non-author approval + local proof while linux PR CI is ~19 h behind (B1-CI-REVIEW 17:30). Local proof: this head's own touched-object W=1 build + its KUnit/host tests (see body), plus all ten B1-GATES heads merged on main a29e/b2cd (57856a3b7327) build clean together (drivers/gpu/drm/asahi + apple, soc/apple, mfd, tipd, centauri, pmdomain: rc 0, no warning in a touched file). Boards without a row stay in Not yet; a regression gets a same-day revert. |
What: remove the
apple_sleep.t8142_wake_stest parameter. It overwrote the PMU's RTC compare with a time N s after the sleep commit, for the J813/J815 bring-up tests, and has defaulted to 0 (leave the compare alone) since #3134. The T8142 post-timer step now always writes back the compare it read, which is what every default boot already does. A timed wake for tests belongs to the RTC (rtcwake), not to a sleep-driver parameter. Audit gate (B1-GATES, section 3 MED, from #3134).Tested: no hardware row (T8142 boards are not in our fleet). Build/KUnit on the buildbox at
d2b8e2eb3f98:drivers/soc/apple/sleep.oanddrivers/mfd/macsmc.owith arm64 defconfig + asahi.config, LLVM=1, W=1: 0 warnings, same asmainb2cd21f. KUnit on arm64 QEMU (macsmc.kunitconfig +APPLE_SOC_SLEEP_KUNIT_TEST, on a test merge of this branch with the other two B1-GATES sleep/macsmc branches, 5af4bc20740c): 55 tests, 54 passed, 1 skipped (needsUCLAMP_TASK),apple-sleep-soc-data14/14 passed.Risk: two-way door; T8142 (J813, J815) deep sleep only. Default command line: no change (the parameter's default 0 is now the only behaviour). A command line that still passes
apple_sleep.t8142_wake_s=Ngets an "unknown parameter" note and sleeps until a key/lid/power button instead of timing out.Not yet: a J815 or J813 deep-sleep row at this head from their owners (@m0d16l14n1 J815; J813 owners per #3172/#2384). A timed wake on T8142 via
rtcwakeneeds the PMU alarm cells described for the SMC RTC int8142-j813-power.dtsi(rtc-macsmc supports them; the J813/J815 node has onlyrtc_offsettoday); separate change.Details
One commit,
soc: apple: sleep: T8142: drop the t8142_wake_s test parameter(3+/9-): the parameter, its use int8142_alarm_prepare()and the comment that described it.t8142_alarm_counterstays (the debug note prints it).git grep t8142_wake_sis empty afterwards (no tools or tests used it in-tree).