The commit is supposed to fix an issue if you build libmali natively. I have not tested it yet.
Mali GPU DDK (rkr34 / rkr35 / rk36 / rkr4.1 / rkr5.1)
To reinforce and document the problem on the X11 > 4G (libmali), maybe someone got a fix somewhere, Jeffy mentioned something about a possible binary hack:
-
NOT performance governor - X11
Kernel: Linux rock5b 5.10.160-rk3588
rock@rock5b:~$ DISPLAY=:0.0 glmark2-es2 arm_release_ver: g13p0-01eac0, rk_so_ver: 3 ======================================================= glmark2 2021.02 ======================================================= OpenGL Information GL_VENDOR: ARM GL_RENDERER: Mali-G610 GL_VERSION: OpenGL ES 3.2 v1.g13p0-01eac0.68603db295fbf2c59ac6b927fdfb1c32 ======================================================= [build] use-vbo=false: FPS: 122 FrameTime: 8.197 ms [build] use-vbo=true: FPS: 138 FrameTime: 7.246 ms [texture] texture-filter=nearest:^C rock@rock5b:~$ ls -la /usr/lib/aarch64-linux-gnu/libmali.so.1.9.0 -rw-r--r-- 1 root root 43346160 Jul 29 2020 /usr/lib/aarch64-linux-gnu/libmali.so.1.9.0 rock@rock5b:~$ dmesg|grep gpu [ 7.287239] vdd_gpu_s0: supplied by vcc5v0_sys [ 7.287949] vdd_gpu_s0: 550 <--> 950 mV at 750 mV, enabled [ 8.346226] rockchip-pm-domain fd8d8000.power-management:power-controller: Looking up gpu-supply from device tree [ 8.346281] rockchip-pm-domain fd8d8000.power-management:power-controller: Looking up gpu-supply property in node /power-management@fd8d8000/power-controller failed [ 8.346462] mali fb000000.gpu: Kernel DDK version g17p0-01eac0 [ 8.346535] mali fb000000.gpu: Looking up mali-supply from device tree [ 8.346755] mali fb000000.gpu: Looking up mem-supply from device tree [ 8.346884] mali fb000000.gpu: Looking up mali-supply from device tree [ 8.346904] vdd_gpu_s0: could not add device link fb000000.gpu: -EEXIST [ 8.346908] vdd_gpu_s0: Failed to create debugfs directory [ 8.346916] mali fb000000.gpu: Looking up mem-supply from device tree [ 8.346932] vdd_gpu_s0: could not add device link fb000000.gpu: -EEXIST [ 8.346936] vdd_gpu_s0: Failed to create debugfs directory [ 8.347147] mali fb000000.gpu: Looking up mali-supply from device tree [ 8.347164] vdd_gpu_s0: could not add device link fb000000.gpu: -EEXIST [ 8.347169] vdd_gpu_s0: Failed to create debugfs directory [ 8.347437] mali fb000000.gpu: bin=0 [ 8.347636] mali fb000000.gpu: leakage=17 [ 8.347711] mali fb000000.gpu: Looking up mali-supply from device tree [ 8.347730] debugfs: Directory 'fb000000.gpu-mali' with parent 'vdd_gpu_s0' already present! [ 8.349922] mali fb000000.gpu: pvtm=853 [ 8.350281] mali fb000000.gpu: pvtm-volt-sel=2 [ 8.351464] mali fb000000.gpu: avs=0 [ 8.351530] W : [File] : drivers/gpu/arm/bifrost/platform/rk/mali_kbase_config_rk.c; [Line] : 143; [Func] : kbase_platform_rk_init(); power-off-delay-ms not available. [ 8.352921] mali fb000000.gpu: GPU hardware issue table may need updating: [ 8.352943] mali fb000000.gpu: GPU identified as 0x7 arch 10.8.6 r0p0 status 0 [ 8.353005] mali fb000000.gpu: No priority control manager is configured [ 8.353463] mali fb000000.gpu: No memory group manager is configured [ 8.353512] mali fb000000.gpu: Protected memory allocator not available [ 8.354730] mali fb000000.gpu: Capping CSF_FIRMWARE_TIMEOUT to CSF_FIRMWARE_PING_TIMEOUT [ 8.355614] mali fb000000.gpu: l=10000 h=85000 hyst=5000 l_limit=0 h_limit=800000000 h_table=0 [ 8.357509] mali fb000000.gpu: Probed as mali0 [ 13.764713] mali fb000000.gpu: Loading Mali firmware 0x1010000 [ 13.772230] mali fb000000.gpu: Mali firmware git_sha: a9b9d413d30169284dfbc5c68e8c65fdaeca28b7
-
NOT performance governor - weston
Kernel: Linux rock5b 5.10.160-rk3588
rock@rock5b:~$ DISPLAY=:0.0 glmark2-es2-wayland
arm_release_ver: g13p0-01eac0, rk_so_ver: 3
=======================================================
glmark2 2021.02
=======================================================
OpenGL Information
GL_VENDOR: ARM
GL_RENDERER: Mali-G610
GL_VERSION: OpenGL ES 3.2 v1.g13p0-01eac0.11addb9882ee8209dc0912af75110af7
=======================================================
[build] use-vbo=false: FPS: 2698 FrameTime: 0.371 ms
[build] use-vbo=true: FPS: 2896 FrameTime: 0.345 ms
[texture] texture-filter=nearest:^C FPS: 3354 FrameTime: 0.298 ms
=======================================================
glmark2 Score: 2982
======================================================= -
Performance - Weston
> rock@rock5b:~$ DISPLAY=:0.0 glmark2-es2-wayland > arm_release_ver: g13p0-01eac0, rk_so_ver: 3 > ======================================================= > glmark2 2021.02 > ======================================================= > OpenGL Information > GL_VENDOR: ARM > GL_RENDERER: Mali-G610 > GL_VERSION: OpenGL ES 3.2 v1.g13p0-01eac0.11addb9882ee8209dc0912af75110af7 > ======================================================= > [build] use-vbo=false: FPS: 3903 FrameTime: 0.256 ms > [build] use-vbo=true: FPS: 3937 FrameTime: 0.254 ms > [texture] texture-filter=nearest: FPS: 4331 FrameTime: 0.231 ms > [texture] texture-filter=linear:^C FPS: 4295 FrameTime: 0.233 ms > ======================================================= > glmark2 Score: 4116 > ======================================================= > rock@rock5b:~$ > rock@rock5b:~$ dmesg|grep gpu > [ 7.321553] vdd_gpu_s0: supplied by vcc5v0_sys > [ 7.322394] vdd_gpu_s0: 550 <--> 950 mV at 750 mV, enabled > [ 8.366516] rockchip-pm-domain fd8d8000.power-management:power-controller: Looking up gpu-supply from device tree > [ 8.366542] rockchip-pm-domain fd8d8000.power-management:power-controller: Looking up gpu-supply property in node /power-management@fd8d8000/power-controller failed > [ 8.366707] mali fb000000.gpu: Kernel DDK version g17p0-01eac0 > [ 8.366744] mali fb000000.gpu: Looking up mali-supply from device tree > [ 8.366892] mali fb000000.gpu: Looking up mem-supply from device tree > [ 8.366931] mali fb000000.gpu: Looking up mali-supply from device tree > [ 8.366941] vdd_gpu_s0: could not add device link fb000000.gpu: -EEXIST > [ 8.366943] vdd_gpu_s0: Failed to create debugfs directory > [ 8.366945] mali fb000000.gpu: Looking up mem-supply from device tree > [ 8.366950] vdd_gpu_s0: could not add device link fb000000.gpu: -EEXIST > [ 8.366952] vdd_gpu_s0: Failed to create debugfs directory > [ 8.367007] mali fb000000.gpu: Looking up mali-supply from device tree > [ 8.367013] vdd_gpu_s0: could not add device link fb000000.gpu: -EEXIST > [ 8.367015] vdd_gpu_s0: Failed to create debugfs directory > [ 8.367221] mali fb000000.gpu: bin=0 > [ 8.367395] mali fb000000.gpu: leakage=17 > [ 8.367414] mali fb000000.gpu: Looking up mali-supply from device tree > [ 8.367422] debugfs: Directory 'fb000000.gpu-mali' with parent 'vdd_gpu_s0' already present! > [ 8.369295] mali fb000000.gpu: pvtm=853 > [ 8.369415] mali fb000000.gpu: pvtm-volt-sel=2 > [ 8.369834] mali fb000000.gpu: avs=0 > [ 8.369866] W : [File] : drivers/gpu/arm/bifrost/platform/rk/mali_kbase_config_rk.c; [Line] : 143; [Func] : kbase_platform_rk_init(); power-off-delay-ms not available. > [ 8.370301] mali fb000000.gpu: GPU hardware issue table may need updating: > [ 8.370310] mali fb000000.gpu: GPU identified as 0x7 arch 10.8.6 r0p0 status 0 > [ 8.370338] mali fb000000.gpu: No priority control manager is configured > [ 8.370508] mali fb000000.gpu: No memory group manager is configured > [ 8.370523] mali fb000000.gpu: Protected memory allocator not available > [ 8.371211] mali fb000000.gpu: Capping CSF_FIRMWARE_TIMEOUT to CSF_FIRMWARE_PING_TIMEOUT > [ 8.371775] mali fb000000.gpu: l=10000 h=85000 hyst=5000 l_limit=0 h_limit=800000000 h_table=0 > [ 8.372214] mali fb000000.gpu: Probed as mali0 > [ 63.783811] mali fb000000.gpu: Loading Mali firmware 0x1010000 > [ 63.785994] mali fb000000.gpu: Mali firmware git_sha: a9b9d413d30169284dfbc5c68e8c65fdaeca28b7 > rock@rock5b:~$
@RadxaYuntian
Armbian has a kernel named rkr5.1, is it just cosmetic or is it from the rockchip SDK? How about the mali blob used to run on X11? Where does it come from?
Rockchip SDK r5.1 indeed is a thing and has been released for a while. It is just that I currently can’t get a hold of it because our git mirror is broken, and since we are still on older kernel and userspaces I don’t have much urgency to fix it. One of our BSP developer has the access to Rockchip git repo, so the company can still get the latest kernel updates from Rockchip. But expecting him to manually uploading every repo is a bit too much to ask.
When we need to upgrade the SDK I’ll check if I can get this shit straight, but right now I have higher priorities.
I can confirm the latest Jeffy’s commit fixed the X11 issues on the latest kernel (rkr5.1).
rock@rock5b:~$ uname -r
5.10.160-rk3588-v4l2
rock@rock5b:~$
rock@rock5b:~$ DISPLAY=:0.0 glmark2-es2
arm_release_ver: g13p0-01eac0, rk_so_ver: 9
=======================================================
glmark2 2021.02
=======================================================
OpenGL Information
GL_VENDOR: ARM
GL_RENDERER: Mali-G610
GL_VERSION: OpenGL ES 3.2 v1.g13p0-01eac0.68603db295fbf2c59ac6b927fdfb1c32
=======================================================
[build] use-vbo=false: FPS: 1294 FrameTime: 0.773 ms
[build] use-vbo=true: FPS: 1145 FrameTime: 0.873 ms
[texture] texture-filter=nearest:^C
rock@rock5b:~$ dmesg|grep -i ddk
[ 7.734600] mali fb000000.gpu: Kernel DDK version g18p0-01eac0
rock@rock5b:~$
Awesome! Will install on my 3 boards today!
What was your procedure for install? Am attempting to but glmark is still showing panfrost.
It looks like you updated your kernel and now it has panfrost enabled.
I think it is not a good idea to mix both. My kernel has no panfrost enabled.
Reading here and there, panfrost seems to have better performance but libmali is more stable and is transparent to the user if you want to do an update && dist-upgrade.
I use Xfce which is light in most cases.
My kernel config:
> # CONFIG_DRM_PANFROST is not set