Repository navigation
arm64: dts: apple: t8132-j773g: wire display-power for deep sleep - #4164
DjDeveloperr wants to merge 1 commit into
Conversation
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
|
Composition check on main J623 and J624: their DCP nodes stay disabled and the radio port still has no |
DjDeveloperr
left a comment
There was a problem hiding this comment.
Changes: keep commit 1 here (with the fixes below), move commit 2 to its own PR and hold it for rows. Reviewed 64e85454cfae, merged on main c09b61228e62 with #4031. No value here is wrong that I can find.
- Both commits have no
Signed-off-by(checkpatch error; the commit bodies are also one long line). Please sign them off when you split. - Commit 2 leaves the J604 half wired. It puts
apple,display-poweron every board'sdcp, which is whatsleep.capple_sleep_undescribed()takes as "the internal display can be stopped". Butps_disp_{sys,fe,cpu}(consumer-switched, retention words) stay int8132-j713-pmgr.dtsi, so on the J604ps_disp_cpuhas no retention words anddcp_s2r_layout_from_dt()refuses. With #4007 and #4009 but not #4008, deep becomes the J604's default and its internal DCP has no way to stop. Fix: #4008 first, then commit 2 on top. - Commit 2 also changes normal running, not only sleep. On 27.2 a USB-C dcpext with stop words is powered off when idle (
dcp_ext_idle_capable()), so the J715 gains that on both pipes, plus a deep sleep that is no longer refused by them. On 26.6.2 the J604 gains the idle stop (iomfb_m4.cext_idle_capable). The body should say so, and both need a row. Commit 1 turns the same idle stop on for the J773g's dcpext1. clkreq-gpiosdoes nothing on the J773g.t8132-j773g.dtsdeletesapple,managed-sidsfrompcie0, soapple_radio_register()returns at once, and that file is the only driver that uses the line. Please drop the property, or keep it as plain hardware description and change the comment, the commit text and the body: this isn't what brings Wi-Fi back here. (The pin is right: gpio0 pin 0xa0 in the J773g ADT. The binding allows it, and #4007 doesn't touch port00.)- Land commit 1 before #4007, or together. On the J773g the PCIe tunables are the only part
apple_sleep_undescribed()misses. #4007 alone makes deep the default there while both dcpexts still refuse it. - The body needs
Tested:andRisk:lines (pr-textfails).
Overlap. #4008 has no property in common with commit 2 except apple,pmc-interface and slices 42/8, with the same values; they merge cleanly. #4008 (espentrydal) should land first; commit 2 then drops those lines from t8132-j604.dts and credits it. #4009's ps_dispext* and slice lines become duplicates with equal values; its clkreq, wakeup-source and the J604 board parts stay needed. #4031's hunks merge cleanly; #4005 doesn't touch the DT; #3629 is merged.
Rows
- J773g, commit 1 + #4007 + #4031: cold boot with HDMI and USB-C; boot with only HDMI; plug a USB-C display after dcpext1 idles off;
deepx3 with both displays and once with none; Wi-Fi, Bluetooth and Ethernet back. The ship boot's DTB from this head counts: it differs from commit 1 alone only on the disabled internaldcp/dcp_dart/disp0_dart. - J715, commit 2, 27.2: boot, USB-C display plugged after idle,
deepx3 with and without it. - J604, commit 2 after #4008 and #4009: the same.
- J713: none, its tree is unchanged. J623/J624: a plain boot is enough, their DCP nodes stay disabled.
Per-board check and what ran
| Board | Commit 1 | Commit 2 | ADT here |
|---|---|---|---|
| J773g | 40 changes | 6, all on disabled nodes | own live ADT: slices 42/8/5/4/30/29, DART and dispext reg, clkreq 0xa0 all match |
| J713 | none | none | live 27.2 coverage file (values redacted, no slice index) |
| J715 | none | 6: display-power on dcpext0/1, gapf on both DARTs |
restore image only: no slice index; the dtsi comment on main states 5/30 |
| J604 | none | 39 | restore image only; #4008 and #4009 state 42/8/5/4/30/29 from the live ADT |
| J623, J624 | none | 39 each, DCP nodes disabled | restore image only: no slice index, nobody has stated one |
- The restore images' (
adt-coverage/, most values redacted,regkept)dart-dcp*/dart-disp*nodes are the same on J604, J623, J624, J715 and J773g, and thedispext0/1nodes and the PMGR base on all six boards. The slice index and the second DART window are added by the boot firmware. A GAPF word is slice0x38079c100 + 0x40 * n, so the slice index is the only value to check per board, andsleep.calready uses 42/5/30 for every T8132. apple,firmware-ownedandstatus = "okay"onps_dispext*are no change at run time: the platform handoff already applies them on every T8132 board. The new parts are consumer-switched, bridge-link and the retention words.power-domainsback on the J773g's dcpext chains makes them wait forapple-pmc(through #4031), as on the J713. The display gate only looks at status, so it is fine.dt-validate(full schema) on the six DTBs: same messages for base, commit 1 and commit 2. W=1: same warnings.dt_binding_checkon the DCP, display-power, DART and PMGR bindings: clean. Host tests on the merge: t8132 4/4, pmgr 3/3, dart 32/32; apple-dcp fails the same 14 cases as the base on this build box (host.cdoesn't compile with its clang, not from this PR).- #4007, #4008 and #4009 merge cleanly on top and the J604, J715 and J773g trees build. Nothing was booted for this review.
Describe the T8132 external display power controller, DART GAPF slices,
clock-protection slices, and ps_dispext{0,1}_{sys,fe,cpu} retention and
consumer-switched properties on the M4 Mac mini (J773g) so dcpext0
(HDMI) and dcpext1 (USB-C DP) can stop and restart across deep sleep.
Every register address, GAPF slice index (dart-dcpext0=5,
dart-dispext0=4, dart-dcpext1=30, dart-dispext1=29), and PMC/PMGR word
is verified against the live J773g ADT (firmware 27.2 / 26B123).
On firmware 27.2 this also enables dcp_ext_idle_capable() runtime idle
power-off for dcpext1 (USB-C DP) when no display is attached.
Signed-off-by: DjDeveloperr <hey@djdev.me>
64e8545 to
5a30f09
Compare
What: Wire the T8132 external display power controller (
dcp_power), DART GAPF slices, clock-protection slices, andps_dispext{0,1}_{sys,fe,cpu}retention / consumer-switched / bridge-link properties on the M4 Mac mini (t8132-j773g.dts) sodcpext0(HDMI) anddcpext1(USB-C DP) can stop and restart cleanly for deep sleep.Every register address, GAPF slice index (
dart-dcpext0=5,dart-dispext0=4,dart-dcpext1=30,dart-dispext1=29), and PMC/PMGR word is verified against the live J773g ADT (firmware 27.2 / 26B123).On firmware 27.2 this also enables
dcp_ext_idle_capable()runtime idle power-off fordcpext1(USB-C DP) when no display is attached.(Following review on
64e85454cfae, the shared T8132 dtsi deduplication commit was split out and held for#4008+ J715/J604 rows, andport00 clkreq-gpioswas dropped because J773g deletesapple,managed-sidsonpcie0.)Tested:
5a30f0960eab:scripts/checkpatch.pl --strictclean (0 errors, 0 warnings, 0 checks);make apple/t8132-j773g.dtbbuilds cleanly.7.3.0-j773g-ship1, clean default cmdline,main8ec8740a1e6f+#4007+#3809+#4031+#3882+ J773g DTB):mem_sleepdefaults to[deep], zerono apple,display-powerwarnings on286e00000.dcpand48ae00000.dcp,pm_test=devicesPASS (RC=0) with both DCPs bound andcard1-DP-3retraining3840x2160@60.deepx3 wake on J773g (Cycle 1 cold-reset is under active root-cause diagnosis; hold merge until committeddeepx3 passes on J773g, and land before or with#4007).Risk: two-way · J773g (M4 Mac mini) only. Changes only
t8132-j773g.dts; other T8132 boards are untouched. Enables runtime idle power-off ondcpext1(USB-C DP) when idle on firmware 27.2 and removes the display-power refusal on J773g deep sleep.