Repository navigation
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
Closed
Isaac-Duarte wants to merge 1 commit into
Isaac-Duarte wants to merge 1 commit into
Conversation
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]>
RyanTheTide
reviewed
Nov 27, 2026
RyanTheTide
left a comment
Contributor
There was a problem hiding this comment.
Verdict at fd18aea: finish first. The power numbers are good. Three items:
Blockers:
- One shared change, not one per board. #3400 (erikwb) adds the identical curve (
<1 2 4 6>, <0 0 0 2>at160 500 800) tot6050-j716c.dts. Both boards are T6050 with the sameapple_clpc_hw_t6050floor. Main already carries the T6041 version once, int6041.dtsi:399-400. Please put this one once in theclpcnode oft6050-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. - 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. - 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: 0and saturatedgpu_boundstays at0x26; the paced60/paced120 savings (about -0.9 to -1.1 W PSTR) are measured on the machine.
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
Contributor
Author
|
@RyanTheTide Thanks for catching the duplicate. Since #3400 already carries the shared |
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
On
t6050-j714s(MacBook Pro 14-inch M5 Pro),&clpccurrently leavesapple,gpu-busy-memory-statesandapple,gpu-busy-permilleunset. Without a GPU busy-share curve, the CLPC driver holds its stock memory floor (dcsstate 6 /socstate 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
&clpcinarch/arm64/boot/dts/apple/t6050-j714s.dts, following #3400 while matchingapple_clpc_hw_t6050'sDCS 6 / SOC 2floor 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 tolevel 0(DCS 1 / SOC 0,0x1).Hardware Validation (M5 Pro /
apple,j714s/G17S B1)Tested docked (3x 1080p165), AC connected,
balancedprofile, kernel7.3.0-124e30awith #3437 (aurora.ko).Live CLPC Debugfs State Transitions
/sys/kernel/debug/286806000.power-management:performance-controller@1/status:last_vote/ state / busy)last_vote/ state / busy)paced600x26/dcs 6, soc 2(91–93 permille)0x1/level 0(dcs 1, soc 0,5–6 permille)paced1200x26/dcs 6, soc 2(93–94 permille)0x11 -> 0x1/level 0(dcs 1, soc 0,8 permille)gpu_bound0x26/dcs 6, soc 2(1000 permille)0x26/level 3(dcs 6, soc 2,1000 permille)gpu_boundidle (+2s)0x1/level 0(dcs 1, soc 0,2 permille)update errors: 0across all samples (56261 -> 58435).Matched Quiet-Desktop Power & Throughput (
KWin + Brave,macsmc_hwmon+vk_feed_bench)#3437+ Stock DTB#3437+ CLPC DTB#3437paced60(2 runs)15.29 WPSTR /6.85 WPHPC (1203.7 sub/s)14.91 WPSTR /6.45 WPHPC (1203.3 sub/s)14.04 WPSTR /5.65 WPHPC (1203.7 sub/s)-0.87 WPSTR /-0.80 WPHPC (-1.25 Wvs stock)paced120(2 runs)16.91 WPSTR /8.47 WPHPC (1442.1 sub/s)15.46 WPSTR /6.92 WPHPC (1441.8 sub/s)14.40 WPSTR /5.90 WPHPC (1441.8 sub/s)-1.06 WPSTR /-1.02 WPHPC (-2.51 Wvs stock)refill_d1(3 runs)21.60 WPSTR /12.59 WPHPC (6241.3 sub/s)20.30 WPSTR /11.70 WPHPC (6240.5 sub/s)19.95 WPSTR /11.47 WPHPC (6263.9 sub/s)-0.35 WPSTR /-0.23 WPHPC (+0.4%)gpu_bound(3 runs)33.49 WPSTR /22.60 WPHPC (624.3 sub/s)30.47 WPSTR /20.13 WPHPC (634.4 sub/s)30.20 WPSTR /20.07 WPHPC (633.1 sub/s)-0.27 WPSTR (-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 ont6050-j714s.dtsgit format-patch -1 --stdout HEAD | ./scripts/checkpatch.pl --strict --no-tree -:0 errors, 0 warnings, 0 checks