RK3588 七通道温区与冷却拓扑

RK3588 七通道温区与冷却拓扑

1. Channel映射

channel zone type 用途
0 soc-thermal top/SoC控制温度
1 bigcore0-thermal 大核簇0
2 bigcore1-thermal 大核簇1
3 littlecore-thermal 小核簇
4 center-thermal 中心区域
5 gpu-thermal GPU
6 npu-thermal NPU

名称来自本树 DTS与 driver注释。

2. Soc zone

1
2
3
4
5
75°C passive threshold, hyst 2°C
85°C passive target, hyst 2°C
115°C critical
polling 1s / passive 20ms
sustainable power 2100mW

3. Cooling map

85°C target绑定:

1
2
3
4
cpu_l0   little cluster
cpu_b0 big cluster 0
cpu_b2 big cluster 1
gpu devfreq

每项 contribution 1024,上下限均 NO_LIMIT。

4. Local zones

其它六个 zone每个只有115°C critical,没有普通 passive cooling map。其主要作用是发现局部 hotspot并触发安全关机。

5. NPU

npu-thermal 监测 NPU热点,但公共 cooling map不引用 NPU。NPU可能由其它系统监控/devfreq策略管理;不能根据有 thermal zone就断言 Thermal Core会直接降 NPU频率。

6. TSADC节点

1
2
3
4
5
6
7
8
base 0xfec00000
IRQ 397
clock 2MHz
reset tsadc/apb
7 sensor cells
hw TSHUT 120°C
CRU reset
active low

SoC基础节点 disabled,板级 DTS需启用。

7. 软件与硬件阈值

1
2
3
85°C: 开始主要 cooling control
115°C: 软件 critical shutdown
120°C: 硬件 TSHUT/CRU reset

5°C margin是否足够要结合过热斜率、关机耗时和传感器误差验证。

8. Power allocator

控制基于 channel0 soc temp和2100mW sustainable power。局部 big/GPU/NPU温度在到115°C前不参与该 zone PID输入,因此高局部热点场景必须实测。

9. 风扇

公共 soc-thermal map未绑定 pwm-fan。部分板的厂商 pwm-fan通过 rockchip,temp-trips和 system monitor notifier独立控制,形成与 Thermal Core并行路径。

10. 观测

1
2
3
4
5
6
for z in /sys/class/thermal/thermal_zone*; do
printf '%s ' "$(cat "$z/type")"; cat "$z/temp"
done
for c in /sys/class/thermal/cooling_device*; do
echo "$(cat "$c/type") $(cat "$c/cur_state")/$(cat "$c/max_state")"
done

文章互动

阅读 --

留言

0 条留言

正在加载留言…