Repository navigation
Conversation
On T6050 (M5 Pro/Max), ANE execution speed scales with the P cluster (PACC_ANE) frequency and plateaus at 3.648 GHz (opp10); higher OPPs add power without further ANE speedup. When ANE clients run on the other clusters and PACC_ANE stays at its minimum frequency or parked, the engine runs roughly 4x slower than macOS. Label opp10 (3.648 GHz) on the P cluster OPP table as t6050_p_opp_3648 and wire apple,ane-cpu-opp = <&t6050_p_opp_3648> on the T6050 CLPC node so CLPC holds PACC_ANE at 3.648 GHz while ANE work is active and releases the floor when idle. Signed-off-by: Satya Benson <satya@benson.earth>
There was a problem hiding this comment.
Verdict: MERGE at 823331d
Checked: Both the shared T6050 DT and the standalone J775c DT link CLPC to the existing P-cluster 3.648 GHz OPP. The same policy reaches every T6050 tree through its existing source layout. I validated the PMC binding and ran the exact OPP parser host test, including its refusal cases and reference releases. The author reports all seven T6050 DTBs built.
RyanTheTide
left a comment
There was a problem hiding this comment.
Reviewed 823331d. Both T6050 device-tree paths reference the existing performance-cluster OPP through the existing CLPC property without changing the OPP table values. The reported seven DTB builds and J775c row cover boot, s2idle, and releasing the minimum frequency after ANE work.
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
DjDeveloperr
left a comment
There was a problem hiding this comment.
Read 823331df9cf9 against main 2b09f588. The DT change itself is right. My one concern is the order: please land it after #3964, not before.
What I checked
- All 11 T6050 boards, not only the seven listed: the base and head DTBs build,
W=1 CHECK_DTBSgives the same 62 warnings, anddt_binding_checkonapple,pmc.yamlis clean. In every head DTB the property resolves to the 3648000000 Hz OPP of the P cluster's table. The ANE is enabled on J714s, J716c, J775c, K114c and K114s only. clpc.ctakes it onapple,t6050-clpc. Host tests:clpc-*9/9.- No text overlap with #3964, #3989 or #3741. It needs #4016 for a parked P cluster, and that just merged.
Why the order matters. The body says unet-320 stays bridge-bound at 2,462-2,633 us on main without #3964. The main baseline you posted in #3964 was 2,536 / 2,646 / 2,576 us, so that is no gain. Landed today, this would take the P cluster from parked to 3.648 GHz for every ANE burst, on the J714s and J716c laptops too, for the same time. #3964 is still a draft, and its current head does not add the xl window to t6050-j775c.dts.
What would settle it, either one:
- #3964 lands first. Then this one is measured better (1,054 us to 543-619 us on J775c, at macOS's firmware time).
- A run on
mainwithout #3964 that does get faster with the P cluster at 3.648 GHz. On the stock kernel this needs no reboot: set theperformancegovernor on the P cluster (that also stops parking) and step itsscaling_max_freqthrough a few OPPs, with the ANE job on an M-cluster CPU.
Please also add the OPP sweep to the body (time and power at a few states above and below 3.648 GHz). "Plateaus at 3.648 GHz" has no table behind it yet. The T8132 and T8142 values each have theirs in clpc.c.
What: Label the 3.648 GHz P-cluster OPP (
opp10) ast6050_p_opp_3648and wireapple,ane-cpu-opp = <&t6050_p_opp_3648>on the T6050 CLPC node so CLPC holds the P cluster (PACC_ANE) at 3.648 GHz while ANE work is active.Tested:
T6050 / J775c(Apple M5 Max, default command line) at exact head823331df9cf9inside batched candidate7f0aa88166ed(linux-aurora-ane4): boots cleanly withapple,ane-cpu-opppresent in live DTB,0failed units,0new kernel errors, 3/3 15 s RTCs2idlePASS (suspend_stats 3/0),policy12 minreturns to300000at idle; host testsclpc-ane-cpu-opp-tests.pyandclpc-gpu-demand-tests.pyPASS, all 7 T6050 DTBs build cleanly,checkpatch.pl --strict0/0/0.Risk: two-way door ·
T6050Macs (M5 Pro/M5 Max/M5 Ultradie 0).Not yet: None for
J775c; otherT6050boards sharet6050-die0.dtsiand compile cleanly.Details
On
T6050, H17 ANE execution speed scales with the P-cluster (PACC_ANE) operating point and plateaus at 3.648 GHz (opp10), with higher OPPs adding power without further ANE speedup. Withoutapple,ane-cpu-opp, running ANE workloads from another CPU cluster leavesPACC_ANEat its minimum frequency or parked, slowingunet-320roughly 2x even after#3964configures the T6050 AXI2AF engine bridges (1,054 usparked vs542.8 usIN_PLACE/584–619 uscopying at3.648 GHz, where firmware time456–471 usmatches macOS 27.2 CoreML467.9 us).This pure devicetree change reuses the
apple,ane-cpu-oppsupport already indrivers/soc/apple/clpc.cwith no driver changes. Note that onmainwithout#3964(engine bridges),unet-320remains bridge-bound at~2,462–2,633 us; together with#3964and#4016(idle parking min-floor support), default-cmdlineunet-320reaches542.8 us(IN_PLACE).Evidence