Skip to content

soc: apple: sleep: T8142: drop the t8142_wake_s test parameter - #3735

Merged
RyanTheTide merged 1 commit into
mainfrom
gates/sleep-t8142-wake
Dec 1, 2026
Merged

RyanTheTide merged 1 commit into
mainfrom
gates/sleep-t8142-wake

Conversation

@RyanTheTide

Copy link
Copy Markdown
Contributor

What: remove the apple_sleep.t8142_wake_s test 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.o and drivers/mfd/macsmc.o with arm64 defconfig + asahi.config, LLVM=1, W=1: 0 warnings, same as main b2cd21f. 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 (needs UCLAMP_TASK), apple-sleep-soc-data 14/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=N gets 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 rtcwake needs the PMU alarm cells described for the SMC RTC in t8142-j813-power.dtsi (rtc-macsmc supports them; the J813/J815 node has only rtc_offset today); separate change.

Details

One commit, soc: apple: sleep: T8142: drop the t8142_wake_s test parameter (3+/9-): the parameter, its use in t8142_alarm_prepare() and the comment that described it. t8142_alarm_counter stays (the debug note prints it). git grep t8142_wake_s is empty afterwards (no tools or tests used it in-tree).

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>
@RyanTheTide
RyanTheTide requested review from a team as code owners December 1, 2026 05:00

@aurora-silicon-review aurora-silicon-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

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.

@RyanTheTide
RyanTheTide merged commit d685d13 into main Dec 1, 2026
9 of 35 checks passed
@RyanTheTide
RyanTheTide deleted the gates/sleep-t8142-wake branch December 1, 2026 06:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant