As title,
/unit_tests/GPU/ has gpuinfo.sh script file to show the info. of GPU
I think the idle my be the un-loading of GPU, but the value is always 0 and seem the script is wrong.(the /sys/kernel/gc/idle no $7)
Please give some advice for gpu loading.
Hi Harry,
See below, please! following information was from i.MX Expert.
--------------------------------------------
The gpuinfo.sh , actually read /sys/kernel/debug/gc/idle to dump some status, and customer request just related to this file.
The default BSP, read this file when run one gpu app like below:
cat /sys/kernel/debug/gc/idle
Start: 86195859250 ns
End: 86828538250 ns
On: 133228125 ns
Off: 0 ns
Idle: 0 ns
Suspend: 499450875 ns
Explain each filed, note the idle here is power state.
On: Time GPU stays in gcvPOWER_0N.
Off: Time GPU stays in gcvPOWER_0FF.
Idle: Time GPU stays in gcvPOWER_IDLE.
Suspend: Time GPU stays in gcvPOWER_SUSPEND.
Due to default bsp set gcdPOWER_SUSPEND_WHEN_IDLE as 1 , then there is no time into IDLE state.
if you change as below:
diff --git a/drivers/mxc/gpu-viv/hal/kernel/inc/gc_hal_options.h b/drivers/mxc/gpu-viv/hal/kernel/inc/gc_hal_options.h
index 73e98a9..87ad82d 100644
--- a/drivers/mxc/gpu-viv/hal/kernel/inc/gc_hal_options.h
+++ b/drivers/mxc/gpu-viv/hal/kernel/inc/gc_hal_options.h
@@ -547,7 +547,7 @@
/*
gcdPOWER_SUSPEND_WHEN_IDLE
Set to 1 to make GPU enter gcvPOWER_SUSPEND when idle detected,
otherwise GPU will enter gcvPOWER_IDLE.
*/
#ifndef gcdPOWER_SUSPEND_WHEN_IDLE
-# define gcdPOWER_SUSPEND_WHEN_IDLE 1
+# define gcdPOWER_SUSPEND_WHEN_IDLE 0
#endif
Then run some gpu app , and dump that file , you can got result as below.
root@imx8qxpmek:~# cat /sys/kernel/debug/gc/idle
Start: 2117611559250 ns
End: 2121859363125 ns
On: 535987250 ns
Off: 389108375 ns
Idle: 3322708250 ns
Suspend: 0 ns
So i think there is no problem in default BSP, and keep gcdPOWER_SUSPEND_WHEN_IDLE as 1.
-------------------------------------------
Have a nice day!
BR,
Weidong
Hi Wigros,
Thanks your replay!
Explain each filed, note the idle here is power state.
On: Time GPU stays in gcvPOWER_0N.
Off: Time GPU stays in gcvPOWER_0FF.
Idle: Time GPU stays in gcvPOWER_IDLE.
Suspend: Time GPU stays in gcvPOWER_SUSPEND.
-> Is it possible stand for gpu loading with "On / (End-Start)"
Hi NXP,
Can help this question ?