Repository navigation
Conversation
Add apple,t6050-pmc and its CLPC child, apple,t6050-clpc, which falls back to apple,t6041-clpc: the GPU's supplier check and the CLPC's demand input are T6041's. Signed-off-by: Jeff Queisser <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
The boot loader leaves every PMC rail of the T6050 with no voter agent
enabled. On the M5 Ultra (J775D) the four rail enable words read 0 and
the PMP's dashboard holds no valid entry, so nothing raises the DRAM
controller (DCS) or the SoC fabric above the state the boot left. A
CPU's dependent DRAM loads take about 300 ns there. With the AP's agent
enabled and its floor at DCS 6 and fabric 3 (the ADT's PMP dvfs-domain
maxima), they take 120-140 ns, the GPU's scratch-heavy fragment passes
run 25-35 % faster, and an ALU-bound pass 20 % faster.
The PMC and CLPC drivers already do this on T6040: the PMC driver
enables the static agents on DCS and SOC, and the CLPC driver holds its
agent's floor while the GPU has work, through the publication and idle
input the G17 driver sets on every submission and clears at its idle
clear (through the GPU's apple,clpc link). T6050 gets:
- a PMC entry: five agents (PMP, CLPC, GFX, AP, PMP1), four rails (DCS,
SOC, DISP, DISP2), agents enabled on DCS and SOC only, DCS states
0-6, and the pending word after each floor word that T8132 has;
- a CLPC entry ("apple,t6050-clpc", with "apple,t6041-clpc" as its
fallback for the GPU's supplier check): GPU work holds DCS 6 and
fabric 3 until 32 ms after the last work retires, the T6040 hold. Only
that column is measured; with no cpufreq driver no CPU cluster
requests the others.
Only "apple,t6050-pmc" and "apple,t6050-clpc" select the new entries.
T8132, T8140 and T6040 keep their tables. No drm/asahi code changes: the
G17 driver's demand input is the one it already drives, and a GPU node
without apple,clpc gets no supplier.
Testing: on J775D, the PMC enables CLPC and AP on DCS and SOC (0x0a). A
scratch-heavy 512x512 render in 2x2 passes took 34.6-45.2 ms per submit
(49.5-58.1 without the floor), its no-mix form 20.0-22.8 (28.8-30.8),
and an ALU-bound pass 45.6-48.8 (57.1-61.5); the GPU's Vulkan clients,
its fault recovery and the desktop ran as before.
Signed-off-by: Jeff Queisser <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
Author
|
Closing: carried in |
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.
Summary
The boot loader leaves every PMC rail of the T6050 with no voter agent enabled. On the M5 Ultra (J775D) nothing
then raises the DRAM controller (DCS) or the SoC fabric above the state the boot left, and a CPU's dependent DRAM
loads take about 300 ns. The PMC and CLPC drivers already solve this on T6040: the PMC driver enables the static
agents on DCS and SOC, and the CLPC holds its floor while the GPU has work, through the input the G17 driver sets on
every submission and clears at idle. This adds the T6050 entries.
What it changes
apple,t6050-pmc, five agents (PMP, CLPC, GFX, AP, PMP1), four rails (DCS, SOC, DISP, DISP2), agents enabledon DCS and SOC only, DCS states 0-6, and the pending word after each floor word that T8132 has.
apple,t6050-clpc(fallbackapple,t6041-clpc, for the GPU's supplier check). GPU work holds DCS 6 andfabric 3 until 32 ms after the last work retires, the T6040 hold. Only that column of the table is measured.
Why
With the floor held, dependent DRAM loads take 120-140 ns instead of 300, the GPU's scratch-heavy fragment passes
run 25-35 % faster and an ALU-bound pass 20 % faster.
What else sees it
Only
apple,t6050-pmcandapple,t6050-clpcselect the new entries. T8132, T8140 and T6040 keep their tables. Nodrm/asahi code changes: the G17 driver's demand input is the one it already drives, and a GPU node without
apple,clpcgets no supplier.Testing (J775D, M5 Ultra)
The kernel: our J775D series (integration/aurora's lineage, as on the Studio every day) with this PR's code and
that of the other T6050 PRs sent with it in place of the series' own forms, booted once on 2026-11-02; and the series
kernel the machine boots by default, which carries the same code:
286806000.power-management, theCLPC driver its
performance-controller@1child, and the GPU links to the CLPC as its supplier.words 0x0a); at idle the CLPC's floor word read 0 and a CPU's dependent loads took 310 ns, so the floor is released
between bursts; under GPU work the scratch rows ran as with the floor set by hand (a scratch row 20.0-22.8 ms
against 28.8-30.8 without it, the ALU row 45.6-48.8 against 57.1-61.5), and every correctness check stayed exact.
Not tested
Dependencies
None in git. The J775D DT (the PMC node in dispext0's PMC range, CLPC and AP as static voters, the CLPC child and
the GPU's
apple,clpclink) comes with the J775D board.ewb: your memory floor on J716c (90 to 590 GB/s) holds DCS and SOC at their maxima with the same 32 ms rule. Would
you put it behind this same CLPC demand input (
g17/clpc.c), as an SPTM-backed provider, so drm/asahi has one callsite for both roots and no hold state machine of its own? Your measurement would go in its commit text, with credit.