Hi all,
Hi Myy,your help is always very valuable for me!
How could I check if the DMABUF is activated? And assuming it is not activated, is there a way for activated it? Or it requires rebuild the kernel again?
In the meantime I tried your suggestion changing the GPU min and max frequencies, and it provided around 40% more FPS (in the same previously condition). But I could not change the polling_interval because the Bash says me 'write error'... the interval is now set to 100 so if I could change it, maybe it help a bit more.This is an interesting optimization!
I've also assured myself that there is none 3D Compositor activated, and the board power supply I think is ok (5V 4A external power supply). But I'm not using the latest user space drivers because they don't work on my Ubuntu 14.04 (I think they were built with a GCC newer than mine).
Thank you very much!
Ariel.
I thought it was DMABUF, but the option is about DMA_FENCE actually. It is named CONFIG_MALI_DMA_FENCE in the kernel configuration and can lead to very good performance improvements when enabled. You might have to recompile your kernel if such support is not enabled though.
More recent user-space binary drivers might fail to initialize if the currently used kernel driver version is not equal or superior. So for example, Midgard r12p0 user-space drivers can be used with Midgard r16p0 kernel drivers, but cannot be used with r11p0 kernel drivers.
Concerning the driver denying lower polling timings, I don't know what could cause this exactly. The value might be hardcoded in 4.4 kernels provided by Rockchip. : github.com/.../mali_kbase_rk.h .
Meanwhile, I'll try to add Mali support to Firefly's 4.12 DTS files.
Alright, here's a patch that should enable the Mali drivers (if integrated into the kernel) on 4.12-rcX kernels.
https://raw.githubusercontent.com/Miouyouyou/MyyQi/master/patches/kernel/v4.12/0300-Adding-Mali-Midgard-and-VCodec-support-to-Firefly-RK.patch
I also provided the appropriate precompiled DTB files in https://github.com/Miouyouyou/MyyQi/tree/master/boot , along with kernel images and the related modules in https://github.com/Miouyouyou/MyyQi/tree/master/lib .
That said, 4.12-rcX do not have support for some unrelated drivers like the video compression/decompression.