Repository navigation
soc: apple: sleep: offer deep sleep for early-context SoCs as for the rest - #2960
aronvandepol wants to merge 1 commit into
Conversation
… 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)
There was a problem hiding this comment.
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:
- §4 Attribution (hard blocker): Commit
18c2925b459524180084eda27f43934a1bc4aee0contains anAssisted-by: LLM (Claude:Opus 5.5)trailer in the commit message itself. Per §4, commits must carry human author/committer identity and humanSigned-off-by:only (zero AI trailers in commits); keep theAssisted-by:disclosure at the end of the PR description instead. - §5 Evidence & CI (blocker):
statusCheckRollupis 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 indrivers/soc/apple/sleep-test.cverifyingapple_sleep_early_ops.valid(both tested and untestedearly_contextprofiles, matchingapple_sleep_ops.valid) and runapple_soc_sleepKUnit (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_contextprofiles; 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.
DjDeveloperr
left a comment
There was a problem hiding this comment.
Verdict: FINISH, then merge at 18c2925b4595
Blockers:
- The commit carries an
Assisted-by:trailer. Fix:git commit --amend, remove it, force-push. - 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.
Superseded by the review at 18c2925
|
This branch conflicts with |
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
|
Closing: |
apple_sleep_early_opssets.valid = suspend_valid_only_mem, so an early-context profile listsdeepin/sys/power/mem_sleepwhether or not it is tested. Every other path asksapple_sleep_valid(), which hidesdeepfor an untested profile unlessapple_sleep.deep=1is given.No early-context profile on
integration/aurorais 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.owithW=1onintegration/auroraa4b51cd, 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