Skip to content

arm64: dts: apple: t8132-j604: let the DCP power its display domains down - #4008

Merged
RyanTheTide merged 1 commit into
aurora-silicon:mainfrom
espentrydal:feat/t8132-j604-dcp-power-domains
Dec 5, 2026
Merged

RyanTheTide merged 1 commit into
aurora-silicon:mainfrom
espentrydal:feat/t8132-j604-dcp-power-domains

Conversation

@espentrydal

Copy link
Copy Markdown
Contributor

What: Wire the J604 internal display domains in arch/arm64/boot/dts/apple/t8132-j604.dts so the DCP can power them down when blanked and across suspend-to-RAM, matching t8132-j713-j715.dtsi:

  • link &dcp to &pmc_disp0 via apple,pmc-interface;
  • mark ps_disp_sys, ps_disp_fe, and ps_disp_cpu apple,firmware-owned and apple,consumer-switched, with the ps_disp_cpu retention workaround;
  • set the J604 ADT clock-protection slices on dcp_dart (42) and disp0_dart (8).

Related to #3300 and #3629.

Tested:

  • At PR head 338deb79e9b (base 53732c475cb):
    • scripts/checkpatch.pl --strict: 0 errors, 0 warnings, 0 checks.
    • make LLVM=1 ARCH=arm64 apple/t8132-j604.dtb: 0 errors, 0 warnings.
  • Hardware (MacBook Pro 14" M4, apple,j604 / apple,t8132, OS/system fw 26.6.2, mBoot-18000.161.10, aura 1.0.0b18, Arch Linux ARM, 7.3.0-j604-dev+ carrying this commit): internal display probed cleanly across 6 consecutive boots and recovered cleanly across both short and 10.5-hour overnight firmware deep sleep (deep), kernel taint 8196, 0 failed units, 0 new kernel errors.

Risk: two-way door · J604 (MacBook Pro 14" M4) DT only.

Not yet: Standalone boot at this exact single-commit head 338deb79e9b.

…down

Wire the J604 internal display domains so the DCP can power them down
while blanked and across suspend-to-RAM, matching t8132-j713-j715.dtsi:
- link &dcp to &pmc_disp0 via apple,pmc-interface;
- mark ps_disp_sys, ps_disp_fe, and ps_disp_cpu firmware-owned and
  consumer-switched, with the ps_disp_cpu retention workaround;
- set the J604 ADT clock-protection slices on dcp_dart (42) and
  disp0_dart (8).

Signed-off-by: Espen Trydal <espen@trydal.io>
@espentrydal
espentrydal requested review from a team as code owners December 2, 2026 22:21
@github-actions github-actions Bot added area:bringup Area from CODEOWNERS (bot) blast:m4 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) needs-review No approving review from Core or Omarchy Mac yet (bot) labels Dec 2, 2026
@github-actions

github-actions Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

Merge readiness at 338deb79: not ready yet

Check Detail
CI at head ok 5 checks passed
Review ok approved by DjDeveloperr
Requested changes ok none
Hardware row at head no no line with the head SHA 338deb79, a Mac and a result in the PR body or a comment
Conflicts ok none
PR text ok Risk: two-way · J604 (MacBook Pro 14" M4) DT only.

Areas: area:bringup

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

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

Approve at 338deb79e9b9. J604 only.

  • The properties are the ones main has for the J713: apple,pmc-interface, the three consumer-switched states with the same retention words, and slices 42 and 8. On main they're in t8132-j713.dts and t8132-j713-pmgr.dtsi, not in t8132-j713-j715.dtsi as the text says (#3629 moves them there). ps_disp_cpu stays disabled in this tree. The M4 PMGR policy turns it on at boot, so that's fine.
  • What it turns on: gate_capable on the internal DCP. With appledrm.power_gate_ms at its default of 0, the domains go off only before a deep sleep. The J604 can't deep sleep on main yet, so a default boot changes very little. A nonzero power_gate_ms powers them down on every blank.
  • Slice numbers: 42 and 8 are the J713's values on main, and 42 is also T8132's in sleep.c. I couldn't confirm them for the J604 from a public file. The 26.6.2 restore device trees of the J604, J713, J715 and J773g don't have the slice property, nor do the 27.2.1 ones I looked at (J604, J713, J773g), so it must come from the live ADT. dart-dcp and dart-disp0 are otherwise the same on the J604 and J713 there. Please paste the two lines from your live ADT into the PR.
  • Related work: merges cleanly with main, #4009, #3629, #3300 and the t8132-j604.dts hunks of #3988 and #1998. #3300 changes apple_pmc_interface_consumer_check(), which this power-down asks first, so whichever of the two lands second should rerun the gate check below.
  • With #3629: the J604 still keeps s2idle as its default, because #3629 names a DCP without apple,display-power. This PR doesn't add that node, and the 26.6.2 path doesn't use it.

Checked on the merge with main b902937859ec: the J604 DTB builds and gains only these properties, the other five T8132 DTBs are identical, dt-validate matches main, checkpatch --strict is clean, and the full host tests pass on the series merged together (1028/1028).

Please don't merge on the approval alone. Still owed, J604 at this head: boot with the panel up, then appledrm.power_gate_ms=2000 and 10 DPMS off/on rounds. gate_cycles should go up each time with no power-down failed or quarantined line. Then one s2idle.

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

ORCH5 merge sweep: passes the six-point gate (CI green at 338deb7, independent review approval by DjDeveloperr, no taint, no Stage 1/LocalPolicy change).

@RyanTheTide
RyanTheTide merged commit 1da3411 into aurora-silicon:main Dec 5, 2026
6 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) blast:m4 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