RK3528固定CPU,GPU,DDR频率

温控部分
禁用温控

echo user_space>/sys/class/thermal/thermal_zone0/policy

解除频率限制

echo 0> /sys/class/thermal/thermal_zone0/cdev0/cur_state

注意:禁用温控后温度过高可能会严重缩短芯片寿命以及直接损坏的可能

CPU部分
查看支持频率

cat /sys/devices/system/cpu/cpufreq/policy0/scaling_available_frequencies
408000 600000 816000 1008000 1200000 1416000 1608000 1800000 2016000

查看运行模式

cat /sys/devices/system/cpu/cpufreq/policy0/scaling_available_governors
conservative ondemand userspace powersave interactive performance schedutil

默认是自动变频模式:schedutil(恢复的话设置为该模式即可)。

设置手动模式

echo userspace > /sys/devices/system/cpu/cpufreq/policy0/scaling_governor

设置CPU频率

echo 2016000 > /sys/devices/system/cpu/cpufreq/policy0/scaling_setspeed

查看单前频率

cat /sys/devices/system/cpu/cpufreq/policy0/cpuinfo_cur_freq

GPU部分
找寻支持节点

ls /sys/class/devfreq/ff700000.gpu
available_frequencies cur_freq governor max_freq name             power     target_freq uevent
available_governors   device   load     min_freq polling_interval subsystem trans_stat

查看支持频率

cat /sys/class/devfreq/ff700000.gpu/available_frequencies
300000000 500000000 600000000 700000000 800000000

查看运行模式

cat /sys/class/devfreq/ff700000.gpu/available_governors
dmc_ondemand userspace powersave performance simple_ondemand

默认是自动变频模式:simple_ondemand(恢复的话设置为该模式即可)。

设置手动定频模式:userspace

echo userspace > /sys/class/devfreq/ff700000.gpu/governor

设置频率

echo 800000000 > /sys/class/devfreq/ff700000.gpu/userspace/set_freq

查看GPU频率

cat /sys/class/devfreq/ff700000.gpu/cur_freq

查看GPU使用率

cat /sys/class/devfreq/ff700000.gpu/load
100@800000000Hz

DDR部分

echo userspace > /sys/devices/platform/dmc/devfreq/dmc/governor #切换变频策略
cat /sys/devices/platform/dmc/devfreq/dmc/available_frequencies #查看支持哪些频率
echo 666000000 > /sys/devices/platform/dmc/devfreq/dmc/userspace/set_freq #定频到666000000
cat /sys/devices/platform/dmc/devfreq/dmc/cur_freq #查看当前频率

发表回复

CAPTCHAis initialing...