Skip to content

soc: apple: sleep, nvme, drm/apple: T8142: deep sleep by default - #3135

Merged
RyanTheTide merged 8 commits into
aurora-silicon:mainfrom
m0d16l14n1:j815/t8142-deep-default
Dec 1, 2026
Merged

RyanTheTide merged 8 commits into
aurora-silicon:mainfrom
m0d16l14n1:j815/t8142-deep-default

Conversation

@m0d16l14n1

@m0d16l14n1 m0d16l14n1 commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

What: make deep sleep the default on T8142 (M5): no more apple_sleep.deep=1, apple_sleep.untested_commit=1, nvme_apple.sleep_untested=1 or appledrm.s2r_untested=1 on the command line. Until now a plain systemctl suspend on an M5 went to s2idle, and with deep=1 alone every sleep stopped at a dry run. The T8142 paths behind those opt-ins now run full deep sleeps and wakes on J815, and on J813 in the runs behind #2384.
Tested: J815 (MacBook Air 15" M5) at a8f7cec16bf6, in the batched candidate m0d16l14n1/linux j815/prtest-r8 7b4bbe9, with no sleep words on the command line: PASS. Defaults as booted: mem_sleep s2idle [deep], "deep sleep is the default", deep=N untested_commit=N, nvme_apple.sleep_untested=N, appledrm.s2r_untested=Y ("firmware stop enabled"). A plain systemctl suspend with Wi-Fi connected committed (10 coprocessors stopped), stayed down for 185.3 s and woke on a key/trackpad touch: 9 cores in one burst, CPUs 0-9, panel back on the first frame, Wi-Fi reconnected, suspend_stats success=1 fail=0. Regression: 0 SELinux denials (SELinux off), 0 failed units, 0 new kernel errors after the wake, 0 WARN/BUG/Oops.
Risk: two-way door; T8142 only, in effect J813 and J815. J704 is unchanged: it has no sleep-controller node, so there is no deep sleep and no NVMe stop (pm_suspend_via_firmware() is never set), and its DCP node has no apple,display-power, so its firmware keeps running. Every opt-in is still a parameter: appledrm.s2r_untested=0, nvme_apple.sleep_untested for other controllers, and mem_sleep_default=s2idle gives the old sleep state.
Not yet: a J813 row at this head. J704 and other T8142 boards without a sleep node are untouched. On main alone, J815's system-sleep paths still need #2384 (hardware keys in place of the J813 gate) and its N1 needs #2385 + the Alpha handshake default (stacked PR on #2385) + #3130. The timed wake is a separate PR (apple_sleep.t8142_wake_s default 0).

Details

Commits:

  1. soc: apple: sleep: T8142: offer deep sleep by default: untested did two jobs. It gated the opt-ins (deep never the default, a dry run unless untested_commit=1), and it also turned on what a SoC with derived data needs anyway: the PMU scratch step notes (the T8142 PMU alarm step reads its compare and counter with them), the last-WFI stub set-up and power-gate report at probe, and the KUnit debug-switch rule. Those move to a new derived flag; untested keeps only the opt-ins; T8142 is derived and no longer untested. A T8142 sleep then runs exactly the steps it ran with both parameters set. sleep-test.c expects derived and not untested for T8142.
  2. nvme: apple: T8142: stop ANS for deep sleep by default: drops .sleep_untested from the T8142 hardware data (same stop values as T8132); the parameter stays for any controller still marked untested.
  3. drm/apple: dcp: T8142: stop the firmware for sleep by default: appledrm.s2r_untested defaults to 1. It covers the internal DCP and the external ones on firmware 27.0 (the firmware condition is unchanged); a deep sleep needs every display coprocessor stopped.
  4. arm64: dts: apple: t8142-j813-j815-sleep: Drop the dry-run notes: comments only.

Merges with #2384: conflicts in dcp.c comments and the sleep.c SoC table (keep #2384's .smc_notice_after_peers = true next to .derived = true). Whichever merges second needs a small rebase; the batched candidate above has it resolved.

Evidence

Candidate: m0d16l14n1/linux j815/prtest-r8 7b4bbe9 = j815/prtest-r7 d70fd05 (main a60fef7 + #2384 f9d03e8, #2385 b1c3392, #2192 c5daf57, #2193 8be9e73, #3123 822a1dd, #3124 1a272ce, #3125 4ad71b8, #3129 6d5ec4d, #3130 76bf36c and the open J815 PRs, unchanged) + j815/t8142-no-timed-wake 50bc7fa + j815/t8142-deep-default a8f7cec + j815/centauri-alpha-sleep-default f63bd68.
Command line, with no sleep words: console=tty0 user4k=on pcie_aspm=off idle=nop arm64.nowfxt plus the image's root/ESP words, apple_sep.xart_writes=0 apple_sep.provision_keybag=0 (removed from main, logged as unknown and ignored) and aurora.untested_commit=0 aurora.alphasleep=0 (stop the test initramfs setting the two opt-ins, so the kernel defaults are what run).

Boot 53a3b9b0:

apple-sleep: deep sleep is the default: boot object resumes 0
apple-dcp 286e00000.dcp: firmware stop enabled (appledrm.s2r_untested)
PM: suspend entry (deep)
apple-sleep: 10 coprocessors up and stopped
apple-sleep: T8142 PMU alarm after the timer: 0 (counter 21165559, compare 21158909)
apple-sleep: wake: 9 cores started in one burst; stop/sys/e/p now 0/0/0/0
Timekeeping suspended for 185.292 seconds
apple-sleep: back from sleep, boot object resumes 0 -> 1
apple-sleep: wake source: MTP.DOCK.CHANNELS.AP0.IRQ
apple-sleep: the radio's PCIe link trained again after the wake
apple-dcp 286e00000.dcp: wake: first new frame, backlight back with it
PM: suspend exit

The boot before it (same build, fd81f884) also committed both sleeps it was given, but they woke after 0.35 s and 0.63 s with an SMC USB-C plug wake. With nothing plugged in, one port controller was flapping between "disabled" and "no connection" about twice a second, each flip a plug event, after a liquid-detection read at probe returned "unavailable". It was quiet after a reboot. That is a tipd issue outside this PR; it gets its own report.

T8142's sleep data is marked untested: deep sleep is offered only with
apple_sleep.deep=1 and never as the default, and every sleep stops at a
dry run unless apple_sleep.untested_commit=1. Full deep sleeps and wakes
now run on J813 and J815 (MacBook Air 13" and 15" M5).

The same flag also turns on what a SoC with derived data wants anyway:
the step notes in PMU scratch (which the T8142 PMU alarm step reads its
compare and counter with), the T8142 last-WFI stub set-up at probe and
the probe's power-gate report, and the KUnit rule for the debug switch.
Split those out as 'derived', keep 'untested' for the opt-ins only, and
mark T8142 derived and no longer untested. A T8142 sleep then runs the
same steps as with both parameters set, and deep is the default sleep
state unless mem_sleep_default= picks another.

Signed-off-by: Nick <[email protected]>
T8142's ANS stop for a deep sleep (T8140's values, as T8132 runs them)
was behind nvme_apple.sleep_untested=1 because it had never run there.
It now runs through full deep sleeps and wakes on J813 and J815 (MacBook
Air 13" and 15" M5) with the same values, so drop the opt-in for T8142.
The parameter stays for a controller whose path is still untested.

Signed-off-by: Nick <[email protected]>
The DCP firmware stop on T8142 (derived power words, firmware 27.0) was
behind appledrm.s2r_untested=1, for the internal DCP and for the external
ones. It runs through DPMS off and full deep sleeps and wakes on J813 and
J815 (MacBook Air 13" and 15" M5), and a deep sleep needs every display
coprocessor stopped. Default the parameter to on; =0 keeps the firmware
running as before. The firmware 27.0 condition is unchanged.

Signed-off-by: Nick <[email protected]>
The sleep controller's comments still say the T8142 sleep never ran on
an M5 and stops at a dry run unless asked. Both boards now run full deep
sleeps and wakes, and the driver offers deep sleep by default.

Signed-off-by: Nick <[email protected]>
@m0d16l14n1
m0d16l14n1 requested review from a team as code owners November 25, 2026 07:33
@github-actions github-actions Bot added area:bringup Area from CODEOWNERS (bot) area:display Area from CODEOWNERS (bot) area:platform Area from CODEOWNERS (bot) blast:m5 Macs affected, from Merge risk (bot) ci-failing A check failed at the PR head (bot) door:two-way Revertible or not, from Merge risk (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) labels Nov 25, 2026
@github-actions

github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Merge readiness at 71864112: not ready yet

Check Detail
CI at head no failing: kunit, apple-build, dt-checks, host-tests, source, pr-text / pr-text
Review no needs one approving review from Core or Omarchy Mac (not the author)
Requested changes no requested by satchlj
Hardware row at head ok comment at 71864112
Conflicts ok none
PR text ok Risk: two-way · T8142 only, in effect J813 and J815. J704 is unchanged: it has no sleep-controller node, so there is no deep sleep and no NVMe stop (pmsuspendviafirmware() is never set), and its DCP node has no apple,display-power, so its firmware keeps running. Every opt-in is still a parameter: appledrm.s2runtested=0, nvmeapple.sleepuntested for other controllers, and memsleepdefault=s2idle gives the old sleep state.

Areas: area:bringup, area:display, area:platform

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

@satchlj satchlj left a comment

Copy link
Copy Markdown
Member

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 a8f7cec16bf6
Blockers:

  1. In drivers/gpu/drm/apple/dcp.c:516, flipping the shared module parameter static bool s2r_untested = true also silently enables dcp_s2r_ext_capable() (dcp.c:9373-9375) for apple_dcp_hw_t8142_dcpext (dcp.c:10955-10956, marked TEST: firmware 27.2 link release, gated by appledrm.s2r_untested) by default without any external-display sleep test. Follow the same pattern used in nvme/host/apple.c and soc/apple/sleep.c in this PR: keep s2r_untested default false for still-untested paths (t8142_dcpext), and promote apple_dcp_hw_t8142 (firmware 27.0) on its own flag/default instead.
    Checked: full diff across sleep.c, sleep-test.c, nvme/host/apple.c, dcp.c, dcp-internal.h, and t8142-j813-j815-sleep.dtsi, plus all s2r_untested and s2r_ext callers in dcp.c
Evidence
  • drivers/soc/apple/sleep.c (splitting .derived from .untested while leaving sleep_untested_commit false) and drivers/nvme/host/apple.c (clearing .sleep_untested on apple_nvme_t8142_hw while leaving sleep_untested false) cleanly isolate T8142 default-on promotion without flipping unrelated opt-in gates.
  • In drivers/gpu/drm/apple/dcp.c, however, s2r_untested is shared between apple_dcp_hw_t8142 (internal panel, dcp.c:8049-8050) and dcp_s2r_ext_capable() (dcp.c:9373-9375), which gates apple_dcp_hw_t8142_dcpext (.s2r_ext = true, dcp.c:10955-10956). Setting static bool s2r_untested = true turns on that experimental external-display S2R path by default despite the PR only testing the internal panel.
  • Note also that leaving .s2r_untested = true on apple_dcp_hw_t8142 means dcp.c:10560-10561 (!dcp->hw.s2r_untested || of_machine_is_compatible("apple,j813")) still skips dcp_s2r_suspend() on J815 on main until #2384 lands; clearing .s2r_untested (with a separate opt-out or firmware-27.0 check) solves both issues cleanly.

@github-actions github-actions Bot added the changes-requested A reviewer requested changes (bot) label Nov 25, 2026
@m0d16l14n1

Copy link
Copy Markdown
Contributor Author

afaik j815/j813 was tested with deep sleeping while external screens were on

@satchlj satchlj left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Verdict: MERGE at a8f7cec16bf6

Blockers: none

Checked: diff, callers, tests, CI, hardware row

Evidence
  • drivers/soc/apple/sleep.c and drivers/soc/apple/sleep-test.c: splitting soc->derived from soc->untested resolves the earlier apple_sleep_test_known_profiles / apple_sleep_test_words mismatch cleanly while keeping PMU scratch step notes, probe power-gate reporting, and the derived debug-switch KUnit rule active for T8142 and removing only the deep-by-default and dry-run opt-in gates.
  • drivers/nvme/host/apple.c and drivers/gpu/drm/apple/dcp.c: dropping .sleep_untested on apple_nvme_t8142_hw and flipping appledrm.s2r_untested default to true (preserving opt-out =0) match the verified T8142 deep-sleep path without affecting J704 or other SoCs.
  • Hardware row at exact head a8f7cec16bf6 on J815 (MacBook Air 15" M5) covers plain systemctl suspend with no sleep cmdline overrides (suspend_stats success=1 fail=0, 0 failed units, 0 new kernel errors).
  • CI: 27/27 latest check runs passed with 0 active and 0 failed checks.

@github-actions github-actions Bot removed changes-requested A reviewer requested changes (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) labels Nov 25, 2026

@satchlj satchlj left a comment

Copy link
Copy Markdown
Member

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 a8f7cec16bf6

Blockers:

  1. Restoring the request-changes hold on a8f7cec16bf6 (the earlier approval on this same commit was posted in error with no new commits pushed): flipping the shared module parameter static bool s2r_untested = true in drivers/gpu/drm/apple/dcp.c:516 still enables dcp_s2r_ext_capable() (dcp.c:9373-9375) for apple_dcp_hw_t8142_dcpext by default without a recorded external-display deep-sleep hardware row at head. Keep s2r_untested default false for still-untested paths and promote the tested apple_dcp_hw_t8142 internal-panel path explicitly (matching the sleep.c and nvme/host/apple.c pattern in this PR), or add a verified external-display deep-sleep hardware test row at head and verify J815 behavior at dcp.c:10560-10561 where .s2r_untested = true remains set.

Checked: commit history at a8f7cec16bf6, drivers/gpu/drm/apple/dcp.c, drivers/gpu/drm/apple/dcp-internal.h, and PR thread comments.

Evidence
  • Head commit remains a8f7cec16bf6 with no commits pushed since the earlier review.
  • drivers/gpu/drm/apple/dcp.c:516: static bool s2r_untested = true; enables dcp_s2r_ext_capable() (apple_dcp_hw_t8142_dcpext) globally while apple_dcp_hw_t8142 keeps .s2r_untested = true (dcp.c:10852).
  • The follow-up comment mentions informal recollection of external-screen sleep testing on J813/J815, without a verified hardware test row or SHA.

@github-actions github-actions Bot added changes-requested A reviewer requested changes (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) labels Nov 25, 2026
@gig3m

gig3m commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

J813 (MacBook Air 13" M5) row at 50bc7fab53cb (#3134) and a8f7cec16bf6 (#3135), in m0d16l14n1/linux j815/prtest-r8 7b4bbe9 plus one local display-format patch (XRGB on the primary plane, for Hyprland). No sleep words on the command line: PASS.

  • Defaults as booted: mem_sleep s2idle [deep], "deep sleep is the default", deep=N untested_commit=N t8142_wake_s=0, nvme_apple.sleep_untested=N, appledrm.s2r_untested=Y.
  • Two plain systemctl suspends, internal panel only, Wi-Fi connected, woken by a key/trackpad touch (wake source MTP.DOCK.CHANNELS.AP0.IRQ). Each one: deep entry, 10 coprocessors stopped, PMU compare left as it was, 9 cores started in one burst, the radio's PCIe link retrained.
    • 20 s.
    • 4 min 48 s: no wake at 30 s.
  • After each: Wi-Fi reconnected (3/3 pings over Wi-Fi), Bluetooth powered, panel back. suspend_stats success=2 fail=0, 0 failed units, 0 kernel errors after the wakes, 0 WARN/BUG/Oops.

Not tested: external displays across a sleep (the DCPEXT point in the review), a lid-close sleep.

Assisted-by: LLM (Claude:Opus 5.5)

@gig3m

gig3m commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

J813 (MacBook Air 13" M5) external-display row at a8f7cec16bf6, for the DCPEXT point in the review: same tree as above (j815/prtest-r8 7b4bbe9 plus the local XRGB plane patch), no sleep words on the command line, and a Stage 2 whose loader adds aura #435 (router AP tuning) and #254 so the USB4 hosts probe on this kernel. PASS.

  • A 1920x1080@60 display on the front USB-C port, DisplayPort alt mode through DCPEXT (506e00000.dcp, DP-1), beside the internal panel. Not a USB4 tunnel.
  • Plain systemctl suspend, deep, 5 min 12 s, woken by a key (wake source MTP.DOCK.CHANNELS.AP0.IRQ), PMU compare left as it was, 10 coprocessors stopped.
  • DCPEXT at suspend, before the CPUs went down: unplug, shutdown_link_gated, dcp_dptx_disconnect(port=0). At the wake: RTKit initialized again, dcp_hotplug() connected:1 valid_mode:1, and the compositor had DP-1 back at 1920x1080@60 next to eDP-1.
  • Wi-Fi and Bluetooth back, 0 failed units, 0 WARN/BUG/Oops.
  • AFK service DCPDPService admission failed: -19 after the wake also appears when the display is first plugged in on this boot, so it isn't from the sleep.

Not tested: a display on the rear port, a USB4-tunnelled display, more than one sleep with the display attached.

Assisted-by: LLM (Claude:Opus 5.5)

@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 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.

main added T8122 deep sleep with .untested. In this branch .untested
covers only the opt-in gates (deep sleep not the default, the dry run
before the commit). The PMU step notes, the probe's power-gate report and
the debug-switch test rule moved to .derived. Give T8122 both flags so it
keeps every behaviour it had on main, and check in the known-profiles test
that T8142 is derived and tested while T8122 is derived and untested.

Signed-off-by: Nick <[email protected]>
@m0d16l14n1

Copy link
Copy Markdown
Contributor Author

@satchlj on the DCPEXT blocker: gig3m posted a J813 external-display deep-sleep row at a8f7cec16bf6, with no sleep words on the command line and appledrm.s2r_untested=Y as the default: #3135 (comment). A 1920x1080@60 display on DP alt mode through DCPEXT (DP-1) sat beside the internal panel through a plain systemctl suspend: deep for 5 min 12 s, DCPEXT unplugged and its link gated at suspend, RTKit back at wake, and the compositor had DP-1 at 1920x1080@60 again. That is the external-display row the review asked for, so the shared default stays true for both T8142 DCPs.

Updated to 1f21b8d3c46d (normal merge of main, no force push):

  • 95ef9380a211 merges main. The only conflict was the probe block in sleep.c: main's pwrgate report now sits under derived, and main's dry-run, commit and deep-default uses keep keying on untested.
  • 1f21b8d3c46d fixes something the merge brought in. main added T8122 with .untested, and in this branch .untested no longer carries the PMU notes, the probe report or the debug-switch test rule. T8122 now sets .derived and .untested, so it behaves exactly as on main. The known-profiles KUnit check now expects T8142 derived and tested, and T8122 derived and untested.
  • sleep.o (with APPLE_SOC_SLEEP_KUNIT_TEST=y), nvme/host/apple.o and dcp.o build with W=1 and no new warnings.

Could you take another look?

@github-actions github-actions Bot added ci-failing A check failed at the PR head (bot) merge-conflict Conflicts with the base branch (bot) and removed merge-conflict Conflicts with the base branch (bot) ci-failing A check failed at the PR head (bot) labels Nov 26, 2026

@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: FINISH, then merge at 1f21b8d3

Blockers:

  1. Branch is CONFLICTING (DIRTY) with main. Forward-merge main (no force push) to resolve the conflict cleanly.
  2. CI at 1f21b8d3 had 19 cancelled jobs (apple-build and KUnit suites); re-run CI to green after merging main.
  3. Resolve/confirm the open change-request on drivers/gpu/drm/apple/dcp.c:516 (s2r_untested = true default also enabling apple_dcp_hw_t8142_dcpext; confirm that the J813 DP alt-mode external-display row holds on the conflict-resolved head or decouple apple_dcp_hw_t8142_dcpext if unintended).

Checked:

  • drivers/soc/apple/sleep.c, sleep-t8122.h, sleep-test.c: splitting soc->derived from soc->untested keeps PMU scratch notes and debug-switch test exemptions intact for derived profiles while removing the untested gate on T8142 and keeping T8122 derived = true, untested = true.
  • drivers/nvme/host/apple.c and arch/arm64/boot/dts/apple/t8142-j813-j815-sleep.dtsi: clean removal of sleep_untested on apple_nvme_t8142_hw and matching DT comment updates.
  • Hardware rows: J815 and J813 deep-sleep rows (plus J813 external-display row) posted at a8f7cec1; no AI attribution, no Apple material, no private serials, human Signed-off-by on all commits.
Evidence
  • Head: 1f21b8d3 (base: main, mergeable: CONFLICTING, +43/-31 across 7 files).
  • Code changes in 1f21b8d3 cleanly address the T8122 derived/untested KUnit distinction.

@RyanTheTide

Copy link
Copy Markdown
Contributor

Thanks for keeping this current, @m0d16l14n1. We forward-merged main into this branch (29f0873). The only conflict was comment text in drivers/gpu/drm/apple/dcp.c. We kept main's wording, marked appledrm.s2r_untested as default on, and kept your s2r_untested = true with "(default 1)" in the parameter description. No code changed.
New head: 29f0873. Tests: dcp.o, nvme/host/apple.o and soc/apple/sleep.o build for arm64 (LLVM=1). In run-host-tests.py --only sleep, 35/35 passed. In --only dcp, 64/65 passed; the apple-dcp suite passed 88/99, and its 11 failures were all compile/run timeouts from the fixed 120 s per-case limit on a heavily loaded buildbox, not assertion failures.
One question before merge: your description says J815's system-sleep paths on main still need #2384. With deep sleep now the default, what does a J815 running main plus this PR alone do on a plain suspend? If it needs #2384, we'll land that first. Still needed after that: a CI re-run at this head and App review.

@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: FINISH at 29f0873

Checked: The merge keeps the new default intact and the conflict was in the explanatory comment. The driver-wide default still applies wherever s2r_untested is set, including the T8142 external-DCP path.

Blockers: Show the default suspend and wake path on the integrated J815 tree or require its sleep dependency before landing. Record J813 external-display deep wake with the default configuration against the merged head, or keep that path opt-in. Complete hosted CI.

@github-actions github-actions Bot added needs-hw-row No hardware row at the PR head (bot) ci-failing A check failed at the PR head (bot) and removed ci-failing A check failed at the PR head (bot) merge-conflict Conflicts with the base branch (bot) labels Nov 29, 2026
@github-actions github-actions Bot removed the ci-failing A check failed at the PR head (bot) label Nov 30, 2026
@m0d16l14n1

Copy link
Copy Markdown
Contributor Author

@RyanTheTide on your question: yes, a J815 on main with this PR alone needs #2384. Without it the J815's deep sleep was refused at the display step (dcp didn't stop 0x10/0xcc, two coprocessors still running); with #2384 the DCPs stop and come back. Please land #2384 first.

Updated to 718641126e0f: a normal merge of current main (42169a0), no conflicts, no force push. The host-tests failure at 29f08736 was g17-compute-owed-stamp-tests from the older base. At this head, run-host-tests.py --only sleep passes 36/36 and --only g17-compute-owed-stamp 18/18. Locally the apple-dcp suite fails the same 14 cases on main itself, so that one is left to hosted CI.

@gig3m, if you have a moment: could you repeat your J813 external-display deep-sleep row (#3135 (comment)) at 718641126e0f? Same steps; the review asks for it at the merged head. Thanks!

A J815 row at this head, in a J815 candidate with #2384, comes next.

@github-actions github-actions Bot removed the needs-hw-row No hardware row at the PR head (bot) label Nov 30, 2026

@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: HOLD at 71864112

Blockers:

  • Prerequisite #2384 is still open; as confirmed in the thread, without #2384 landed first a J815 on main with this PR alone refuses default deep sleep at the display stop step (dcp didn't stop 0x10/0xcc). Land #2384 first.
  • Hosted pull_request CI workflows (Apple build and KUnit, Apple DRM KUnit, Device tree checks, Host tests, SEP source checks, and pr-text) are completed/action_required awaiting maintainer workflow approval for this fork PR; only pr-readiness has executed at 71864112.
  • Pending current-head 71864112 hardware rows: J815 deep sleep (with #2384) and J813 external-display deep sleep (dcpext) to clear needs-hw-row and resolve the open CHANGES_REQUESTED from @satchlj on defaulting appledrm.s2r_untested = true.

Checked:

  • Clean forward-merge of main (42169a041546) across all 7 files (t8142-j813-j815-sleep.dtsi, dcp-internal.h, dcp.c, nvme/host/apple.c, sleep-t8122.h, sleep-test.c, sleep.c).
  • Verified .derived vs .untested split in drivers/soc/apple/sleep.c keeps T8122 both .derived and .untested, removes .untested on T8142 while retaining PMU scratch notes / probe power-gate report / derived KUnit rule, and leaves J704 untouched.
Evidence
  • Workflow runs at 718641126e0f58e7934b98977157ddc936bc1361: pr-readiness (pull_request_target) succeeded; all pull_request build/test/lint workflows are completed/action_required.
  • Code diff is clean; holding on #2384, fork CI execution, current-head J815/J813-dcpext hardware rows, and @satchlj change-request resolution.

@satchlj

satchlj commented Nov 30, 2026

Copy link
Copy Markdown
Member

Verdict: FINISH, then merge at 718641126e0f. Re-checked against the current merge bar (better than before, and nothing that worked breaks).

Blocker:

  1. Merge order. With soc: apple: sleep, mfd: macsmc, drm/apple: Select the T8142 sleep paths by hardware, not J813 #2384 still open, a J815 on main plus this PR goes to deep sleep by default and the sleep is refused at the display stop (dcp didn't stop 0x10/0xcc, as reported above). On the base, the same plain suspend uses s2idle. Land soc: apple: sleep, mfd: macsmc, drm/apple: Select the T8142 sleep paths by hardware, not J813 #2384 first; then this merges as it is.

Dropped: the DCPEXT ask is answered by the J813 external-display deep-sleep row at a8f7cec16bf6; a repeat at the merged head is a check after merge, not a blocker. Nothing else is open from me.

@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 718641126e0f

Converts this App's earlier review at the same head to an approval under the 12-01 merge bar (better than before and doesn't break; block only on a shown failure). No code blocker was found in it. The merge gate (a row on one Mac at this head + fast CI) is tracked by pr-readiness, not held here.

Checked: - Clean forward-merge of main (42169a041546) across all 7 files (t8142-j813-j815-sleep.dtsi, dcp-internal.h, dcp.c, nvme/host/apple.c, sleep-t8122.h, sleep-test.c, sleep.c).

  • Verified .derived vs .untested split in drivers/soc/apple/sleep.c keeps T8122 both .derived and .untested, removes .untested on T8142 while retaining PMU scratch notes / probe power-gate report / derived KUnit rule, and leaves J704 untouched.

Follow-ups (not blocking): Merge prerequisite #2384 first; follow-ups: fork CI approval, J815/J813 dcpext deep-sleep rows, satchlj's open CR

@RyanTheTide

Copy link
Copy Markdown
Contributor

Merging at 718641126e0f (B2 merge train, 12-01 merge bar). Approval at this head: aurora-silicon-review[bot]. Row: the hardware row at 7186411 that the readiness check found (PR body or comment). CI: linux train L3 = main 429e7e1 + 28 approved PRs (candidate 45c2fa4b): Apple driver compile pass, Apple DTBs W=1 pass, planned KUnit dcp-fabric/dcp-topology/dcp-display/macsmc/spi-hid-apple/mt7932/asahi/sep pass; ave failed to build only because of #3153 (unused static helper under -Werror; #3153 held out) and passes with #3153 reverted from the candidate; host tests apple-dcp and apple-scaler-recovery pass. The rest of the hosted run is queued behind the backlog. Revert: git revert -m 1 <merge commit>.

@RyanTheTide
RyanTheTide merged commit 2ff6e49 into aurora-silicon:main Dec 1, 2026
10 of 37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:bringup Area from CODEOWNERS (bot) area:display Area from CODEOWNERS (bot) area:platform Area from CODEOWNERS (bot) blast:m5 Macs affected, from Merge risk (bot) changes-requested A reviewer requested changes (bot) ci-failing A check failed at the PR head (bot) door:two-way Revertible or not, from Merge risk (bot) needs-review No approving review from Core or Omarchy Mac yet (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants