@Ehsan I am not sure about the fbdev driver or android, you can try using kernel aduitor for system management (I use it for underclocking my VIM3’s CPU), but in mainline now with the panfrost driver you can try something like:
I checked it but there is no such directory (I search all directories).
I find two related directories:
/sys/class/misc/mali0/device/
/sys/devices/platform/ffe40000.bifrost/
In both of them these items exist:
core_mask dvfs_period js_scheduling_period lp_mem_pool_size misc pm_poweroff reset_timeout uevent
driver gpuinfo js_timeouts mem_pool_max_size modalias power soft_job_timeout
driver_override js_ctx_scheduling_mode lp_mem_pool_max_size mem_pool_size of_node power_policy subsystem
I cannot find “devfreq” among the items above.
when I use cat command over power policy here is the result: #cat power_policy
[coarse_demand] always_on
Another directory which I find is “/sys/class/mpgpu/” includes these items:
cur_freq domain_stat gpu_err max_freq min_freq mpgpucmd scale_mode util_cl util_gl utilization
I can change min_freq with echo n > min_freq (n is a number between 0-4 corresponds to 285,400,500,666,800 respectively)
and see cur_freq with cat cur_freq, but I cannot change max_freq. Also, I did not any policy or …
before I work with the board which has devfreq and I was able to set policy or frequency.
Do you have any idea? May I should compile kernel GPU with enabling devfreq or something.
Ehsan’s 4.9 kernel seems to have different info in /sys/devices and /sys/class from my Linux Khadas 5.10.0-rc6
I didn’t know what gpu dvfs is, websearch says dynamic voltage and frequency scaling. I run mine at 800mhz and friend overclocks to 1ghz. I think for good graphics performance you need a newer kernel with panfrost drivers.
Also, Amlogic a311d specs say mali g52 mp4.
[edit]
i set to high speed with
echo 799999987 > /sys/devices/platform/soc/ffe40000.gpu/devfreq/ffe40000.gpu/max_freq
echo 799999987 > /sys/devices/platform/soc/ffe40000.gpu/devfreq/ffe40000.gpu/min_freq