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?
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
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?
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