Skip to content

soc: apple: sleep: offer deep sleep for early-context SoCs as for the rest - #2960

Closed
aronvandepol wants to merge 1 commit into
aurora-silicon:mainfrom
aronvandepol:apple-sleep-early-valid
Closed

aronvandepol wants to merge 1 commit into
aurora-silicon:mainfrom
aronvandepol:apple-sleep-early-valid

Conversation

@aronvandepol

@aronvandepol aronvandepol commented Nov 23, 2026 •

Copy link
Copy Markdown

apple_sleep_early_ops sets .valid = suspend_valid_only_mem, so an early-context profile lists deep in /sys/power/mem_sleep whether or not it is tested. Every other path asks apple_sleep_valid(), which hides deep for an untested profile unless apple_sleep.deep=1 is given.

No early-context profile on integration/aurora is untested today, so nothing changes for a shipped SoC: T6050 is qualified and still offers deep sleep. The first untested one would be the T6030 profile in the draft #2689, and this is commit 2 of that draft on its own, as suggested there.

Build: drivers/soc/apple/sleep.o with W=1 on integration/aurora a4b51cd, 0 warnings. Not booted. Our J516s test kernels ran an earlier port of the T6030 profile without this change, so it has not run on hardware.

Written with Claude Code (Claude Opus 5.5); I reviewed and tested it.
https://claude.ai/code/session_016eHgyJKRZBHRz41DTDHS7m

… rest

apple_sleep_early_ops took suspend_valid_only_mem, so an untested
early-context profile would list deep in /sys/power/mem_sleep without
apple_sleep.deep=1. None is on this tree yet; the T6030 draft (aurora-silicon#2689)
would be the first. Use apple_sleep_valid(), which answers the same for
every tested SoC and keeps deep hidden for an untested one unless it is
asked for.

Signed-off-by: Aron van de Pol <hello@aronvandepol.com>
Assisted-by: LLM (Claude:Opus 5.5)

@DjDeveloperr DjDeveloperr left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Formal §1–§6 pre-PR checklist review at 18c2925b459524180084eda27f43934a1bc4aee0:

The code change itself (apple_sleep_early_ops.valid = apple_sleep_valid) is technically sound and actually tightens safety: on integration/aurora, the only early_context = true profiles today are t6050_sleep_soc (apple,t6050-sleep, J714s) and t6050_j716c_sleep_soc (apple,t6050-j716c-sleep, J716c), both qualified (.untested = false), so behavior on shipped SoCs is unchanged while any future untested early_context profile (e.g. T6030 in #2689) will no longer expose deep without apple_sleep.deep=1.

However, two checklist blockers prevent approval at 18c2925b4595:

  1. §4 Attribution (hard blocker): Commit 18c2925b459524180084eda27f43934a1bc4aee0 contains an Assisted-by: LLM (Claude:Opus 5.5) trailer in the commit message itself. Per §4, commits must carry human author/committer identity and human Signed-off-by: only (zero AI trailers in commits); keep the Assisted-by: disclosure at the end of the PR description instead.
  2. §5 Evidence & CI (blocker): statusCheckRollup is currently empty (no CI checks have run on this head) and the change has only been compile-tested (sleep.o), not booted or covered by a KUnit assertion. Please add a KUnit check in drivers/soc/apple/sleep-test.c verifying apple_sleep_early_ops.valid (both tested and untested early_context profiles, matching apple_sleep_ops.valid) and run apple_soc_sleep KUnit (or a T6050 boot/suspend check) once CI is green.
  • §1 No model gating: Pass.
  • §2 Production-ready: Pass.
  • §3 Safety: Pass (tightens gating for untested early_context profiles; no unsafe S2R path enabled).
  • §4 Clean-room & attribution: Fail (AI trailer in commit message).
  • §5 Evidence & CI: Blocked (no CI checks completed; no KUnit or hardware run).
  • §6 Naming: Pass.

Verdict: Request changes.

@github-actions github-actions Bot added area:platform Area from CODEOWNERS (bot) changes-requested A reviewer requested changes (bot) needs-hw-row No hardware row at the PR head (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) needs-template PR body lacks Tested or Risk (bot) labels Nov 24, 2026

@DjDeveloperr DjDeveloperr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Verdict: FINISH, then merge at 18c2925b4595

Blockers:

  1. The commit carries an Assisted-by: trailer. Fix: git commit --amend, remove it, force-push.
  2. Missing row: one early-context SoC at this head showing deep sleep offered, entered and resumed. I've approved the waiting CI runs.

Checked: thank you. No Apple material, no gates. apple_sleep_early_ops.valid = apple_sleep_valid matches the other SoCs and tightens which states are offered.

@DjDeveloperr
DjDeveloperr dismissed their stale review November 25, 2026 01:50

Superseded by the review at 18c2925

@github-actions github-actions Bot added the merge-conflict Conflicts with the base branch (bot) label Nov 25, 2026
@RyanTheTide

Copy link
Copy Markdown
Contributor

This branch conflicts with main now. When you push the fixes for the open review items, please merge main in with the same normal push (no force push). If we hear nothing within 24 hours, a maintainer will do the forward merge, but the review items still need you.

@github-actions github-actions Bot added merge-conflict Conflicts with the base branch (bot) and removed merge-conflict Conflicts with the base branch (bot) labels Nov 26, 2026
@github-actions

Copy link
Copy Markdown

Merge readiness at 18c2925b: not ready yet

Check Detail
CI at head ok 7 checks passed
Review no needs one approving review from Core or Omarchy Mac (not the author)
Requested changes no requested by DjDeveloperr
Hardware row at head no no line with the head SHA 18c2925b, a Mac and a result in the PR body or a comment
Conflicts no merge conflicts with main: merge it in (no force push)
PR text adopt when you next edit add a 'Tested:' line; a 'Risk:' line (door and Macs) (guide)

Areas: area:platform

Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels.

@aronvandepol

Copy link
Copy Markdown
Author

Closing: main already has this change. b43e2b08a1ef ("soc: apple: sleep: add T8122 deep sleep and resume", in through the T8122 S2R merge) sets .valid = apple_sleep_valid in apple_sleep_early_ops, with the same comment. Merging main into this branch leaves no diff, so there is nothing left to fix or test here. Thanks for the reviews.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:platform Area from CODEOWNERS (bot) changes-requested A reviewer requested changes (bot) merge-conflict Conflicts with the base branch (bot) needs-hw-row No hardware row at the PR head (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) needs-template PR body lacks Tested or Risk (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants