Repository navigation
soc: apple: clpc: raise T6050 GPU busy fabric top state to 3 - #3992
Merged
Merged
Conversation
Add gpu_max[APPLE_CLPC_RAILS] to struct apple_clpc_hw so T6050's DT GPU busy-share ladder validates against DCS 6 / fabric 3 while keeping the absent/malformed-DT fallback GPU floor and ANE ceiling at DCS 6 / fabric 2, and update both T6050 GPU busy-share DT ladders (t6050-die0.dtsi and t6050-j775c.dts) top column (>= 800 permille) from fabric 2 to fabric 3. Lower GPU busy columns stay at fabric 0 so idle and light compositing behavior is unchanged; ANE demand stays at DCS 6 / fabric 2. Sustained bandwidth-heavy GPU workloads on J716c (40-core M5 Max) gain +0.54 FPS in Cyberpunk 2077 T2 with no GPU power-brake clamps. Signed-off-by: Erik Bourget <erik@ebourget.net>
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
Member
|
Tested on Apple M5 Max (
|
DjDeveloperr
approved these changes
Dec 2, 2026
DjDeveloperr
left a comment
Contributor
There was a problem hiding this comment.
Approve, reviewed at 23cd587389ae.
gpu_maxonly raises the limit that DT ladder states are checked against. Every other SoC table leaves it at 0, somax(..., 0)changes nothing there. T6050's no-ladder floor (DCS 6 / fabric 2) and the ANE ceiling are unchanged, and the check still refuses fabric 4 and DCS 7.- The DT change reaches every T6050 board through
t6050-die0.dtsi(J714c, J714s, J716c, J716s, J775d, J873s, K114c, K114s, K116c, K116s), plus the standalone J775c. All 11 built DTBs carry<1 2 4 6>, <0 0 0 3>. - M5 Pro boards: they use the same SoC table and the same CLPC and PMC path as the J775c row. Fabric 3 was the J714s GPU floor until ca3e298. That commit measured no package-power difference under GPU load, only a cost at idle. This ladder keeps fabric 0 below 800 permille, so the idle cost stays gone. I don't think a J714s row needs to hold the merge, but a J714s check in a later M5 slot is still worth doing.
- Fabric 3 comes from our own measurements: our macOS trace has the PMP asking for it for fill, and the PMC honours 0x36 on J716c and J775c.
Contributor
|
Local checks on
Hosted CI is still queued. This merges on these local checks plus the J775c and J716c rows at this head. |
DjDeveloperr
added a commit
to m0d16l14n1/linux
that referenced
this pull request
Dec 2, 2026
Conflicts and duplicates against aurora-silicon#3646, resolved to keep both sides: - apple,pmc.yaml: main's low-power properties, then apple,low-power-smc-notice. - t8142-j813-j815.dtsi: no textual conflict, but both sides add apple,smc to the CLPC node and dtc rejects the duplicate. Keep main's and add only apple,low-power-smc-notice. - clpc-high-power-cleanup-tests.py: main's GPU cap case and apple_clpc_power_limited() handling, and the notice cases with the send_mode/SEQ switch. drivers/soc/apple/clpc.c merges cleanly, with aurora-silicon#2856 and aurora-silicon#3992 in main. Signed-off-by: DjDeveloperr <hey@djdev.me>
This was referenced Dec 2, 2026
DjDeveloperr
added a commit
to m0d16l14n1/linux
that referenced
this pull request
Dec 2, 2026
Conflicts with aurora-silicon#3868 and aurora-silicon#3992, resolved to keep both sides: - apple,pmc.yaml and apple,clpc.yaml: apple,low-power-smc-notice, then apple,low-power-capacity-ceiling and apple,energy-monitor. - t8142-j813-j815.dtsi: the notice, then the ceiling and the energy monitor on the CLPC node. - clpc.c: KUnit only. Keep the T6050 GPU fabric case and the capacity ceiling and energy power cases. The other files merge cleanly. Signed-off-by: DjDeveloperr <hey@djdev.me>
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.
What: Allow T6050 DT GPU busy-share ladders to reach memory fabric state 3 at the top busy column (
>= 800‰) via a dedicatedgpu_maxvalidation ceiling inclpc.c(preserving the6/2fallback floor and ANE debugfs ceiling), and raise the top column ofapple,gpu-busy-memory-statesfrom<0 0 0 2>to<0 0 0 3>int6050-die0.dtsiandt6050-j775c.dts.Tested:
23cd587389ae(trial kernel built frommaind3de772ac0c1+ this PR + G17 M5 ordered-partial PR, default cmdline):/sys/firmware/devicetree/base/soc@200000000/power-management@286806000/performance-controller@1/apple,gpu-busy-memory-statesreads(1, 2, 4, 6, 0, 0, 0, 3)./sys/kernel/debug/apple-pmc/286806000.power-management/statusreadsagent1 floor: 0x00000000 honoured: 0x00000000at idle (both before and after load) andagent1 floor: 0x00000036 honoured: 0x00000036(DCS 6 / fabric 3) under saturated Cyberpunk 2077 2.5 T2 GPU load (55.38 FPS, 0 Asahi faults, 0 pstate-1 clamps).23cd587389ae:drivers/soc/apple/clpc.kunitconfig).tools/asahi/clpc-gpu-demand-tests.py: PASS (all positive cases + all 44 negative controls, includingt6050-j775c.dtsparity).make ARCH=arm64 LLVM=1 CHECK_DTBS=y apple/t6050-{j716c,j775c,j714s,j775d}.dtb: 0 CLPC/PMC schema warnings.checkpatch.pl --strict: 0 errors, 0 warnings, 0 checks;scripts/kernel-doc -none drivers/soc/apple/clpc.c: 0 warnings.Risk: two-way door · T6050 boards (
t6050-die0.dtsiandt6050-j775c.dts).Not yet: Runtime verification on M5 Pro boards (
j714s/j716s/k114s/k116s/j873s), J775c, and J775d.Details
ca3e29829786previously loweredapple_clpc_hw_t6050.gpu[SOC]from 3 to 2 because microbenchmarks saw no speedup while holding fabric 3 at idle cost extra power. With the GPU busy-share ladder, lower columns (< 800‰) and idle remain at fabric 0, so fabric 3 is only requested when the GPU reports>= 800‰busy (helping fill/bandwidth-bound workloads without raising idle or light-load power).apple_clpc_hw_t6050.gpustays{6, 2}so the no-ladder fallback and ANE debugfs ceiling are unchanged; a separateu8 gpu_max[APPLE_CLPC_RAILS] = {6, 3}supplies the DT validation ceiling inapple_clpc_dt_map(), accepting fabric 3 while still rejecting fabric 4 and DCS 7.t6050-die0.dtsiand the standalonet6050-j775c.dtsto<1 2 4 6>, <0 0 0 3>, addedapple_clpc_t6050_policy_testinclpc.c, and updatedtools/asahi/clpc-gpu-demand-tests.py(including standalone J775c ladder parity).Evidence