Skip to content

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

Open
RyanTheTide wants to merge 1 commit into
integration/aurorafrom
m2gpu/j473-fw27-gfx-retained
Open

RyanTheTide wants to merge 1 commit into
integration/aurorafrom
m2gpu/j473-fw27-gfx-retained

Conversation

@RyanTheTide

@RyanTheTide RyanTheTide commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

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
Contributor 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
Contributor

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)

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