Skip to content

Neo: hold DRAM up while ProRes encodes (DCS floor) - #899

Merged
RyanTheTide merged 2 commits into
integration/aurorafrom
prores/dcs-floor
Nov 3, 2026
Merged

RyanTheTide merged 2 commits into
integration/aurorafrom
prores/dcs-floor

Conversation

@RyanTheTide

Copy link
Copy Markdown
Contributor

On the Neo (A18 Pro, T8140), the PMP votes ProRes VMAX on the SOC rail but sends no DCS vote. During an encode the CPUs are mostly idle, so CLPC drops its DCS vote to 0, and 4K ProRes is limited by DRAM. This PR adds a DCS floor at the highest state as a second parent of the ProRes performance request, so DRAM follows the engine while it encodes.

  • pmdomain: apple: pmc: allow a floor on the DCS rail: a floor can now sit on the DCS rail. It shares the AP DCS vote and stays capped by the DCS thermal limit. KUnit 21/21, including the new apple_pmc_test_dcs_floor.
  • arm64: dts: apple: t8140: hold DRAM up while ProRes encodes: a new pmc/floor-dcs-max node (rail 0, level 4) and a second power-domains entry on pmp_report_prores. Nothing else changes in the Neo DTB. The J616s DTB from this build is byte-identical to before.

The branch is aurora-wip f153499 plus these two commits. It merges cleanly into integration/aurora 40199ed.

Hardware trial (Neo, 2026-11-03)

I tested kernel 7.3.0-aurora-apr1 (f6ae7c5, config identical to fleet14p) with the Neo Stage 2 rebuilt around the apr1 DTB (0ef4485f). It booted once through aura-try (chosen/aurora,trial was present), with fleet14p as the default. After one reboot the Neo was back on the committed Stage 2 and fleet14p.

The baseline is fleet14p (aurora-wip f153499 without these two commits), on the same machine with the same tools, runs taken right before and after the trial boot. The CPUs were idle during the encodes. Each row is 3 runs: ProRes and JPEG 480 frames at 4K and 2400 at 1080p, and AVD Q16 bit-exact over 3 passes.

Neo fleet14p apr1 macOS
ProRes 4K 422 HQ fps 309-354 428.6-428.8 425
ProRes 4K 4444 fps 205-235 286.4-286.5 282
ProRes 1080p 422 HQ fps 1352-1422 1654.6-1655.4 843
ProRes 4K 422 HQ output (8 frames) md5 b4ea0651 b4ea0651 (identical)
JPEG 4K q75 fps (no floor) 198-234 204-212 150
AVE H.264 1080p / HEVC 4K fps 176.4-176.5 / 46.2 176.1 / 46.2
AVD H.264 1080p / HEVC 4K fps (bit-exact) 726-740 / 189.1-189.2 740.3 / 189.2
GPU glmark2 off-screen score 8568 / 8936 8790
Idle power, battery, display on, 60 s 4.814 W (sd 0.070) 4.860 W (sd 0.076)
  • PMC debugfs during a 4K encode: agent3 floor 0x4 is honoured and pmc-dcs-max: rail0 level 4 held. It is released (agent3 0x0) about 500 ms after the encode ends, which matches the ProRes runtime PM autosuspend delay of 500 ms. At idle the floor is released.
  • dmesg has no apple-pmc probe errors, no "invalid rail" and no "failed to join". pm_genpd lists pmc-dcs-max. The per-release AVD firmware was in place (no "avd-fw not installed").
  • One s2idle cycle with the ANE gate: same handle and identical outputs after resume, resume 18-19 ms, MobileNet 16/16.
  • Touch ID: fprintd-list lists the 3 enrolled fingers.
  • journalctl -b -p3: 0 kernel lines. The one userspace line was geoclue.service start timeout. It has also happened on at least 7 earlier Neo boots of other kernels since 11-01, so it is not related to this change. WARN/BUG/Oops 0, DART faults 0.
  • SELinux enforcing, selinux-gate PASS, 0 AVCs.

The floor costs no measurable idle power, because it is only held while ProRes is runtime-active. JPEG could take the same floor in a follow-up.

🤖 Generated with Claude Code

A rail floor could not sit on the DCS rail, since the AP agent's DCS
vote carries the DCS limit. Let a DCS floor share that vote instead:
without a limit the AP votes the higher of its inherited vote and the
floors held, and with a limit the higher of the other agents' demand and
the floors, capped by the limit as before. The thermal limit therefore
still wins over any floor.

KUnit: a DCS floor above the inherited vote, under a limit, and its
release back to the inherited vote.

Assisted-by: LLM
Signed-off-by: Ryan Murray <[email protected]>
The PMP takes ProRes VMAX on the SOC rail but votes no DCS state for it,
and while an encode keeps the CPUs mostly idle the CLPC lowers its DCS
vote to state 0. On the Neo, 4K ProRes 422 HQ ran at 355-371 fps with
the CPUs idle and at 430 fps with any one CPU busy (CLPC DCS vote 4),
4444 at 239-242 and 287 fps; 1080p 422 HQ at 1511 and 1683 fps. macOS
does 425 and 282 fps at 4K.

Give the ProRes performance request a second parent, a DCS floor at the
highest state, so DRAM follows the engine instead of the CPUs.

Assisted-by: LLM
Signed-off-by: Ryan Murray <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant