From 175e11d1746563cb385c6f57dca2bff002277f8d Mon Sep 17 00:00:00 2001 From: Zhaoming Luo Date: Fri, 20 Mar 2026 16:19:16 +0800 Subject: [PATCH] arm64: dts: rockchip: Add dynamic-power-coefficient to rk3399 GPU On a Radxa Rock 4B+ board, when executing the following stress test command for a few hours: glmark2-es2 -b refract:duration=60 -s 3840x2160 --off-screen --run-forever The SoC temperature will increase gradually until it reaches the critical temperature and triggers shutdown. Kernel log: kernel: thermal thermal_zone1: gpu-thermal: critical temperature reached, shutting down kernel: reboot: HARDWARE PROTECTION shutdown (Temperature too high) The reason is that the device tree gpu node does not provide a dynamic-power-coefficient; without this value, the gpu cooling device is not registered[0][1], so it will reach the critical temperature. The value 2640 is based on this upstream patch: https://lore.kernel.org/all/20231127081511.1911706-1-lukasz.luba@arm.com [0]: https://github.com/radxa/kernel/blob/8582469f117fdfd5d1ab88fa7e4e15c3b714bf24/drivers/thermal/devfreq_cooling.c#L484-L489 [1]: https://github.com/radxa/kernel/blob/8582469f117fdfd5d1ab88fa7e4e15c3b714bf24/drivers/opp/of.c#L1594-L1606 --- arch/arm64/boot/dts/rockchip/rk3399.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip/rk3399.dtsi index 84b3553d5f28e..571fea8797b1c 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399.dtsi @@ -2352,6 +2352,9 @@ interrupts = , , ; + + dynamic-power-coefficient = <2640>; + interrupt-names = "job", "mmu", "gpu"; clocks = <&cru ACLK_GPU>; #cooling-cells = <2>;