From fd18aea37205d5e3f40bf0dea62f9d5e1004d1a8 Mon Sep 17 00:00:00 2001 From: Isaac Duarte Date: Fri, 27 Nov 2026 14:32:21 -0700 Subject: [PATCH] arm64: dts: apple: t6050-j714s: add CLPC GPU busy-share memory states 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 --- arch/arm64/boot/dts/apple/t6050-j714s.dts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/apple/t6050-j714s.dts b/arch/arm64/boot/dts/apple/t6050-j714s.dts index a411c8958d2f2..721c8d6daebc0 100644 --- a/arch/arm64/boot/dts/apple/t6050-j714s.dts +++ b/arch/arm64/boot/dts/apple/t6050-j714s.dts @@ -514,9 +514,17 @@ apple,pmp = <&pmp0>; }; -/* The 14-inch M5 Pro has High Power mode */ +/* + * The 14-inch M5 Pro has High Power mode. The GPU's memory states by the busy + * share the GPU driver reports are split at 160, 500 and 800 permille, with the + * top column matching apple_clpc_hw_t6050's DCS 6 / fabric 2 floor so saturated + * GPU work keeps full memory bandwidth while light compositor and video work + * drops to lower memory states. + */ &clpc { apple,high-power-mode; + apple,gpu-busy-memory-states = <1 2 4 6>, <0 0 0 2>; + apple,gpu-busy-permille = <160 500 800>; }; &sgx {