Skip to content

arm64: dts: apple: t8112-j473-fw27: keep the GFX domain through system sleep - #3038

Merged
RyanTheTide merged 1 commit into
integration/aurorafrom
m2gpu/j473-fw27-gfx-retained
Nov 24, 2026
Merged

RyanTheTide merged 1 commit into
integration/aurorafrom
m2gpu/j473-fw27-gfx-retained

Conversation

@RyanTheTide

@RyanTheTide RyanTheTide commented Nov 24, 2026 •

Copy link
Copy Markdown

Problem

On macOS 27 system firmware, the J473's GPU firmware (27.2) keeps running through suspend-to-idle. Without apple,sleep-retained, the GFX domain is gated under it, and the J473 resets at the first s2idle on a GPU desktop.

Change

Add t8112-j473-fw27, the J473 with macOS 27 system firmware. It includes t8112-j473.dts and sets apple,sleep-retained on ps_gfx, as #2614 does for t8112-j413-fw27. Runtime PM is unchanged, and a GFX domain that is already off stays off. The compiled DTB differs from t8112-j473.dtb only by that property.

Testing

  • Build: the new DTB compiles. Decompiled, it differs from t8112-j473.dtb by exactly one line, apple,sleep-retained; under ps_gfx. checkpatch is clean. dt-checks run in CI here.
  • J473 (M2 mini, macOS 27 system firmware, GPU firmware 27.2), GNOME desktop on the GPU (drm/asahi: render on the G14 firmware-27.2 runtime #3031), default command line:
    • With a Stage 2 whose embedded J473 device tree carries exactly this property: s2idle 3/3 (15 s RTC wake) on the merged drm/asahi: render on the G14 firmware-27.2 runtime #3031 test kernel. Before that, 1/1 and 3/3 on earlier render lab kernels.
    • Each wake kept the same GNOME Shell process, and vkcube and the Vulkan triangle passed after it. The boot-time check confirmed the property on the live GFX domain.
    • Without the property (earlier render lab kernels): the J473 reset at the first s2idle, 2/2.

Still to run

Row details

Assisted-by: LLM (Claude:Opus 5.5)

…m sleep

On macOS 27 system firmware the J473's GPU firmware (27.2) keeps running
through suspend-to-idle, as on the J413. With the GFX domain gated under
it, the J473 reset at the first s2idle on a GPU desktop (2/2). With the
domain kept on through system sleep, the same desktop resumed 4/4 with
the GPU still rendering after each wake.

Add t8112-j473-fw27, the J473 with macOS 27 system firmware, and set
apple,sleep-retained on its ps_gfx as t8112-j413-fw27 does. Runtime PM
is unchanged, and a GFX domain that is already off stays off.

Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
@RyanTheTide

Copy link
Copy Markdown
Author

MERGETRAIN6 source review at 970588310858. Blocking: none in the DT change. It adds one retention property to the existing J473 tree and puts that output in the normal build. The a2 result shows that the equivalent property keeps the active GPU through three RTC wakes. It used a prior Stage 2 with the property already embedded.

Please include the compiled DTB hash from this head in the combined J473 row and confirm the default Stage 2 selects it. If #2715 is chosen instead, qualify the same suspend case with that driver vote and use a single retention mechanism for the final boot.

Assisted-by: LLM (Codex)

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

Formal adversarial §1–§6 pre-PR review at live head 970588310858ba182bc9b785a9c922db2a979556 (checked against live integration/aurora 5746ef8a5afd).

Checklist Audit (§1–§4, §6)

  • §1 No model gating: Pass (with coordination note). Follows the existing t8112-j413-fw27.dts macOS 27 board-DTB pattern in integration/aurora rather than adding driver chip/fw gates. Non-blocking coordination note: open PR #2715 (drm/asahi: hold GPU power domain across suspend-to-idle) dynamically vetoes ps_gfx power-off while GPU firmware is active; keep a single retention mechanism once #2715 / #2614 are decided.
  • §2 Production-ready / DT correctness: Pass. arch/arm64/boot/dts/apple/t8112-j473-fw27.dts cleanly includes t8112-j473.dts and sets apple,sleep-retained; on &ps_gfx (consumed by drivers/pmdomain/apple/pmgr-pwrstate.c:443,951), and arch/arm64/boot/dts/apple/Makefile adds t8112-j473-fw27.dtb in sorted order.
  • §3 Safety: Pass. No hardcoded safety limits or weakened protections.
  • §4 Clean-room & Attribution: Pass. Single commit 970588310858 has human author/committer (Ryan Murray <ryan@aurorasilicon.org>) and human Signed-off-by: only; zero AI commit trailers; Assisted-by: disclosed in PR body.
  • §6 Naming & CI: Pass. Clean naming; CI dt-checks and host-tests are both SUCCESS.

Blockers (§5)

  1. No exact-head hardware verification on compiled t8112-j473-fw27.dtb from 970588310858: The reported J473 s2idle rows ran on a prior Stage 2 with the property pre-embedded and on earlier #3031/render lab kernels rather than the DTB compiled from this PR's head 970588310858 (also noted in the MERGETRAIN6 comment). Please boot J473 with the compiled t8112-j473-fw27.dtb from 970588310858 (reporting its DTB hash and kernel/build ID).
  2. Incomplete default-cmdline §5 regression tuple: The row reports 0 GPU fault lines and 0 SELinux denials, but omits failed systemd units (0 failed units) and new kernel errors (0 new kernel errors), as well as a baseline default-config s2idle check on J473 (matching the bar on #2614).

Assisted-by: LLM (Gemini 4 Neon)

@RyanTheTide

Copy link
Copy Markdown
Author

J473 row at 970588310858ba182bc9b785a9c922db2a979556. The signed 7.3.0-aurora-m2combo2 trial at eb39ac47c4e0 contains this PR head. Its Stage 2 735f11c86f88 embeds t8112-j473-fw27.dtb with SHA-256 57b467dd41c7170be992e11d835f98db907d5b44bc4aa323b1e340a502792b0c, verified against the packaged DTB. The running firmware 27.2.0 tree reported apple,sleep-retained on the GFX power domain. On the default kernel command line, accelerated GL and Vulkan returned after 3/3 short RTC wakes. The focused CTS subset recorded 384 pass, 0 fail and 248 unsupported. No GPU faults or SELinux denials were recorded. The saved F45 fleet85 boot was restored and checked Enforcing with zero failed units and an empty next entry.

This covers the exact DTB and live retention. The trial archive did not record a complete failed-unit snapshot and kernel error comparison on the candidate itself. Please include both in the next capture, together with the saved-config RTC baseline. Separate default GPU protection review remains open.

Assisted-by: LLM (Codex)

@RyanTheTide

Copy link
Copy Markdown
Author

J473 combined hardware row at 970588310858. J473 booted on the default command line with the signed combined kernel adec412c0223 and Stage 2 735f11c86f88. GNOME used the G14G GPU, Vulkan CTS recorded 384 passes and 248 unsupported cases with zero failures, and the same session and Vulkan smoke returned across 3/3 short suspend cycles. The candidate recorded zero GPU faults and zero failed units. The embedded J473 firmware-27 DTB is SHA-256 57b467dd41c7170be992e11d835f98db907d5b44bc4aa323b1e340a502792b0c. The live GFX domain reports apple,sleep-retained. The combined candidate logged 32 kernel err-level messages versus 15 on the saved control, so the GPU success counts are reported with that difference. Combined run and source receipt

Assisted-by: LLM (Codex)

@RyanTheTide
RyanTheTide merged commit e29cecd into integration/aurora Nov 24, 2026
2 checks passed
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.

2 participants