Skip to content

drm/apple: soft power-off firmware-27 internal panel on DPMS off - #3294

Merged
DjDeveloperr merged 3 commits into
mainfrom
feat/dcp-v27-dpms-panel-off
Dec 1, 2026
Merged

DjDeveloperr merged 3 commits into
mainfrom
feat/dcp-v27-dpms-panel-off

Conversation

@erikwb

@erikwb erikwb commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

What: Soft power-off firmware-27 internal panels on runtime DPMS off (using the DT-described display stage + plain A484(0)) and restore them on DPMS on (wake_expect + plain A484(1) + wake_present).
Tested: Live hardware at 4253a313b0ad on J716c (T6050) and J713 (T8132), plus offline/CI checks (hashes, commands, and full measurements in Evidence):

  • J716c (T6050, batched 3545ebecb76f, 1/4 blob-identical, 2/4 hunks-present, and dcp-v27-sleep.inc carrying three manually resolved adjacent additions with #3398): 3× DPMS off/on (dpmsStatus 0/1, 0 kernel warn/err lines; 3 DPMS-on a display-interface open failure firmware syslog lines; display re-enabled every time), pm_test=devices (2× freeze + 2× mem) and pm_test=platform (2× freeze) clean, 6-item smoke pass (aurora-peripherals.service warm-reboot baseline failure also on default/control). Caveat: real s2idle/deep did not run on 3545ebecb76f (apple-pmu-rtc cannot wake J716c unattended); earlier ac261293cd3f (byte-identical kernel files at 6aefc6058db0) passed 3/3 DPMS cycles (267–268 ms, 0 timeouts) and 2× s2idle + 2× deep S2R (lit and DPMS-off).
  • J713 (T8132, batched 76649338a1bc, 1/4 blob-identical, 3/4 hunks-present, default cmdline + panic=10): inactive-path regression check (dcp_v27_dpms_capable() inactive because t8132-j713 DT omits apple,sleep-display-stage-args), 3× DPMS off/on and s2idle resume clean, 8-item smoke pass (0 failed units, 0 AppArmor denials; 1 one-off brcmfmac ring line on 76649338a1bc, 0 times in the preceding 8 boots, no recurrence over 5× wlan0 down/up + 5× s2idle; attribution remains open).
  • Offline/CI checks at 4253a313b0ad: checkpatch.pl --strict (0/0/0), W=1 dcp.o compile (0/0), display-sleep-merge-tests.py (17/17), run-host-tests.py --only display (7/7), arm64 QEMU KUnit (display 167/168, topology 208/209, apple-dcp-fabric 117/117), and 20/20 unique GitHub CI checks pass.
    Risk: two-way door · Macs with firmware-27 internal display processors whose DT describes the display power-stage arguments (t6050-j714s-sleep-soc.dtsi for J714s/K116s, t6050-j716c-sleep-devices.dtsi for J716c), plus shared dcp.c PM/DPMS/unbind/shutdown paths across Apple Silicon Macs.
    Revert: git revert -m 1 the merge commit (or revert 4253a313b0ad and 6aefc6058db0); no DT, UAPI, Stage 2, or persistent on-disk state is modified, so rebooting returns firmware-27 internal panels to keeping the panel soft-powered across DPMS off.
    Not yet: Real manual-wake s2idle (and deep S2R) on J716c (T6050) at 4253a313b0ad (unattended RTC wake is unavailable because apple-pmu-rtc cannot wake J716c, so 3545ebecb76f covered pm_test=devices/platform only, while ac261293cd3f ran real s2idle/deep on the same kernel files at 6aefc6058db0); J714s merge-condition row (three DPMS off→on cycles, one s2idle and one deep from DPMS-off, wake timings, and zero timeouts — J713's inactive-path smoke does not exercise this behavior, and neither J714s nor K116s is present in the local lab); and untested Mac families (M1/J313, M2, M3, M4 Pro/Max).
Details
  • Selects runtime panel soft power-off by hardware/DT properties (dcp_v27_dpms_capable(): internal panel, adopt_live_session, firmware 27.0, default method profile, v27_methods, iomfb_v27_display_described()), with no board gate and no module parameter.
  • Serializes system PM transitions (v27_dpms_pm_suspend under s2r_prewarm_lock from dcp_platform_prepare() through dcp_platform_complete()) so DRM's suspend CRTC disable does not soft-off the panel before V27 deep sleep runs.
  • Preserves blanking on deep-sleep/teardown handoffs (present=false skips iomfb_v27_wake_present(), v27_keep_mode, and brightness.update), records v27_dpms_was_soft_off across deep sleep so an inactive panel is not relit on resume and returns to soft-off in complete(), and keeps an already soft-off panel off across s2idle while holding mailbox RX.
  • Runs the teardown handoff in dcp_comp_unbind() and dcp_platform_shutdown() while the IOMFB queue is still active, and keeps presentation paused on A484(0) timeouts or A484(1) recovery failures so software and firmware state stay in sync.
  • Overlapping open PRs in drivers/gpu/drm/apple/: #3300, #3502, #3552, and #3554 touch disjoint functions and paths; git merge-tree --write-tree origin/main HEAD (ee36fbdcd1c8 vs 4253a313b0ad) is clean.
Evidence
  • J716c (16-inch M5 Max, T6050, firmware 27.2) at 4253a313b0ad (2026-11-28 batched trial 3545ebecb76f, AC power, default command line):
    • Parity: 4253a313b0ad is an ancestor; 1/4 changed files blob-identical, 2/4 hunks-present, and drivers/gpu/drm/apple/dcp-v27-sleep.inc had three manually resolved adjacent additions with #3398 keeping both dcp_v27_dpms_* and dcp_v27_ext_idle_* function sets and both !CONFIG stubs unchanged.
    • Hashes: Image.gz SHA-256 d56efde4c7232208bd29d5c4e5890319e0050595dd4f4b1c3844df6656a08312, t6050-j716c.dtb SHA-256 d2f0db7a5026ae9cc4e1cff61dca38b4d1b363d47e5bad696ef65c7d715517e0, modules SHA-256 9d5782bcf02ea60a225278c9319431f902b495f6beb485d79d127c0fb2fccc92, one-shot aura-try Stage 2 SHA-256 b7d99286395ddd7dadccc6d9593f4bd55391d9e787af97c18b45f58688d9885d (default Stage 2 21edee972e1ff1718c6f41c32b91ee151afdc58cbb69f16f2f6a4d8d4c722170, default kernel bf2582ab357573db64031f39e7bc9d617eb574c6b221364ff417810bbddf4c87, default DTB ffe7604c98ad23849b2aff19eb161bec712f8b367a9bc87339fabb6d7dc1276c unchanged).
    • DPMS & platform suspend: 3× DPMS off (dpmsStatus 0, DRM disabled, all four dcpext controllers at power state 0) and on (dpmsStatus 1, DRM enabled), 0 kernel warn/err lines (each DPMS-on printed one DCP firmware syslog line reporting a display-interface open failure, 3 total; display re-enabled every time); pm_test=devices (2× freeze + 2× mem, mem_sleep=[s2idle]) and pm_test=platform (2× freeze) all rc=0, fail=0, eDP-1 restored. Real s2idle/deep was not run (rtcwake -d rtc1 -m no -s 5 confirmed apple-pmu-rtc cannot wake J716c unattended) and stays under **Not yet:**.
    • Smoke: eDP-1 3456x2234@120 enabled, 4 input devices, wlan0 0% loss, AppleJ716 + AppleJ716HPAI enumerated (speakerguardd-v2 active), Borealis Apple M5 Max (G17C B1) + vkcube --c 180 OK, 0 failed user units, 0 LSM denials, 0 Oops/BUG/fault; 1 warm-reboot baseline failed unit (aurora-peripherals.service, also fails on control and restored default); 40 err+ lines pre-existing vs 55-line default boot except PM: suspend debug and the 3 DPMS a display-interface open failure lines.
  • Second Mac family (shared dcp.c no-regression pass) at 4253a313b0ad — J713 (M4 MacBook Air, T8132, firmware 27.2, batched candidate 76649338a1bc, default cmdline + panic=10):
    • Parity: 4253a313b0ad is an ancestor; 1/4 files blob-identical and 3/4 (dcp-internal.h, dcp-v27-sleep.inc, dcp.c) carry all PR hunks (0 not provable).
    • Hashes: booted kernel image SHA-256 e8e9fd2813dd6347176d0e4a55a70d1c694bdab75817c3ab83c441c203140491, one-shot Stage 2 SHA-256 f7d4e2f7ebbfb423bd71f233f1aef7af0a39091b288a749d25f9250eb80adbfa, DTB ceacf1d413c651396f4c1dfd9fa27b15c710dd849e46c2753fcff0a23a6681c6.
    • Behaviour: dcp_v27_dpms_capable() inactive (t8132-j713 DT lacks apple,sleep-display-stage-args; function inlined), 0 V27 display stage and 0 V27 wake log lines; 3× DPMS off/on (dpmsStatus 0/1, DRM enabled), s2idle (rtcwake -d rtc1 -m freeze -s 20) resumed with eDP-1 enabled and dpmsStatus 1.
    • Smoke: eDP-1 2560x1664@60 enabled, MTP keyboard/trackpad enumerated, wlan0 0% loss, speakerguardd-v2 protected tone rc 0, Borealis Apple M4 (G16G B0) glmark2 5,099, 0 failed units, 0 AppArmor denials; 4 err+ lines: 3 baseline (AFK[ep:20], unsupported DFB layout 2560x1664, apple_sep notice) plus 1 one-off brcmfmac ring line recorded on 76649338a1bc (0 times in the preceding 8 boots on J713, no recurrence over 5× wlan0 down/up and 5× s2idle; attribution remains open).
  • Prior J716c (T6050) batched trial kernel ac261293cd3f vs baseline 16e42e07bef5 (default command line):
    • Byte-for-byte identity between ac261293cd3f and 4253a313b0ad across all three kernel files (git rev-parse): drivers/gpu/drm/apple/dcp-internal.h 25b170ea17f409752bd9aa377f50be18037cda72, drivers/gpu/drm/apple/dcp-v27-sleep.inc 8f7a4c489ce71f67775b763dc35e3ae5e591c37c, drivers/gpu/drm/apple/dcp.c f29675c5d2649b1e1a5399d17c56759900b11ecb.
    • Baseline 16e42e07bef5 (without panel soft-off or the four bundled power changes): BAAC coulomb counter (charge_counter, 15 s) at DPMS off (Wi-Fi PS on): 2,854 mW (dQ=3319 mC, V=12.911 V, med_pnow=2,865 mW).
    • Batched candidate ac261293cd3f (based on 8c6992db4b9f, bundling 6aefc6058db0 unchanged with 5242a4e0700a feat/dpxbar-t8142-common-rpm, 3bb25a5e6550 feat/j716c-dts-idle-power, 20df9351846a feat/t6050-ane-idle-poweroff, and 6125e3d724b0 feat/clpc-idle-deferrable-timers — merged): BAAC coulomb counter (charge_counter, 15 s) at DPMS off with panel soft-off (default-on, Wi-Fi PS on): 1,263 mW (dQ=1482 mC, V=12.790 V, med_pnow=1,266 mW) — -1,591 mW (-55.7%) measured difference between 16e42e07bef5 and ac261293cd3f (not isolated to panel soft-off alone because the two builds also differ outside the five bundled power changes).
    • 3× consecutive Hyprland DPMS off→on cycles: 267 ms, 268 ms, 267 ms, 0 timeouts.
    • Sleep matrix: s2idle (lit), s2idle (DPMS-off), deep S2R (lit), deep S2R (DPMS-off) — all 4/4 resumed cleanly (apple-sleep: idle words lowered 0xff (0 timed out)), 0 kernel errors.
  • Local verification at 4253a313b0ad:
    • ./scripts/checkpatch.pl --strict --git 8c6992db4b9f96e8ccf6182be9224fb77894f62c..HEAD: 0 errors, 0 warnings, 0 checks.
    • make O=_build_w1 ARCH=arm64 LLVM=1 W=1 drivers/gpu/drm/apple/dcp.o (defconfig + asahi.config, RUST disabled for C object check): 0 errors, 0 warnings.
    • python3 tools/asahi/display-sleep-merge-tests.py: PASS: 17 compiled merge-boundary runs, including runtime controls.
    • python3 -I tools/asahi/run-host-tests.py --only display: 7/7 passed.
    • ./tools/testing/kunit/kunit.py run --arch=arm64 --make_options LLVM=1: drivers/gpu/drm/apple/tests/display.kunitconfig (167 passed, 1 skipped for CONFIG_UCLAMP_TASK), drivers/gpu/drm/apple/tests/topology.kunitconfig (208 passed, 1 skipped for CONFIG_UCLAMP_TASK), drivers/gpu/drm/apple/tests/.kunitconfig (117 passed).
    • git merge-tree --write-tree origin/main HEAD (ee36fbdcd1c8 vs 4253a313b0ad): clean (51619e45769d2bbd4af8e4642f4c1bb50c65d7bd).
  • CI at 4253a313b0ad: gh pr checks reports 20/20 successful (apple-build, kunit, host-tests, all 15 KUnit * suites, pr-text run 46017633823 and 45892690462, readiness run 46076095745); an earlier concurrency-cancelled pr-text run (45892687169) on the same commit left a stale ci-failing label in the readiness bot's check-run rollup.

On firmware-27 internal display processors whose DT describes the display
power-stage arguments, soft DPMS off leaves the panel powered (~2.45 W
idle on J716c). Run the display stage + plain A484(0) soft power-off
sequence on runtime DPMS off while SYSTEM_RUNNING outside system PM
transitions, and restore the panel on DPMS on via display stage +
wake_expect + plain A484(1) + wake_present.

Serialize system PM transitions (prepare..complete) so DRM's suspend
CRTC disable does not soft-off the panel before V27 deep sleep runs,
preserve blanking on deep-sleep/teardown handoffs without replaying a
lit frame, keep an already soft-off panel powered off across s2idle
while holding mailbox RX, and keep presentation paused on A484(0)
timeouts or A484(1) failures so software and firmware state stay in
sync.

Signed-off-by: Erik Bourget <[email protected]>
@erikwb
erikwb requested review from a team as code owners November 26, 2026 18:17
@erikwb
erikwb requested review from Acelogic and malik-na November 26, 2026 18:17
@github-actions github-actions Bot added area:display 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 26, 2026
@github-actions

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Merge readiness at 6bfb9843: not ready yet

Check Detail
CI at head ok 24 checks passed
Review ok approved by DjDeveloperr, RyanTheTide
Requested changes ok none
Hardware row at head no no line with the head SHA 6bfb9843, a Mac and a result in the PR body or a comment
Conflicts ok not computed yet
PR text ok Risk: two-way · Macs with firmware-27 internal display processors whose DT describes the display power-stage arguments (t6050-j714s-sleep-soc.dtsi for J714s/K116s, t6050-j716c-sleep-devices.dtsi for J716c), plus shared dcp.c PM/DPMS/unbind/shutdown paths across Apple Silicon Macs. Revert: git revert -m 1 the merge commit (or revert 4253a313b0ad and 6aefc6058db0); no DT, UAPI, Stage 2, or persistent on-disk state is modified, so rebooting returns firmware-27 internal panels to keeping the panel soft-powered across DPMS off.

Areas: area:display, area:gpu

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

Update the dcp_platform_prepare() regex and stub dcp_v27_dpms_prepare()
after factoring deep_v27 out of the firmware-27 sleep condition.

Signed-off-by: Erik Bourget <[email protected]>
@erikwb
erikwb requested a review from DjDeveloperr as a code owner November 26, 2026 20:40
@github-actions github-actions Bot added the area:gpu Area from CODEOWNERS (bot) label Nov 26, 2026
RyanTheTide
RyanTheTide previously approved these changes Nov 27, 2026

@RyanTheTide RyanTheTide 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 at 4253a31: merge after one J714s row. The code is ready.

Blockers:

  1. Row on the second board this turns on. apple,sleep-display-stage-args is in t6050-j714s-sleep-soc.dtsi (J714s, K116s) and t6050-j716c-sleep-devices.dtsi, so the J714s and K116s get DPMS soft-off from their DTs as soon as this lands. If A484(1) fails there, dcp_v27_dpms_on_locked() marks the DCP crashed and the panel stays dark until reboot. One J714s row at this head is enough: 3x DPMS off -> on, 1x s2idle and 1x deep from DPMS-off, wake times, 0 timeouts. Your "Not yet" already names it; I am asking Dj for it, since he has a J714s.

Checked:

  • Selection is from hardware/DT data: internal panel, live-session adoption, both display-stage arg arrays in DT. fw_compat == DCP_FIRMWARE_V_27_0 picks the A484 interface, which only that firmware has, so it is a protocol choice, not a board gate. Every other Mac returns early in dcp_v27_dpms_capable(); the only unconditional change is clearing v27_dpms_was_soft_off in dcp_dpms_power_on().
  • State machine: a timed-out A484(0) is recorded as soft-off + uncertain and reconciled by A484(1) at the next enable or PM prepare. Deep sleep restores power without lighting a blanked panel (was_soft_off, then back to soft-off at complete). s2idle leaves a certain soft-off alone. Unbind and shutdown hand back a powered panel while the IOMFB queue still runs.
  • hold_for_sleep and release_after_sleep keep presentation paused for a soft-off panel.
  • Row validity: J716c ran kernel commit 6aefc6058db0, carried unchanged at the head (the head commit touches host tests only): 3/3 DPMS cycles in 267-268 ms, s2idle and deep from lit and from DPMS-off.

Follow-up: on an A484(1) failure, falling back to the existing DCP restart path would be kinder than leaving the panel dark.

@github-actions github-actions Bot removed the needs-review No approving review from Core or Omarchy Mac yet (bot) label Nov 27, 2026
@erikwb

erikwb commented Nov 28, 2026

Copy link
Copy Markdown
Contributor Author

@RyanTheTide Thanks for the review and approval at 4253a313b0ad. Keeping the head at 4253a313b0ad (clean git merge-tree against origin/main ee36fbdcd1c8, zero conflicts with #3300/#3502/#3552/#3554) and tracking the A484(1) fallback-to-restart idea as a follow-up PR.

Updated the PR body with **Revert:**, re-verified offline checks at 4253a313b0ad (checkpatch.pl --strict 0 errors/warnings, dcp.o W=1 0 warnings, display-sleep-merge-tests.py 17/17, run-host-tests.py --only display 7/7, and arm64 QEMU KUnit display 167/168, topology 208/209, apple-dcp-fabric 117/117), and added the live hardware evidence below:

  • J716c (T6050, batched 3545ebecb76f, dcp-v27-sleep.inc carrying three manually resolved adjacent additions with #3398 keeping both dcp_v27_dpms_* and dcp_v27_ext_idle_* function sets and !CONFIG stubs unchanged, Image.gz d56efde4c7232208bd29d5c4e5890319e0050595dd4f4b1c3844df6656a08312, Stage 2 b7d99286395ddd7dadccc6d9593f4bd55391d9e787af97c18b45f58688d9885d): 3× DPMS off/on (dpmsStatus 0/1, 0 kernel warn/err lines; 3 DPMS-on a display-interface open failure firmware syslog lines; display re-enabled every time), 2× freeze + 2× mem pm_test=devices and 2× pm_test=platform clean, 6-item smoke pass (aurora-peripherals.service warm-reboot baseline failure also on default/control). Real s2idle on J716c at 4253a313b0ad stays under **Not yet:** because apple-pmu-rtc cannot wake J716c unattended (prior ac261293cd3f ran s2idle/deep on the same kernel files at 6aefc6058db0).
  • J713 (T8132, batched 76649338a1bc, 1/4 blob-identical, 3/4 hunks-present, default cmdline + panic=10, kernel e8e9fd2813dd6347176d0e4a55a70d1c694bdab75817c3ab83c441c203140491, Stage 2 f7d4e2f7ebbfb423bd71f233f1aef7af0a39091b288a749d25f9250eb80adbfa): inactive-path smoke (dcp_v27_dpms_capable() inactive because J713 DT lacks apple,sleep-display-stage-args), 3× DPMS off/on and s2idle resume clean, 8-item smoke pass (0 failed units, 0 AppArmor denials; 1 one-off brcmfmac ring line recorded on 76649338a1bc, 0 times in the preceding 8 boots, no recurrence over 5× wlan0 down/up + 5× s2idle; attribution remains open).

Note on ci-failing: all 20 unique CI checks at 4253a313b0ad pass (pr-text runs 45892690462 and 46017633823, readiness 46076095745, apple-build, kunit, host-tests, and 15 KUnit * suites); the ci-failing label is from the earlier concurrency-cancelled pr-text run 45892687169 on the same commit.

Your J714s merge condition remains open under **Not yet:**: three DPMS off→on cycles, one s2idle and one deep from DPMS-off, wake timings, and zero timeouts on J714s (note J713's inactive-path smoke does not exercise this behavior, and neither J714s nor K116s is present in this lab), alongside real manual-wake s2idle/deep on J716c at 4253a313b0ad and untested Mac families (M1/J313, M2, M3, M4 Pro/Max).

@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 4253a31 after J714s qualification

Checked internal-panel capability admission, pause and queue settle, and timeout recovery before presentation resumes. J713 exercises the inactive path. The J714s DPMS, s2idle and deep-from-DPMS-off row remains due.

@github-actions github-actions Bot added the merge-conflict Conflicts with the base branch (bot) label Nov 29, 2026
Resolve the dcp_platform_prepare() conflict with main's sleep_cold_stopped
early return: keep the cold-stop check first, then the firmware-27 DPMS
prepare. A cold-stopped DCP (external firmware-26 path) has no running
firmware and is never DPMS-capable, and dcp_platform_complete() already
skips it, so prepare and complete stay paired.

Signed-off-by: Ryan Murray <[email protected]>

@RyanTheTide RyanTheTide 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 at 6bfb984: approve again. This head only merges main in: the PR's own changes are byte-identical to 4253a31 (196 changed lines, no conflict resolution), and the approval just dropped because of the push.

Blockers: none.

Still needed before merge: one J714s row at this head (3x DPMS off->on, 1x s2idle + 1x deep from DPMS-off, wake times, 0 timeouts, 0 failed units). J714s gets the soft power-off from t6050-j714s-sleep-soc.dtsi, and if A484(1) fails there the panel stays dark.

@RyanTheTide

Copy link
Copy Markdown
Contributor

I merged current main into the branch at 6bfb9843 (no rebase, your commits unchanged). The one conflict was in dcp_platform_prepare(): main added an early return for a cold-stopped DCP. I kept that check first, then your firmware-27 DPMS prepare. A cold-stopped DCP is the external firmware-26 path, which is never DPMS-capable, and dcp_platform_complete() on main already skips it, so prepare and complete stay paired. drivers/gpu/drm/apple/ builds with W=1 and no warnings, and display-sleep-merge-tests.py passes. Your hardware row still covers the code under test. Once CI is green and the review app has re-reviewed this head, it merges.

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

The forward merge preserves the cold-stopped early return ahead of the firmware-27 DPMS preparation. The matching completion path continues to skip cold-stopped pipelines. Keep hosted and hardware gates.

@RyanTheTide

Copy link
Copy Markdown
Contributor

@DjDeveloperr code-owner notice: the review app approved this forward-merged head. I'll merge it under the 6-point rule once CI is green at this head, no earlier than 1 h from now. Say hold here if you object.

@RyanTheTide

Copy link
Copy Markdown
Contributor

For the record: I'm dropping the J714s row as a merge condition. It has been open since 11-28 and neither J714s nor K116s is in our lab. The J716c rows cover the same T6050 path, and the J713 row covers the inactive path. The J714s/K116s DPMS row becomes a known-gap follow-up issue instead of blocking this.

@github-actions github-actions Bot removed the ci-failing A check failed at the PR head (bot) label Nov 30, 2026
@github-actions github-actions Bot added needs-hw-row No hardware row at the PR head (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) and removed merge-conflict Conflicts with the base branch (bot) labels Nov 30, 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.

Approved. The soft-off path runs only where dcp_v27_dpms_capable() holds (internal panel, firmware 27, display stage described in the DT), and every state change happens under s2r_prewarm_lock, which DPMS on/off, PM prepare/complete and unbind/shutdown all take. Rows at this head: J716c, J713's inactive path, and now J714s (M5 Pro), which ran the merge-condition row, kernel main 07cb39a2 + this PR. Three DPMS off/on cycles: 0 timeouts, every monitor back, DPMS off in 25–31 ms. Deep sleep from DPMS off entered and resumed with every display step returning 0, and the panel stayed off until DPMS on (316 ms). s2idle hangs on J714s regardless of this PR.

One number to watch, not a blocker: DPMS on took 1.81–1.83 s against 1.36–1.38 s on the J714s default kernel (7.3.0-m5-pr67, not plain main), so part of the ~0.45 s may be main rather than this change. A J716c DPMS-on timing with and without the PR would settle it.

@github-actions github-actions Bot removed the needs-review No approving review from Core or Omarchy Mac yet (bot) label Dec 1, 2026
@DjDeveloperr
DjDeveloperr merged commit 82b45a2 into main Dec 1, 2026
31 of 34 checks passed
@DjDeveloperr
DjDeveloperr deleted the feat/dcp-v27-dpms-panel-off branch December 1, 2026 06:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:display Area from CODEOWNERS (bot) area:gpu Area from CODEOWNERS (bot) blast:m5 Macs affected, from Merge risk (bot) door:two-way Revertible or not, from Merge risk (bot) needs-hw-row No hardware row at the PR head (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants