i.MX8M Mini GPU Frequency 500MHz. How to increase?

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

i.MX8M Mini GPU Frequency 500MHz. How to increase?

1,121 次查看
mharg
Contributor I

We are working with the iMX8m-mini using the latest IMX BSP release: imx-5.15.32-2.0.0, and trying to increase GPU performance.

We have found that the GPU is running @ 500MHz.
How do we increase the GPU frequency to 800MHz as stated in the datasheet?

Even under high GPU loads, the reported frequency is always ~500MHz :

root@imx8mm-ddr4-evk:~# cat /sys/kernel/debug/gc/clk
gpu0 mc clock: 499999491 HZ.
gpu0 sh clock: 499999491 HZ.
gpu8 mc clock: 500001018 HZ.

Is there some other configuration that needs to be modified to support the higher frequency operation?

0 项奖励
回复
3 回复数

1,101 次查看
joanxie
NXP TechSupport
NXP TechSupport

you can refer to the dts file, the gpu frequency is set to 1G as default, the 500M you find is divided half by 500M, so this is the max frequency you can get from GPU, if you mean 800Mhz GPU frequency, you can use "$ echo "nominal" > /sys/bus/platform/drivers/galcore/gpu_govern" but you use cat /sys/kernel/debug/gc/clk to check, maybe you only can get 400Mhz value

0 项奖励
回复

1,094 次查看
mharg
Contributor I

Hi @joanxie ,

The gpu_govern file doesn't exist in the dir:

# ls -l /sys/bus/platform/drivers/galcore/
lrwxrwxrwx 1 root root 0 Sep 2 06:05 38000000.gpu -> ../../../../devices/platform/38000000.gpu
--w------- 1 root root 4096 Sep 2 06:05 bind
-rw-r--r-- 1 root root 4096 Sep 2 06:05 gpu3DClockScale
-rw-r--r-- 1 root root 4096 Sep 2 06:05 gpu3DMinClock
--w------- 1 root root 4096 Mar 11 13:37 uevent
--w------- 1 root root 4096 Sep 2 06:05 unbind

 

Is there a missing device-tree configuration to enables the gpu govern support?

Are you using the NXP imx-5.15.32-2.0.0 release?

 

0 项奖励
回复

1,071 次查看
joanxie
NXP TechSupport
NXP TechSupport

sorry for my mistake, this gpu_govern is only available for imx8qm, for imx8mm you need change it in the dtsi file directly, the default frequency is 1000M

"https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm64/boot/dts/freescale/imx8mm.dtsi?..."

0 项奖励
回复