Repository navigation
arm64: dts: apple: t8132-j773g: wire display-power for deep sleep - #4164
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
|
J773g (
|
|
J773g (Apple M4 Mac mini, Exact commits / DTB provenance on this boot (single J773g generation):
Verified results:
|
The host that sets the two APCIe ports up again after a deep sleep makes each port's CLKREQ# an input again before it trains the link. The pin of port 0 is AP GPIO 160 (J773g ADT /arm-io/apcie/pci-bridge0 function-clkreq), as on the J713 and J715. The sleep takes the pin's setup, and the other pins only come back after the ports. Signed-off-by: DjDeveloperr <hey@djdev.me>
|
I added It also makes the tree match the one that ran. The device tree of today's three deep sleeps (sha256
Local, on that merge: the six T8132 trees build W=1 with the same 70 warnings as Not covered by today's row: an HDMI display attached (it was USB-C only, HDMI empty), no display at all, a USB-C display plugged in after |
|
Hardware verification receipt at exact head
|
RyanTheTide
left a comment
There was a problem hiding this comment.
Reviewed at 0bc1cc9. This is DT only and J773g only. It adds the display-power node (pmc-dcp/ps/pwrgate regs), marks the dispext0/1 sys/fe/cpu domains firmware-owned + consumer-switched with their bridge links, adds the per-pipe DART gapf windows and clock-protection references, and drops the old /delete-property/ power-domains workarounds now that the deep-sleep path owns those domains. The retention-workaround pairs mirror what the host observes macOS doing while the pipes are off (hardware facts, per-board, in DT rather than code). The exact-head J773g row (3/3 committed deep, GPU compute + render after each wake, 4K60 USB-C display and both PCIe links back, 0 SError) covers it. Not covered, as stated: HDMI-only, no-display and replug-after-idle-off cases, which belong on #4176's other T8132 boards. Approve.
|
#4176 (
The idle power-off on dcpext1: the rows' Image has the same The merge with Not covered: the exact-head row's DTB was built on |
What: Wire the T8132 external display power controller (
dcp_power), DART GAPF slices, clock-protection slices,ps_dispext{0,1}_{sys,fe,cpu}retention / consumer-switched / bridge-link properties, and the radio root port'sclkreq-gpioson the M4 Mac mini (t8132-j773g.dts) sodcpext0(HDMI) anddcpext1(USB-C DP) stop and restart cleanly for deep sleep and port 0 recovers 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 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;0bc1cc98c029restoresport00 clkreq-gpiosrequired for T8132 deep-sleep PCIe port recovery.)Tested:
0bc1cc98c029:scripts/checkpatch.pl --strictclean;make apple/t8132-j773g.dtbbuilds cleanly.deepx3 on J773g (Mac16,10, os-fw27.2 / 26B123):0bc1cc98c029built onorigin/maindc4d6f065001+#4007c77edccad388,t8132-j773g.dtb172790e3f865…) with7.3.0-j773g-ship1 #3(Imageb46c1c9933d0…, carrying#417640959794ea75): 3/3 committeddeepsleeps in one boot (boot_id=6a06f92e-9196-4d49-91be-6b698669a10b,suspend_statssuccess=3 fail=0),mem_sleep[deep], zerono apple,display-powerwarnings,gpubench-vk --verify(compute.heavy+render.heavy)status=ok/valid=trueafter every wake,card1-DP-33840x2160@60back after every wake, PCIeLnkSta(5GT/s x1+2.5GT/s x1) andend0SSH up,0SError,0GPU fault/recovery,0WARNING/BUG.boot3(7.3.0-j773g-ship1 #3with#417640959794ea75) also passed 3/3 committeddeepsleeps in one boot.ship1was the PCIe port-DART SError fixed by#4176.48ae00000.dcp(card1-DP-3, Samsung Odyssey G81SF) logs4-5xlink fault22+1xlink fault24per wake (5x 22 + 1x 24identically onship1pm_test=deviceswithout#4176) before cleanly retraining3840x2160@60 link: 1.#4176->#4181->#4164->#4007(#4007last).card1-HDMI-A-1(286e00000.dcp, unplugged on this host) and> 5 sunplug / idle-off hot-plug cycle.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.