Firefly Open Source Community

Title: Cannot set cpu freq above 1200000 [Print This Page]

Author: FesterBester38    Time: 1/13/2016 02:56
Title: Cannot set cpu freq above 1200000
Hello,

I'm trying to set the cpu frequencies on a stock Fireprime (linux kernel 3.10.0 #98) using the pseudo files located in /sys/devices/system/cpu/cpux/xxxx.
I selected a userspace governor with the command:
sudo echo userspace > /sys/devices/system/cpu/cpu3/scaling_governor
And then tried the following command:
sudo echo 1320000 >  /sys/devices/system/cpu/cpu3/scaling_setspeed
The available frequencies list includes the highest values 1200000, 1296000 and 1320000. But the frequency which is set is limited to 1200000 as shown by the command:
sudo cat /sys/devices/system/cpu/cpu3/scaling_cur_freq

Any idea why the max freq is limited to 1200000 instead of 1320000?

Thank you

Author: zhansb    Time: 1/13/2016 15:33
try to modify clk_core_dvfs_table in arch/arm/boot/dts/rk3128-fireprime.dts:
virt-temp-limit-*-cpu-busy:   add high cpu freq list
target-temp = <85>:  increase the temperate value

be careful of the cpu temperate, you should need heat radiating sheet or fan
Author: FesterBester38    Time: 1/13/2016 18:05
zhansb Posted at 1/13/2016 15:33
try to modify clk_core_dvfs_table in arch/arm/boot/dts/rk3128-fireprime.dts:
virt-temp-limit-*-cpu- ...

Thank you for your quick answer.

Do I need to recompile the kernel after such a modification?

Thx
Author: zhansb    Time: 1/14/2016 10:46
yes, just recompile the kernel, and  upgrade resource.img




Welcome Firefly Open Source Community (https://bbs.t-firefly.com/) Powered by Discuz! X3.1