Repository navigation
Neo: hold DRAM up while ProRes encodes (DCS floor) - #899
Merged
Merged
Conversation
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]>
This was referenced Nov 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 newapple_pmc_test_dcs_floor.arm64: dts: apple: t8140: hold DRAM up while ProRes encodes: a newpmc/floor-dcs-maxnode (rail 0, level 4) and a second power-domains entry onpmp_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,trialwas 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.
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.pm_genpdlistspmc-dcs-max. The per-release AVD firmware was in place (no "avd-fw not installed").fprintd-listlists the 3 enrolled fingers.journalctl -b -p3: 0 kernel lines. The one userspace line wasgeoclue.servicestart 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.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