|
AIO-3288C 常用命令(1)查看当前CPU,DDR,GPU频率
发表于 2018-11-15 11:07:37
浏览:7626
|
回复:0
打印
只看该作者
[复制链接]
楼主
当我们拿到AIO-3288C的机器时候,想看一下机器当前CPU,DDR,GPU跑的是什么频率,还有跑大型游戏时的频率是怎么样的,如果用apk去测有点麻烦,
而且不方便,如下是使用串口输入命令显示当前频率的状态,如果使用adb,则需要输入命令后再执行dmesg
shell@firefly:/ # cat /sys/dvfs/dvfs_tree
[ 66.634860] -------------DVFS TREE-----------
[ 66.634860]
[ 66.634860]
[ 66.635065] DVFS TREE:
[ 66.635129] |
[ 66.635129] |- voltage domain:vd_gpu
[ 66.635227] |- current voltage:900000
[ 66.635287] |- current regu_mode:UNKNOWN
[ 66.635363] | |
[ 66.635363] | |- power domain:pd_gpu, status = OFF, current volt = 900000, current regu_mode = UNKNOWN
[ 66.635487] | | |
[ 66.635487] | | |- clock: clk_gpu current: rate 198000, volt = 900000, enable_dvfs = ENABLE
[ 66.635611] | | |- clk limit(enable):[198000000, 480000000]; last set rate = 198000
[ 66.635686] | | | |- freq = 198000, volt = 900000
[ 66.635752] | | | |- freq = 297000, volt = 950000
[ 66.635818] | | | |- freq = 417000, volt = 1100000
[ 66.635885] | | | |- freq = 480000, volt = 1150000
[ 66.635961] | | |- clock: clk_gpu current: rate 198000, regu_mode = UNKNOWN, regu_mode_en = 0
[ 66.636037] |
[ 66.636037] |- voltage domain:vd_logic
[ 66.636129] |- current voltage:1150000
[ 66.636188] |- current regu_mode:UNKNOWN
[ 66.636261] | |
[ 66.636261] | |- power domain:pd_vio, status = OFF, current volt = 0, current regu_mode = UNKNOWN
[ 66.636382] | | |
[ 66.636382] | | |- clock: aclk_vio1 current: rate 592000, volt = 0, enable_dvfs = ENABLE
[ 66.636502] | | |- clk limit(enable):[99000000, 296000000]; last set rate = 592000
[ 66.636578] | | | |- freq = 99000, volt = 1100000
[ 66.636645] | | | |- freq = 296000, volt = 1100000
[ 66.636719] | | |- clock: aclk_vio1 current: rate 592000, regu_mode = UNKNOWN, regu_mode_en = 0
[ 66.636807] | |
[ 66.636807] | |- power domain:pd_ddr, status = OFF, current volt = 1150000, current regu_mode = UNKNOWN
[ 66.636929] | | |
[ 66.636929] | | |- clock: clk_ddr current: rate 528000, volt = 1150000, enable_dvfs = ENABLE
[ 66.637050] | | |- clk limit(enable):[200000000, 528000000]; last set rate = 528000
[ 66.637125] | | | |- freq = 200000, volt = 1075000
[ 66.637191] | | | |- freq = 300000, volt = 1075000
[ 66.637256] | | | |- freq = 456000, volt = 1125000
[ 66.637322] | | | |- freq = 528000, volt = 1150000
[ 66.637395] | | |- clock: clk_ddr current: rate 528000, regu_mode = UNKNOWN, regu_mode_en = 0
[ 66.637469] |
[ 66.637469] |- voltage domain:vd_arm
[ 66.637561] |- current voltage:900000
[ 66.637619] |- current regu_mode:UNKNOWN
[ 66.637691] | |
[ 66.637691] | |- power domain:pd_core, status = OFF, current volt = 900000, current regu_mode = UNKNOWN
[ 66.637815] | | |
[ 66.637815] | | |- clock: clk_core current: rate 126000, volt = 900000, enable_dvfs = ENABLE
[ 66.637935] | | |- clk limit(enable):[126000000, 1800000000]; last set rate = 126000
[ 66.638010] | | | |- freq = 126000, volt = 900000
[ 66.638077] | | | |- freq = 216000, volt = 900000
[ 66.638142] | | | |- freq = 312000, volt = 900000
[ 66.638207] | | | |- freq = 408000, volt = 900000
[ 66.638272] | | | |- freq = 600000, volt = 950000
[ 66.638337] | | | |- freq = 696000, volt = 950000
[ 66.638402] | | | |- freq = 816000, volt = 1000000
[ 66.638468] | | | |- freq = 1008000, volt = 1050000
[ 66.638537] | | | |- freq = 1200000, volt = 1100000
[ 66.638603] | | | |- freq = 1416000, volt = 1200000
[ 66.638670] | | | |- freq = 1512000, volt = 1300000
[ 66.638736] | | | |- freq = 1608000, volt = 1350000
[ 66.638803] | | | |- freq = 1704000, volt = 1350000
[ 66.638869] | | | |- freq = 1800000, volt = 1350000
[ 66.638944] | | |- clock: clk_core current: rate 126000, regu_mode = UNKNOWN, regu_mode_en = 0
[ 66.639016] -------------DVFS TREE END------------
如上打印看出当前GPU频率
clock: clk_gpu current: rate 198000
如上打印看出当前DDR频率
clock: clk_ddr current: rate 528000
如上打印看出当前CPU频率
clock: clk_core current: rate 126000
当然,如果遇到机器有问题的时候需要进行DDR定频或CPU定频,可以通过修改代码,进行CPU定频,其他频道都屏蔽掉
只剩下1.6G频率
kernel/arch/arm/boot/dts/firefly-rk3288-aio-3288c.dts
&clk_core_dvfs_table {
support-pvtm = <0>;
pvtm-operating-points = <
/* KHz uV pvtm margin*/
//126000 900000 25000
//216000 900000 25000
//312000 900000 25000
//408000 900000 25000
//600000 950000 50000
//696000 950000 25000
//816000 1000000 25000
//1008000 1050000 25000
//1200000 1100000 25000
//1416000 1200000 25000
//1512000 1300000 25000
1608000 1350000 25000
//1704000 1350000 25000
//1800000 1350000 25000
>;
status="okay";
};
|
|