Repository navigation
arm64: dts: apple: t6041-sleep-pmgr: drop apple,always-on from ps_dpa_p - #3860
Conversation
ps_dpa_p (DisplayPort audio parent domain under ps_sio) still carries apple,always-on in t6041-sleep-pmgr.dtsi, unlike its sibling SIO peripheral parent domains ps_spi_p and ps_uart_p. Every active consumer already holds ps_dpa_p through the power-domain hierarchy: ps_sio_cpu lists <&ps_dpa_p> as a parent in t6041.dtsi, and the DisplayPort/HDMI audio controllers (dpaudio1..3) manage runtime PM on ps_dpa1..3 under ps_dpa_p. Removing apple,always-on preserves existing behavior whenever SIO or DP audio is active, and allows ps_dpa_p to power off at idle once SIO runtime PM suspends ps_sio_cpu. System sleep is unaffected because ps_dpa_p is listed in apple,sleep-keep-on-domains in t6041.dtsi alongside ps_spi_p, ps_uart_p, and ps_aes, so t6041-sleep raises it at sleep commit and restores its saved state on wake. Signed-off-by: AxxzyWasTaken <axxzytte@gmail.com>
|
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.
The existing SIO parent reference and deep-sleep keep-on list still cover dpa_p. The one-line change lets it idle when its runtime-PM consumers are off, as verified on J616C.
|
T6040 (M4 Pro) has the same leftover: On the J616s (production kernel) The SIO node is shared ( Plan: once #3359 / #3762 / this PR land, I'll open the T6040 DT follow-up (same three lines in |
|
T6040 note for |
What
Remove the leftover
apple,always-on;property from&ps_dpa_p(power-controller@1a8, parent&ps_sio) inarch/arm64/boot/dts/apple/t6041-sleep-pmgr.dtsi, matching sibling SIO peripheral parentsps_spi_pandps_uart_p.Every active consumer already holds
ps_dpa_pthrough the genpd hierarchy:&ps_sio_cpulists<&ps_dpa_p>as a parent (t6041.dtsi:1064), so onmain(without SIO runtime PM#3762)ps_dpa_pstays on wheneverps_sio_cpuis on, and with#3762ps_dpa_pcan now actually power off at idle instead of remaining pinned on while all children (dpa1..3,sio_cpu) areoff-0.dpaudio1..3(dpa1..3, children ofps_dpa_p) manage full runtime PM indrivers/gpu/drm/apple/audio.c.t6041-sleep.c) already includesps_dpa_pinapple,sleep-keep-on-domains(t6041.dtsi:665), matchingps_spi_p,ps_uart_p, andps_aes.Tested
J616C (M4 Max) passed at
96c7be67ed7dwith #3762 active. The DisplayPort audio parent powered off at idle and returned to that state after deep sleep with zero errors.scripts/checkpatch.pl --strict --no-tree -: 0 errors, 0 warnings, 0 checks.make ARCH=arm64 LLVM=1 apple/t6041-j616c.dtb apple/t6041-j614c.dtb: 0 errors, 0 warnings.26B123) verification (7.3.0-j616c-272-ov1+with#3762SIO RPM active):t6041-j616c-base.dtb):dpa_pstayedonin/sys/kernel/debug/pm_genpd/pm_genpd_summaryeven withsio_cpu,dpa1,dpa2,dpa3alloff-0.96c7be67ed7d3):dpa_pcleanly dropped tooff-0at idle on boot.rtcwake -d /dev/rtc1 -m mem -s 15): PASS; post-resumepm_genpd_summaryconfirmeddpa_p,sio_cpu,dpa1..3,spi_p,uart_pall returned tooff-0with 0 errors.Risk
mainwithout#3762,ps_sio_cpustill carriesapple,always-onso this is a no-op until SIO runtime PM is active; with#3762, everyps_dpa_pconsumer holds its genpd reference andt6041-sleep.ckeepsps_dpa_pinapple,sleep-keep-on-domains.Not yet