Repository navigation
arm64: dts: apple: t8132-j604: let the DCP power its display domains down - #4008
RyanTheTide merged 1 commit into
Conversation
…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>
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
DjDeveloperr
left a comment
There was a problem hiding this comment.
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 int8132-j713.dtsandt8132-j713-pmgr.dtsi, not int8132-j713-j715.dtsias the text says (#3629 moves them there).ps_disp_cpustaysdisabledin this tree. The M4 PMGR policy turns it on at boot, so that's fine. - What it turns on:
gate_capableon the internal DCP. Withappledrm.power_gate_msat 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 nonzeropower_gate_mspowers 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-dcpanddart-disp0are 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.dtshunks of #3988 and #1998. #3300 changesapple_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
left a comment
There was a problem hiding this comment.
ORCH5 merge sweep: passes the six-point gate (CI green at 338deb7, independent review approval by DjDeveloperr, no taint, no Stage 1/LocalPolicy change).
What: Wire the J604 internal display domains in
arch/arm64/boot/dts/apple/t8132-j604.dtsso the DCP can power them down when blanked and across suspend-to-RAM, matchingt8132-j713-j715.dtsi:&dcpto&pmc_disp0viaapple,pmc-interface;ps_disp_sys,ps_disp_fe, andps_disp_cpuapple,firmware-ownedandapple,consumer-switched, with theps_disp_cpuretention workaround;dcp_dart(42) anddisp0_dart(8).Related to #3300 and #3629.
Tested:
338deb79e9b(base53732c475cb):scripts/checkpatch.pl --strict: 0 errors, 0 warnings, 0 checks.make LLVM=1 ARCH=arm64 apple/t8132-j604.dtb: 0 errors, 0 warnings.apple,j604/apple,t8132, OS/system fw26.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 taint8196, 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.