Skip to content

soc: apple: clpc: give dense light GPU work the T8140 GPU floor - #563

Merged
DjDeveloperr merged 1 commit into
integration/aurorafrom
perf/t8140-clpc-dense-light-20261028
Oct 29, 2026
Merged

DjDeveloperr merged 1 commit into
integration/aurorafrom
perf/t8140-clpc-dense-light-20261028

Conversation

@DjDeveloperr

Copy link
Copy Markdown
Contributor

On the Neo (J700, T8140), light GPU submissions a few milliseconds apart never got the GPU floor (DCS 4, fabric 3). Graphics powers off between them, so they never count as streaming, and each submission then waits on a low fabric, which nothing else holds up while the panel is off. gpubench idle.wake at a 2 ms gap shows it: 192 µs, against 153 µs on macOS.

This gives such work the floor. Work with two or more submissions in each of four 4 ms samples in a row (one 60 Hz frame) counts as dense. Frame-paced loads such as video leave a quiet period in every frame and stay below that. The floor keeps the PMP back-off and the vote hold that streaming work has. Submissions are counted through the host activity input T6040 already uses. Unlike T6040, a cold publication on T8140 doesn't trigger an immediate sample, because one taken as each video frame starts finds the CPUs busy and raises the DCS through their vote; that was +0.07 W in video in an earlier version. debugfs now counts the samples that applied the floor for streaming and for dense work.

Results on the Neo, comparing integration d266c70 with and without this change. Boots strictly alternated, ×2 each, 4 rounds of each row per boot. Panel off except the power legs and the "panel on" row.

row before after macOS
idle.wake 2 ms, wake latency 192.5 µs 170.5 µs (−11%) 153
idle.wake 2 ms, panel on 188.1 µs 160.3 µs (−15%) 153
idle.wake 2 ms, awake latency ~170 µs ~148 µs 157.5
idle.wake 20 ms 588.8 µs 588.5 µs 607
compute.light d1 104.6 µs 104.0 µs –
render fill 1080p d1 / d2 / d4 694 / 575 / 592 µs 694 / 578 / 596 µs 825 / 643 / 653
power: idle / 1080p30 video / browsing 4.91 / 7.05 / 5.00 W 4.88 / 7.06 / 5.00 W –
  • Across the whole idle.wake 2 ms process, including device setup and teardown, the floor is applied in about two thirds of the CLPC samples: roughly 32 dense and 32 streaming out of about 95.
  • Video, browsing and idle power are unchanged, and so is the DCS residency in video.
  • The awake latency now beats macOS. What's left of the 2 ms gap is the wake cost, about 22 µs, while macOS shows none at that gap. That's the firmware's idle power-off, a separate issue.
  • No kernel errors on any boot. KUnit apple-clpc-gpu: 4/4.
  • Regression gate PERFORMANCE-REGRESSION-PASS; targeted Vulkan CTS 4687 Pass / 681 NotSupported / 0 Fail; desktop alive. The only kernel lines were two informational fallback retirements from drm/asahi: retire a G17 render group on its pass record when its stamps stall #555 under the gate load.

On T8140 the GPU floor (DCS 4, fabric 3) follows graphics power: work that
keeps graphics powered for 64 ms streams and gets it, while frame-paced
loads power graphics up and down and leave it down. Light submissions a
few milliseconds apart also let graphics power off between them, so they
never stream, yet each of them waits on the fabric, which with the panel
off nothing else holds up.

Count the GPU driver's submissions through the host activity input that
T6040 already uses, and give the floor to work with two or more
submissions in each of four sampling periods in a row (16 ms, one 60 Hz
frame). A frame-paced load leaves a quieter period in every frame and stays
below. The floor keeps the PMP back-off and the vote hold of streaming
work.

On T8140 a cold publication does not sample at once, as it does on T6040,
where the publication is the demand. Such a sample at the start of each
frame of video playback finds the CPUs busy and holds the DCS up through
their vote.

debugfs counts the samples that applied the floor for streaming and for
dense work.

The T8140 GPU node now links its CLPC. Device trees without that link
still find the single T8140 CLPC, as a hint the GPU probes without.
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