Low Power CPU operation

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Low Power CPU operation

跳至解决方案
1,204 次查看
A_Guyula
Contributor I

Working with an IMX8m mini and I am looking for power saving operations. I noticed the low power boot mode of the processor. So, I am asking if there is there any way to set the ARM_A53_CLK_ROOT to less than 1Ghz values while linux is running? 

What about cores, can they be disabled. Say four cores reduced to 2 cores for different workloads?

标签 (1)
0 项奖励
回复
1 解答
1,052 次查看
danielchen
NXP TechSupport
NXP TechSupport

Hi @A_Guyula :

 

By default, current BSP support 3 frequencies for imx8mm EVK board.

danielchen_0-1747031852515.png

This is defined in device tree--imx8mm.dtsi

danielchen_1-1747031949803.png

If you need 1Ghz frequency, please add the relative node into the dts file

 

 

Regards

Daniel

在原帖中查看解决方案

0 项奖励
回复
7 回复数
1,190 次查看
danielchen
NXP TechSupport
NXP TechSupport

Hi

You can use below commands to enable/disable CPU.

echo 1 > /sys/devices/system/cpu/cpu1/online

echo 0 > /sys/devices/system/cpu/cpu1/online

 

Regards

Daniel

0 项奖励
回复
1,147 次查看
A_Guyula
Contributor I

This appears to function, thanks. 
Seems you MUST be root to execute these commands, just using sudo doesn't work. Guess I need to refresh on operating a root command as sudo vs actually being root.

Anything else you can help with ? Can the CPU clocks be reduced further than 1.2Ghz? 

 

A M

0 项奖励
回复
1,103 次查看
danielchen
NXP TechSupport
NXP TechSupport

Hi 

 

I would suggest you execute command " cpufreq-set -g powersave" to reduce the CPU frequency.  it can be reduced further than 1.2G hz

 

Regards

Daniel

0 项奖励
回复
1,093 次查看
A_Guyula
Contributor I

it can be reduced further than 1.2G hz

I am confused a little by the statement. Does powersave allow Linux to choose lower clock speed settings or are you saying that it can be done.

If it can be done, are there any examples? 

 

0 项奖励
回复
1,053 次查看
danielchen
NXP TechSupport
NXP TechSupport

Hi @A_Guyula :

 

By default, current BSP support 3 frequencies for imx8mm EVK board.

danielchen_0-1747031852515.png

This is defined in device tree--imx8mm.dtsi

danielchen_1-1747031949803.png

If you need 1Ghz frequency, please add the relative node into the dts file

 

 

Regards

Daniel

0 项奖励
回复
1,042 次查看
A_Guyula
Contributor I

Assuming this works I label this a solution for now.

0 项奖励
回复
1,043 次查看
A_Guyula
Contributor I

Ah, my assumption was that these settings were selected by actual requirement, but this seems to lend some kind of arbitrary settings.

This look like a good thing to try then.

Thanks.

0 项奖励
回复