From 823331df9cf9c8406163331f9c7e3e928a6b097a Mon Sep 17 00:00:00 2001 From: Satya Benson Date: Wed, 2 Dec 2026 18:36:41 -0500 Subject: [PATCH] arm64: dts: apple: t6050: set CLPC apple,ane-cpu-opp to 3.648 GHz 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 --- arch/arm64/boot/dts/apple/t6050-base.dtsi | 2 +- arch/arm64/boot/dts/apple/t6050-die0.dtsi | 6 ++++++ arch/arm64/boot/dts/apple/t6050-j775c.dts | 3 ++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/apple/t6050-base.dtsi b/arch/arm64/boot/dts/apple/t6050-base.dtsi index e3442a946a635..5c4b2443f2d7e 100644 --- a/arch/arm64/boot/dts/apple/t6050-base.dtsi +++ b/arch/arm64/boot/dts/apple/t6050-base.dtsi @@ -283,7 +283,7 @@ opp-level = <9>; clock-latency-ns = <120000>; }; - opp10 { + t6050_p_opp_3648: opp10 { opp-hz = /bits/ 64 <3648000000>; opp-level = <10>; clock-latency-ns = <120000>; diff --git a/arch/arm64/boot/dts/apple/t6050-die0.dtsi b/arch/arm64/boot/dts/apple/t6050-die0.dtsi index 07f4405e44643..d53ab0137983e 100644 --- a/arch/arm64/boot/dts/apple/t6050-die0.dtsi +++ b/arch/arm64/boot/dts/apple/t6050-die0.dtsi @@ -316,6 +316,12 @@ compatible = "apple,t6050-clpc", "apple,t6041-clpc"; reg = <1>; apple,smc = <&smc>; + /* + * The ANE engine speed follows the P cluster (PACC_ANE), + * plateauing from 3.648 GHz (higher OPPs add power with + * no further ANE speedup). + */ + apple,ane-cpu-opp = <&t6050_p_opp_3648>; /* * T6050 GPU busy-share memory-state ladder (common across * M5 Pro/Max/Ultra die 0): DCS 1, 2, 4, 6 and fabric diff --git a/arch/arm64/boot/dts/apple/t6050-j775c.dts b/arch/arm64/boot/dts/apple/t6050-j775c.dts index b0cc617d2c849..ffde9f3293f6e 100644 --- a/arch/arm64/boot/dts/apple/t6050-j775c.dts +++ b/arch/arm64/boot/dts/apple/t6050-j775c.dts @@ -617,7 +617,7 @@ clock-latency-ns = <120000>; }; - opp10 { + t6050_p_opp_3648: opp10 { opp-hz = /bits/ 64 <0xd9701000>; opp-level = <0x0a>; clock-latency-ns = <120000>; @@ -1050,6 +1050,7 @@ compatible = "apple,t6050-clpc", "apple,t6041-clpc"; reg = <0x01>; apple,smc = <&smc>; + apple,ane-cpu-opp = <&t6050_p_opp_3648>; apple,cpu-busy-floor = <6 3>; /* * GPU busy-share memory-state ladder split at 160, 500, and