展锐平台的温控策略介绍

展锐平台的温控策略介绍
这⾥以UDX710为例介绍下展锐平台的温控策略,展锐其他平台也类似。
1. UDX710芯⽚内部有6颗 Thermal sensor,相关位置信息如表 1-1。
2. 温度读取: 在控制台下通过 cat命令获取每个的温度,各个sensor路径如路径如表1-2。 例如下⾯命令获取apcpu0的温度,结果为 34.652℃。注意单位为 0.0001℃。
Senosr name也可能通过命令确认,读取 sensor⽬录的type节点即可。
3. 虚拟sensor soc-thmzone 通过软件查看sensor的⽂件节点,会发现有⼀个 thermal_zone0,type是 soc-thmzone。soc-thmzone 是 IPA(Intelligent Power Allocation智能功率分配)通过 ap cpu的所有sensor计算出来的⼀个温度,⽤来做cpu温控的。
4. AP温控措施 AP侧的温控主要是控制cpu,软件上使⽤的是IPA策略,根据⽬标控制温度以PID(Proportional Integral Derivative⽐例积分微分)算法来降频拔核。 除此之外还有⾼温关机。 详细控制温度如表 2-1。 AP侧没有在xml中配置相关策略,⽽是直接使⽤dts中默认的配置。 以dts的如下配置为例,70度(soc_threshold下的temperature = <70000>)是ipa的switch_on_temp, 85度(soc_target下的temperature = <85000>)是control_temp。
验证在85°C以上会降频的:
temp: cpu0-89430 nrcp-91570 cpu1-88811
freq: cpu0-1352000 1-1352000
Time : -----Wed Mar 9 18:45:56 CST 2022-----
temp: cpu0-90710 nrcp-92865 cpu1-90106
freq: cpu0-768000 1-768000
Time : -----Wed Mar 9 18:45:59 CST 2022-----
temp: cpu0-90710 nrcp-92347 cpu1-90106
freq: cpu0-768000 1-768000
Time : -----Wed Mar 9 18:46:02 CST 2022----- # cat /sys/class/thermal/thermal_zone1/temp 34652
1
2# cat /sys/class/thermal/thermal_zone1/type apcpu0-thmzone
1
2                soc_thmzone : soc -thmzone {                        polling -delay -passive = <100>;                        polling -delay = <1000>;                        sustainable -power = <1000>;                        thermal -sensors = <&soc_sensor  17>;                        trips {                                soc_threshold : trip -point@0 {                                        temperature = <70000>;    //IPA 开启温度                                        hysteresis = <1000>;                                        type = "passive";                                };                                soc_target : trip -point@1 {                                        temperature = <85000>;  //IPA 控制温度                                        hysteresis = <1000>;                                        type = "passive";                                };                                soc_crit : soc_crit {                                        temperature = <113000>;  //重启温度适当提⾼ --> 11
3                                        hysteresis = <2000>;                                        type = "critical";                                };                        };        ……      }
1
2
3
4
5
海上应急通信系统6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
5.CP侧降温措施 5.1 4G功率回退 5.2 5G功率回退 5.3 5G降速 配置⽂件l在代码中的路径: layers/meta-unisoc/recipes-core/thermal/files/l 在设备中的路径:
/l 调试时可以直接修改这个⽂件。由于/etc为只读⽂件系统,不能直接替换该⽂件进⾏调试。可以把配置⽂件push到 /home/root/ ⽬录下,需要重启thermal进程,并且设备重新开机后失效,要重新启动thermald。命令如下:
adb push D:\l /home/root/
cn-mroot@udx710-module:/ # /etc/init.d/thermald-init.sh restart
⽂件l如下:隧道隔音降噪施工
温度上升过程中的执⾏策略( Action):<?xml version ='1.0' encoding ='utf-8' standalone ='yes' ?><ThermalConfig > <sensor >  <sensor_type >pa -thmzone </sensor_type >  <polling_delay >2000</polling_delay >  <DroPeriod >30000</DroPeriod >  <AvgPeriod >30000</AvgPeriod >  <zone_level id ="1" type ="active">  <temp >105000</temp >  <trip id ="0" >    <action name ="powerback" arg ="AT+SPTPPB=0" file ="" />  </trip >  <trip id ="1" >    <action name ="powerback"
arg ="AT+SPTPPB=2" file ="" />  </trip >  <trip id ="2" >    <action name ="powerback" arg ="AT+SPTPPB=4" file ="" />  </trip >  <trip id ="3" >    <action name ="powerback" arg ="AT+SPTPPB=6" file ="" />  </trip >  <trip id ="4" >    <action name ="powerback" arg ="AT+SPTPPB=8" file ="" />  </trip >  <trip id ="5" >    <action name ="powerback" arg ="AT+SPTPPB=10" file ="" />  </trip >  </zone_level > </sensor > <sensor >  <sensor_type >pa5g -thmzone </sensor_type >  <polling_delay >2000</polling_delay >  <DroPeriod >30000</DroPeriod >  <AvgPeriod >30000</AvgPeriod >  <zone_level id ="1" type ="active">  <temp >105000</temp >  <trip id ="0" >    <action name ="powerback" arg ='AT+SP5GCMDS="set nr power_control",0,0' file ="" />  </trip >  <trip id ="1" >    <action name ="powerback" arg ='AT+SP5GCMDS="set nr power_control",0,2' file ="" />  </trip >  <trip id ="2" >    <action name ="powerback" arg ='AT+SP5GCMDS="set nr power_control",0,4' file ="" />  </trip >  <trip id ="3" >    <action name ="powerback" arg ='AT+SP5GCMDS="set nr power_control",0,6' file ="" />  </trip >  <trip id ="4" >    <action name ="powerback" arg ='AT+SP5GCMDS="set nr power_control",0,8' file ="" />  </trip >  <trip id ="5" >    <action name ="powerback" arg ='AT+SP5GCMDS="set nr power_control",0,10' file ="" />  </trip >  </zone_level > </sensor ></ThermalConfig >
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
94crw
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
加热平台
55
56
57
58
1. 在同⼀个 Level ⾥,如果这次的温度⼤于等于这个 Level 的温度,则跳到该 Level ⾥的下⼀个 Trip。
2. 如果当前 Trip 已经是该 Level 的最后⼀个 Trip,并且温度⼩于下⼀个 Level 的温度,则没有变化。
3. 如果当前 Trip 已经是该 Level 的最后⼀个 Trip,并且温度⼤于等于下⼀个 Level 的温度,则跳到下⼀个Level 的第⼀个Trip。温度下降过程中的执⾏策略( Action):
1. 在同⼀个 Level ⾥,如果这次的温度⼩于这个 Level 的温度,则跳到该 Level ⾥的前⼀个 Trip。
2. 如果当前 Trip 已经是该 Level 的第⼀个 Trip,并且温度⼩于该 Level 的温度,则跳到前⼀个 Level 的 最后⼀个 Trip。
CP侧策略⽤到的sensor type是pa-thmzone,pa5g-thmzone。需要在设备树中添加:
在控制台下可以读到这⼏个sensor的名字以及温度:
cat /sys/class/thermal/thermal_zone7/type
pa-thmzone
cat /sys/class/thermal/thermal_zone8/type
pa5g-thmzone
cat /sys/class/thermal/thermal_zone9/type
board-thmzone
cat /sys/class/thermal/thermal_zone7/temp
30126
验证cp侧温控策略可以⽤风给模块加热,让其温度达到xml中设置的温度,导出yocto.log:
adb pull /mnt/data/yocto.log d:\123.log
检查log中应该有类似如下功率回退的命令:
Mar 9 18:14:55.985 (none) user.info thermald[4100]: do,===>powerback, mArg:AT+SPTPPB=2, mFileNode: 就表⽰CP侧的策略⽣效了。&thm_zone { pa_thmzone : pa -thmzone {  polling -delay -passive = <0>;  polling -delay = <0>;  thermal -sensors = <&pa_thermistor >; }; pa5g_thmzone : pa5g -thmzone {  polling -delay -passive = <0>;  polling -delay = <0>;  thermal -sensors = <&pa5g_thermistor >; }; bd_thmzone : board -thmzone {  polling -delay -passive = <0>;  polling -delay = <0>;  thermal -sensors = <&board_thermistor >; };};
1
2
3
4横向线性马达
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

本文发布于:2024-09-21 19:32:55,感谢您对本站的认可!

本文链接:https://www.17tex.com/tex/2/337269.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:温度   温控   策略   命令   控制   平台
留言与评论(共有 0 条评论)
   
验证码:
Copyright ©2019-2024 Comsenz Inc.Powered by © 易纺专利技术学习网 豫ICP备2022007602号 豫公网安备41160202000603 站长QQ:729038198 关于我们 投诉建议