Skip to content

arm64: dts: apple: t6041-sleep-pmgr: drop apple,always-on from ps_dpa_p - #3860

Merged
DjDeveloperr merged 1 commit into
aurora-silicon:mainfrom
AxxzyWasTaken:pr/t6041-dts-dpa-p-idle
Dec 2, 2026
Merged

DjDeveloperr merged 1 commit into
aurora-silicon:mainfrom
AxxzyWasTaken:pr/t6041-dts-dpa-p-idle

Conversation

@AxxzyWasTaken

@AxxzyWasTaken AxxzyWasTaken commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

What

Remove the leftover apple,always-on; property from &ps_dpa_p (power-controller@1a8, parent &ps_sio) in arch/arm64/boot/dts/apple/t6041-sleep-pmgr.dtsi, matching sibling SIO peripheral parents ps_spi_p and ps_uart_p.

Every active consumer already holds ps_dpa_p through the genpd hierarchy:

  • &ps_sio_cpu lists <&ps_dpa_p> as a parent (t6041.dtsi:1064), so on main (without SIO runtime PM #3762) ps_dpa_p stays on whenever ps_sio_cpu is on, and with #3762 ps_dpa_p can now actually power off at idle instead of remaining pinned on while all children (dpa1..3, sio_cpu) are off-0.
  • dpaudio1..3 (dpa1..3, children of ps_dpa_p) manage full runtime PM in drivers/gpu/drm/apple/audio.c.
  • Deep sleep (t6041-sleep.c) already includes ps_dpa_p in apple,sleep-keep-on-domains (t6041.dtsi:665), matching ps_spi_p, ps_uart_p, and ps_aes.

Tested

J616C (M4 Max) passed at 96c7be67ed7d with #3762 active. The DisplayPort audio parent powered off at idle and returned to that state after deep sleep with zero errors.

  • Container checks:
    • 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.
  • Physical J616C (Apple M4 Max, T6041, macOS 27.2 26B123) verification (7.3.0-j616c-272-ov1+ with #3762 SIO RPM active):
    • Before (t6041-j616c-base.dtb): dpa_p stayed on in /sys/kernel/debug/pm_genpd/pm_genpd_summary even with sio_cpu, dpa1, dpa2, dpa3 all off-0.
    • After (96c7be67ed7d3): dpa_p cleanly dropped to off-0 at idle on boot.
    • Deep sleep (rtcwake -d /dev/rtc1 -m mem -s 15): PASS; post-resume pm_genpd_summary confirmed dpa_p, sio_cpu, dpa1..3, spi_p, uart_p all returned to off-0 with 0 errors.

Risk

  • Two-way door. Very low. On main without #3762, ps_sio_cpu still carries apple,always-on so this is a no-op until SIO runtime PM is active; with #3762, every ps_dpa_p consumer holds its genpd reference and t6041-sleep.c keeps ps_dpa_p in apple,sleep-keep-on-domains.

Not yet

  • External DisplayPort audio stream wake/suspend cycling on J616C (tested idle + deep S2R).

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>
@AxxzyWasTaken
AxxzyWasTaken requested review from a team as code owners December 2, 2026 01:14
@github-actions github-actions Bot added area:bringup Area from CODEOWNERS (bot) blast:m4 Macs affected, from Merge risk (bot) needs-hw-row No hardware row at the PR head (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) needs-template PR body lacks Tested or Risk (bot) labels Dec 2, 2026
@github-actions

github-actions Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

Merge readiness at 96c7be67: not ready yet

Check Detail
CI at head ok 2 checks passed
Review ok approved by RyanTheTide
Requested changes ok none
Hardware row at head no no line with the head SHA 96c7be67, a Mac and a result in the PR body or a comment
Conflicts ok not computed yet
PR text no add 'one-way' or 'two-way' in Risk (guide)

Areas: area:bringup

Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels.

@RyanTheTide RyanTheTide left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@github-actions github-actions Bot removed the needs-review No approving review from Core or Omarchy Mac yet (bot) label Dec 2, 2026
@RyanTheTide

Copy link
Copy Markdown
Contributor

T6040 (M4 Pro) has the same leftover: t6040-pmgr.dtsi ps_dpa_p still has apple,always-on, with the same SIO topology (t6040.dtsi &ps_sio_cpu lists ps_dpa_p as a parent).

On the J616s (production kernel) dpa_p, sio_cpu, spi_p and uart_p are all on at idle, with dpa1/dpa2 off-0.

The SIO node is shared (t604x.dtsi, apple,t6041-sio), so the #3359 -> #3762 driver changes already cover T6040. Only #3762's ps_sio_cpu /delete-property/ apple,always-on + apple,sleep-wakeup-path and this PR's line are T6041-only.

Plan: once #3359 / #3762 / this PR land, I'll open the T6040 DT follow-up (same three lines in t6040.dtsi / t6040-pmgr.dtsi) with a J616s row (genpd off at idle, s2idle + deep, speakers via SGV2). No T6040 row here, because without #3762 the change is inert.

@RyanTheTide

Copy link
Copy Markdown
Contributor

T6040 note for 96c7be67ed7d, instead of a J616s row: t6041-sleep-pmgr.dtsi is included only by t6041.dtsi. t6040-j616s.dts builds from t6040.dtsi + t604x-j614-j616.dtsi, so this PR changes no T6040 DTB and no kernel code, and a T6040 boot would run exactly what main runs. The row that matters here is a T6041 (J614c/J616c) s2idle row.

@DjDeveloperr
DjDeveloperr merged commit 7b97bc5 into aurora-silicon:main Dec 2, 2026
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:bringup Area from CODEOWNERS (bot) blast:m4 Macs affected, from Merge risk (bot) needs-hw-row No hardware row at the PR head (bot) needs-template PR body lacks Tested or Risk (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants