Repository navigation
arm64: dts: apple: t8132: connect the external display pipes' PMC enables on every M4 Mac - #4031
DjDeveloperr wants to merge 1 commit into
Conversation
…132.dtsi On T8132, the PMC ignores an external display pipe's bandwidth request (BWR) and display-clock boost votes while its interface enable bits in 0x3828ac020 (bwr_enable) and 0x3828ac028 (boost_enable) remain clear (drivers/pmdomain/apple/pmc.c). Previously only t8132-j713-j715.dtsi wired pmc_dispext0 and pmc_dispext1 into ps_dispext0_fe and ps_dispext1_fe, leaving J773g (as well as J604 and the M4 iMacs) unconnected and cutting available DRAM bandwidth in half under a 4K@120Hz pipe (51.54 GB/s vs 102.54 GB/s). Move the shared <&pmc_dispext0> and <&pmc_dispext1> second power-domain parent wiring for &ps_dispext0_fe and &ps_dispext1_fe into t8132.dtsi (keeping &ps_dispext0_sys at index 0 so apple_pmgr_ps_hold_parents() enables pmc_dispext0 cleanly even when ps_dispext0_fe starts active from iBoot, while leaving t8132-platform-data.dts unaffected because it includes only t8132-memory.dtsi), and drop the per-board copy from t8132-j713-j715.dtsi. On t8132-j773g.dts, point &framebuffer0 at <&ps_dispext0_sys> instead of <&ps_dispext0_fe> so simpledrm still binds early when CONFIG_APPLE_PMP=m (apple-pmc defers until apple-pmp binds); ps_dispext0_fe is apple,always-on and never powered off by genpd. Signed-off-by: Diljit Singh <hey@djdev.me> Signed-off-by: DjDeveloperr <hey@djdev.me>
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
RyanTheTide
left a comment
There was a problem hiding this comment.
Reviewed 2fdae38. The shared DTS places external FE dependencies after SYS for the newly covered boards. The J773g simple framebuffer keeps its early SYS and PHY dependencies, and both Air DTBs reportedly match base byte for byte. The stock J773g and J604 rows are pending.
|
Hardware validation on J773g (Mac16,10, M4 Mac mini, T8132, os-fw Environment
Results
|
What: On the M4 (T8132), only the MacBook Air device trees connect the external display pipes to their PMC interface enables. On every other M4 Mac the PMC ignores an external pipe's bandwidth and display-clock requests, which halves the DRAM bandwidth left under a 4K 120 Hz display. This moves the connection into the shared
t8132.dtsi. It brings back #2761, which was closed when its base branch was deleted.Tested: No hardware run at the head of this PR; the hardware results are from #2761 (see Evidence). Local checks at
2fdae383ffa7: the SoC's six device trees build W=1 with the same warnings as main, host tests 111/111, checkpatch --strict clean.Risk: two-way · M4 (T8132) Macs. J713 and J715 take the same connection from the shared file, and their built device trees are byte-identical to main's. The J604 and the M4 iMacs get it for the first time; the J604's external display DARTs then wait for
apple-pmcto probe, as they do on the J713.Not yet: J773g boot at the head of this PR, with a USB-C display and with HDMI: the
apple-pmcstatus must show BWR and boost enabled, then hotplug, DPMS, s2idle, and DRAM bandwidth under the display. A J604 boot with an external display.Details
The PMC ignores the bandwidth request (BWR) and boost votes of a display pipe while the pipe's enable bits are clear.
drivers/pmdomain/apple/pmc.cmodels those bits as a power domain between the pipe's SYS and FE power states.t8132-j713-j715.dtsimadepmc_dispext0andpmc_dispext1the second parent of the FE states; the other boards did not.The two references go in
t8132.dtsiand not int8132-memory.dtsi, because the legacy-loader adapter includes only the latter and deletes both interfaces.On the J773g the boot framebuffer now holds
ps_dispext0_sysin place ofps_dispext0_fe. The FE state now waits forapple-pmc, which waits forapple-pmp, so a kernel withCONFIG_APPLE_PMP=mwould otherwise defersimpledrm.ps_dispext0_festaysapple,always-on.If the PMC does not probe,
ps_dispext0_fedoes not either, and then nothing but the boot framebuffer holdsps_dispext0_sys. On the J773g's 27.2 stub the PMC probes (status in Evidence).Evidence
Without this change, read only, J773g on kernel
7.3.0-ARCH-m4main-6c83a2a6(main6c83a2a64539plus the display commits of #3874) with a 3840x2160 USB-C display connected:bwr enable: 0x00000000,boost enable: 0x00000001, and bothpmc-dispextdomains off.Measured under #2761, J773g, macOS 27.2 (26B123) stub, HDMI at 4K 120 Hz:
bwr enable/boost enableat boot (kernel7.3.0-ARCH-m4prod1)0x00/0x010x18/0x07macOS 27.2 on the same machine: 93.42 GB/s GPU. The boot row used this device tree change; the bandwidth rows are from a separate, earlier boot.
The commit is the one from #2761 (
b76381cc16af), with the context conflict against the CLPC node int8132.dtsiresolved.Host tests:
t81324/4,display-gate1/1,pmgr3/3,dcp103/103. The built J713 and J715 device trees are byte-identical to main's.Checks ran on main
d1ae4f292b93plus this branch.