Skip to content

arm64: dts: apple: t6050-j714s: scale CLPC GPU memory states to reduce light-workload power - #3442

Closed
Isaac-Duarte wants to merge 1 commit into
aurora-silicon:mainfrom
Isaac-Duarte:j714s/clpc-gpu-busy-memory-states
Closed

Isaac-Duarte wants to merge 1 commit into
aurora-silicon:mainfrom
Isaac-Duarte:j714s/clpc-gpu-busy-memory-states

Conversation

@Isaac-Duarte

Copy link
Copy Markdown
Contributor

Summary

On t6050-j714s (MacBook Pro 14-inch M5 Pro), &clpc currently leaves apple,gpu-busy-memory-states and apple,gpu-busy-permille unset. Without a GPU busy-share curve, the CLPC driver holds its stock memory floor (dcs state 6 / soc state 2, last_vote 0x26) whenever host GPU activity is active, keeping DRAM and fabric power elevated during light desktop compositing and frame-paced workloads (paced60 / paced120).

This adds the 4-level busy-share memory state curve under &clpc in arch/arm64/boot/dts/apple/t6050-j714s.dts, following #3400 while matching apple_clpc_hw_t6050's DCS 6 / SOC 2 floor in the top bucket:

  • apple,gpu-busy-memory-states = <1 2 4 6>, <0 0 0 2>;
  • apple,gpu-busy-permille = <160 500 800>;

Saturated GPU workloads keep full memory bandwidth (DCS 6 / SOC 2, 0x26), while light/paced GPU workloads drop to level 0 (DCS 1 / SOC 0, 0x1).

Hardware Validation (M5 Pro / apple,j714s / G17S B1)

Tested docked (3x 1080p165), AC connected, balanced profile, kernel 7.3.0-124e30a with #3437 (aurora.ko).

Live CLPC Debugfs State Transitions

/sys/kernel/debug/286806000.power-management:performance-controller@1/status:

State / Workload Stock DTB (last_vote / state / busy) Patched DTB (last_vote / state / busy)
paced60 0x26 / dcs 6, soc 2 (91–93 permille) 0x1 / level 0 (dcs 1, soc 0, 5–6 permille)
paced120 0x26 / dcs 6, soc 2 (93–94 permille) 0x11 -> 0x1 / level 0 (dcs 1, soc 0, 8 permille)
gpu_bound 0x26 / dcs 6, soc 2 (1000 permille) 0x26 / level 3 (dcs 6, soc 2, 1000 permille)
Post-gpu_bound idle (+2s) — 0x1 / level 0 (dcs 1, soc 0, 2 permille)
  • update errors: 0 across all samples (56261 -> 58435).

Matched Quiet-Desktop Power & Throughput (KWin + Brave, macsmc_hwmon + vk_feed_bench)

Workload Stock baseline #3437 + Stock DTB #3437 + CLPC DTB Delta vs #3437
paced60 (2 runs) 15.29 W PSTR / 6.85 W PHPC (1203.7 sub/s) 14.91 W PSTR / 6.45 W PHPC (1203.3 sub/s) 14.04 W PSTR / 5.65 W PHPC (1203.7 sub/s) -0.87 W PSTR / -0.80 W PHPC (-1.25 W vs stock)
paced120 (2 runs) 16.91 W PSTR / 8.47 W PHPC (1442.1 sub/s) 15.46 W PSTR / 6.92 W PHPC (1441.8 sub/s) 14.40 W PSTR / 5.90 W PHPC (1441.8 sub/s) -1.06 W PSTR / -1.02 W PHPC (-2.51 W vs stock)
refill_d1 (3 runs) 21.60 W PSTR / 12.59 W PHPC (6241.3 sub/s) 20.30 W PSTR / 11.70 W PHPC (6240.5 sub/s) 19.95 W PSTR / 11.47 W PHPC (6263.9 sub/s) -0.35 W PSTR / -0.23 W PHPC (+0.4%)
gpu_bound (3 runs) 33.49 W PSTR / 22.60 W PHPC (624.3 sub/s) 30.47 W PSTR / 20.13 W PHPC (634.4 sub/s) 30.20 W PSTR / 20.07 W PHPC (633.1 sub/s) -0.27 W PSTR (-0.2% rate)

Checks

  • RUSTUP_TOOLCHAIN=1.96.0 HOSTRUSTC=rustc python3 -I tools/asahi/clpc-gpu-demand-tests.py: PASS (main + all 23 negative controls)
  • make LLVM=1 ARCH=arm64 W=1 apple/t6050-j714s.dtb: builds with 0 warnings on t6050-j714s.dts
  • git format-patch -1 --stdout HEAD | ./scripts/checkpatch.pl --strict --no-tree -: 0 errors, 0 warnings, 0 checks

On t6050-j714s, &clpc does not specify apple,gpu-busy-memory-states or
apple,gpu-busy-permille, so CLPC keeps its stock memory floor (DCS
state 6 / SOC state 2, last_vote 0x26) whenever host GPU activity is
active, holding elevated DRAM and fabric power during light desktop
compositing and frame-paced workloads.

Add apple,gpu-busy-memory-states = <1 2 4 6>, <0 0 0 2> and
apple,gpu-busy-permille = <160 500 800> under &clpc in
arch/arm64/boot/dts/apple/t6050-j714s.dts. The top column (6, 2)
matches apple_clpc_hw_t6050's DCS 6 / fabric 2 floor so saturated GPU
work keeps full memory bandwidth while light workloads drop to lower
memory states.

Verified on MacBook Pro 14-inch M5 Pro (apple,j714s, G17S B1, balanced
profile, docked 3x 1080p165, 7.3.0-124e30a with per-context G17
sustained CPU floor):
- CLPC debugfs status: paced60 (5-6 permille) and paced120 (8 permille)
  drop from stock DCS 6 / SOC 2 (last_vote 0x26) to level 0 (DCS 1 /
  SOC 0, last_vote 0x1); gpu_bound (1000 permille) hits level 3 (DCS 6
  / SOC 2, last_vote 0x26) and steps back down to level 0 (0x1, 2
  permille) once idle, with update errors: 0.
- Matched quiet-desktop vk_feed_bench + macsmc_hwmon (before -> after
  CLPC DTB): paced60 14.91 W -> 14.04 W PSTR (6.45 W -> 5.65 W PHPC,
  1203.7 sub/s); paced120 15.46 W -> 14.40 W PSTR (6.92 W -> 5.90 W
  PHPC, 1441.8 sub/s); saturated gpu_bound 634.4 -> 633.1 sub/s mean.
- Checks: tools/asahi/clpc-gpu-demand-tests.py passes (main + 23
  negative controls); LLVM=1 ARCH=arm64 W=1 apple/t6050-j714s.dtb
  builds cleanly; scripts/checkpatch.pl --strict --no-tree reports 0
  errors and 0 warnings.

Signed-off-by: Isaac Duarte <[email protected]>
@Isaac-Duarte
Isaac-Duarte requested review from a team as code owners November 27, 2026 21:38

@RyanTheTide RyanTheTide left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict at fd18aea: finish first. The power numbers are good. Three items:

Blockers:

  1. One shared change, not one per board. #3400 (erikwb) adds the identical curve (<1 2 4 6>, <0 0 0 2> at 160 500 800) to t6050-j716c.dts. Both boards are T6050 with the same apple_clpc_hw_t6050 floor. Main already carries the T6041 version once, in t6041.dtsi:399-400. Please put this one once in the clpc node of t6050-die0.dtsi (line 293), which covers J714s, J716c, J775c and K116s. Agree with erikwb which PR carries it and close the other. If a board must differ, say what hardware or measured constraint makes it differ.
  2. GPU power gate (our rule after #3075): a change to GPU-driven memory/fabric states needs a gpubench vk+gl soak on the affected generation, with at least 8 loops plus 10 fresh short-lived Vulkan clients and 0 timeouts. The middle buckets (2/0, 4/0) also need a bandwidth-sensitive transitional or multi-display check, as the review bot asked on #3400. Your 3x1080p165 dock covers the multi-display part if you add the soak there.
  3. The row ran with #3437 applied (7.3.0-124e30a + #3437). Please either state that the DTB is the only change against a main kernel, or rerun on main + this head alone. Also move the body to the template (What / Tested / Risk / Not yet), or pr-text will fail.

Checked:

  • The values satisfy the binding (apple,pmc.yaml:288-341): four columns, three ascending shares, top column = the T6050 floor (DCS 6 / fabric 2).
  • update errors: 0 and saturated gpu_bound stays at 0x26; the paced60/paced120 savings (about -0.9 to -1.1 W PSTR) are measured on the machine.

@github-actions github-actions Bot added area:bringup Area from CODEOWNERS (bot) ci-failing A check failed at the PR head (bot) needs-hw-row No hardware row at the PR head (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) needs-template PR body lacks Tested or Risk (bot) labels Nov 27, 2026
@github-actions

Copy link
Copy Markdown

Merge readiness at fd18aea3: not ready yet

Check Detail
CI at head no failing: pr-text / pr-text
Review no needs one approving review from Core or Omarchy Mac (not the author)
Requested changes ok none
Hardware row at head no no line with the head SHA fd18aea3, a Mac and a result in the PR body or a comment
Conflicts ok none
PR text no add a 'Tested:' line; a 'Risk:' line (door and Macs) (guide)

Areas: area:bringup

Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels.

@Isaac-Duarte

Copy link
Copy Markdown
Contributor Author

@RyanTheTide Thanks for catching the duplicate. Since #3400 already carries the shared t6050-die0.dtsi curve plus the stricter clpc-gpu-demand-tests.py coverage, I posted the clean-main J714s multi-display (3x 1080p165 + eDP-1), 4-level bandwidth/power ladder, and #3075 8-loop gpubench vk+gl soak results on #3400 (#3400 (comment)) and am closing #3442 in its favor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:bringup Area from CODEOWNERS (bot) ci-failing A check failed at the PR head (bot) needs-hw-row No hardware row at the PR head (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) needs-template PR body lacks Tested or Risk (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants