Repository navigation
soc: apple: clpc: raise the T8140 fabric floor for GPU work - #440
Merged
Merged
Conversation
The T8140 table never raised the SoC fabric: busy CPU clusters only lifted the DCS, and graphics load lifted nothing. The GPU firmware takes up and completes every command over the fabric, so with the fabric at state 0 each command's firmware work ran slowly, and light GPU work fell well behind macOS, which holds the fabric at its top states while such work streams. Hold DCS 4 and fabric 3 while the graphics power state is on, as T8132 already does with its own top states. The firmware powers the GPU off when it is idle, so the floor follows GPU activity and drops HOLD_MS after the last work; an idle desktop leaves the fabric at state 0. A cluster in its top frequency quartile now also raises the fabric. Measured on Neo against the same driver and userspace (gpubench, us per submission, fabric 0 -> 3): compute, depth 1 158.9 -> 108.2 compute, depth 64 19.3 -> 14.7 compute, 16 processes 25.6 -> 17.9 render, depth 1 149.9 -> 137.3 render, depth 32 42.7 -> 29.7 render, 8 queues 58.2 -> 41.0 queue-to-queue handoff 42.2 -> 31.9 Fabric 2 recovers about 80% of that; a forced DCS 4 adds nothing over the CPU-driven DCS vote. Heavy ALU work is unchanged.
RyanTheTide
added a commit
that referenced
this pull request
Oct 26, 2026
Apply DjDeveloperr's GPU-demand mechanism from d69f14f to T6040. The CPU-only policy can leave the fabric low during GPU-only work. Enable its graphics demand input and describe the existing graphics PMGR state in DT, as T8140 and T8132 already do. Use T6040's existing DCS 5 / fabric 2 table, not T8140's state numbers. CPU demand keeps its three-sample sustain rule; graphics demand uses the shared hold and idle release. No voltage, ceiling, parameter or new platform option is introduced. Confirm powered-state tracking and idle floor release on J616s before qualifying the performance result. Link: #440 Assisted-by: LLM Signed-off-by: Ryan Murray <[email protected]>
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.
Problem
On Neo (T8140) the CLPC table never raised the SoC fabric. Busy CPU clusters only lifted the DCS, and graphics load lifted nothing. The GPU firmware takes up and completes every command over the fabric, so at fabric state 0 its per-command work ran slowly. This was the fixed firmware cost behind most of the light-workload gap to macOS, which holds the fabric at its top states while such work streams.
Fix
Set
gpu_demandfor T8140, as T8132 already does, and give the fabric a top-quartile state. While the graphics power state is on, the floor is DCS 4 and fabric 3. The firmware powers the GPU off when it is idle, so the floor follows GPU activity and dropsHOLD_MSafter the last work. An idle desktop leaves the fabric at state 0 (checked on Neo). The in-treet8140.dtsialready providesapple,gpu-power-state.The change is data-only: no type changes. The rebuilt core's BTF is byte-identical to the previous one.
Measurements (Neo, same GPU driver and Mesa; gpubench µs per submission)
Other measurements:
Testing on Neo