Skip to content

pmdomain/soc: apple: hold the T6050 memory and fabric floor while the GPU has work - #886

Closed
funkzy wants to merge 2 commits into
aurora-silicon:aurora-wipfrom
funkzy:pr/t6050-memory-floor
Closed

funkzy wants to merge 2 commits into
aurora-silicon:aurora-wipfrom
funkzy:pr/t6050-memory-floor

Conversation

@funkzy

@funkzy funkzy commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

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

  • PMC: apple,t6050-pmc, 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.
  • CLPC: apple,t6050-clpc (fallback apple,t6041-clpc, 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 of the table is measured.
  • Binding: the two compatibles.

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-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 (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:

  • The PMC firmware reports its T6050 init on die 0 at 0.06 s; the PMC driver binds 286806000.power-management, the
    CLPC driver its performance-controller@1 child, and the GPU links to the CLPC as its supplier.
  • An earlier run of the same entries (2026-11-01): the PMC enabled the CLPC and AP agents on DCS and SOC (enable
    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.
  • No panic, BUG, Oops, WARNING or SError line.
  • Builds on aurora-wip: 0 errors, 0 warnings. checkpatch --strict: clean.

Not tested

  • The other columns of the CLPC map: with no cpufreq driver, no CPU cluster requests them.
  • The M5 Pro and Max (SPTM guests), where ewb's own floor runs.

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,clpc link) 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 call
site for both roots and no hold state machine of its own? Your measurement would go in its commit text, with credit.

funkzy and others added 2 commits November 2, 2026 14:19
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]>
@funkzy

funkzy commented Nov 3, 2026

Copy link
Copy Markdown
Contributor Author

Closing: carried in funkzy/j775d in aurora-silicon/linux-aurora, the consolidated M5 Ultra branch dj merges in one go.

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