Mali GPU DDK (rkr34 / rkr35 / rk36 / rkr4.1 / rkr5.1)

Is anyone running with the latest mali DDK on Debian X11 with xfce4?

rkr35
[ 5.562333] mali fb000000.gpu: Kernel DDK version g15p0-01eac0

rkr34
[ 5.575500] mali fb000000.gpu: Kernel DDK version g13p0-01eac0

I have noticed a regression (kind of) to reach maximum performance with mali rkr35.
Can you share your info/results?

I’m running Kernel DDK version g15p0-01eac0 on gnome wayland.

Hi amazingfate , can you guide me how to update mali lib to version DDK g15 ?

I compiled kernel rkr3.6 with the device tree of rock5b: https://gitlab.com/rk3588_linux/rk/kernel/-/tree/linux-5.10-gen-rkr3.6.

Did you cross-compile the libmali or installed the pre-built one?
My attempt to compile it on board (natively) failed, this was several months ago.

I noticed that GPU starts running at 300Mhz and the peak is 500Mhz (on rare occasions 1000Mhz), while on the previous DDK it starts at 200Mhz and reaches 1000Mhz.

I haven’t changed anything on my DTB (maybe this is the problem). Did you change something related to GPU on DTB or i missed some Kernel config?

I didn’t compile the libmali deb package provided by rockchip. I packaged libmali-dri2to3 in my panfork ppa to use mali blob driver along with panfork mesa driver. I don’t use mali to run my desktop environment. I just use it to run some apps.
Add my ppa and install package malirun, then you can run applications with mali blob.
For example:
malirun chromium-browser

1 Like

I have no experience with Wayland, next week is coming a 2TB 980EVO NVMe pcie SATA (actually a really good deal) and some unknown brand goldenfir M2 SSD Pciex4 (512GB), just in case i have some compatibility issue.

So, you did not change any kernel config or DTS settings?

Yes, nothing on the kernel side.

1 Like

rkr36

rico [ /blfs ]$ journalctl -b |  grep DDK
Mar 03 17:49:19 rocklfs kernel: mali fb000000.gpu: Kernel DDK version g15p0-01eac0

on lfs with gnome, panfork+libmali firmware

How were you viewing the speeds on the GPU? I have been looking for a nvtop version for Mali GPUs. Any help is appreciated.

By running glmark2-es2 on X11 Desktop. mali almost never reached 1000MHz, it was very conservative.

I switched to rkr36 and it’s now back to normal.

You can use the @tkaiser script and monitor CPU/GPU/NPU freq.

#!/bin/bash
renice 19 $BASHPID >/dev/null 2>&1
i=0
printf "%7s %7s %7s %7s %7s %7s %7s\n" $(sed 's/cpul/cpua/' </sys/kernel/debug/clk/clk_summary | sort | awk -F" " '/scmi_clk_/ {print $1}' | sed -e 's/scmi_clk_//' -e 's/000000//' -e 's/cpub01/cpu4-5/' -e 's/cpub23/cpu6-7/' -e 's/cpua/cpu0-3/' | tr "\n" " " | tr '[:lower:]' '[:upper:]')
while true ; do
    printf "%7s %7s %7s %7s %7s %7s %7s\n" $(sed 's/cpul/cpua/' </sys/kernel/debug/clk/clk_summary | sort | awk -F" " '/scmi_clk_/ {print $5}' | sed -e 's/000000//' | tr "\n" " ")
    sleep 5
    ((i++))
    if [ $i -eq 24 ]; then
    i=0
    printf "\n%7s %7s %7s %7s %7s %7s %7s\n" $(sed 's/cpul/cpua/' </sys/kernel/debug/clk/clk_summary | sort | awk -F" " '/scmi_clk_/ {print $1}' | sed -e 's/scmi_clk_//' -e 's/000000//' -e 's/cpub01/cpu4-5/' -e 's/cpub23/cpu6-7/' -e 's/cpua/cpu0-3/' | tr "\n" " " | tr '[:lower:]' '[:upper:]')
    fi
done

Save it as mon.sh
sudo chmod +x mon.sh
sudo ./mon.sh

 CPU0-3  CPU4-5  CPU6-7     DDR     DSU     GPU     NPU
   1800    1416    1416     528    1800     200     200
   1200     408     408     528    1200     200     200
    600    1416     408     528     594     200     200
   1200     408     408     528    1200     200     200
    816    1416     408     528     816     200     200
   1008     408     408    2112    1008     300     200
    816     408     408    1560     816    1000     200
   1200     408    1608    1068    1200    1000     200
   1200     408    1608    1068    1200    1000     200
   1200    1608     408    1068    1200    1000     200
   1416     408     408    1560    1416    1000     200
   1800    1608    1008    1560    1800    1000     200
   1200    1008     408    1068    1200    1000     200
   1200     408    1608    1068    1200    1000     200
   1416     816    1608    1068    1416    1000     200
   1200     408    1608    1068    1200    1000     200
    816     408     408    1068     816    1000     200
   1008    1608     408    1068    1008    1000     200
   1200    1608    1608    1068    1200    1000     200
   1008     408    1416    1068    1008    1000     200
   1200     408    1416    1560    1200    1000     200
   1200     600    1608    1068    1200    1000     200
    816     408    1608    1068     816    1000     200
   1200     408     408    1068    1200    1000     200
^C

The guy actively working on GPU is/was @icecream95 , but i don’t think he is still around.

1 Like

Thanks! This gives me some insight I didn’t have before.

I’m testing X11 with kernel 5.10.160-rk3588 (radxa kernel rkr4.1), libmali: libmali-valhall-g610-g13p0-x11-gbm_1.9-1_arm64.deb.

[ 8.314778] mali fb000000.gpu: Kernel DDK version g17p0-01eac0

but again performance is deficient.

Has anyone found a working libmali for this kernel?

@RadxaYuntian , can you suggest some other libmali to test or any fix?

I think the issue is that your userland driver is g13 while your kernel driver is g17. However, I do not have a newer userland driver.

I have packaged mali-g610-firmware in my panfork ppa.

I don’t think the userland driver version matters tbh.
I’m running my Wayland apps with the blob driver g6, whereas my kernel DDK version is g18 (that is, effectively, rkr5), and I have great performance.
@avaf, what kind of scores are you getting with glmark2? Here are some of mine:

glmark2-es2-wayland with libmali g6:

=======================================================
    glmark2 2021.02
=======================================================
    OpenGL Information
    GL_VENDOR:     ARM
    GL_RENDERER:   Mali-LODX
    GL_VERSION:    OpenGL ES 3.2 v1.g6p0-01eac0.ba52c908d926792b8f5fe28f383a2b03
=======================================================
[build] use-vbo=false: FPS: 4873 FrameTime: 0.205 ms
[build] use-vbo=true: FPS: 6218 FrameTime: 0.161 ms
[texture] texture-filter=nearest: FPS: 6940 FrameTime: 0.144 ms
[texture] texture-filter=linear: FPS: 6879 FrameTime: 0.145 ms
[texture] texture-filter=mipmap: FPS: 6881 FrameTime: 0.145 ms
[shading] shading=gouraud: FPS: 4806 FrameTime: 0.208 ms
[shading] shading=blinn-phong-inf: FPS: 4797 FrameTime: 0.208 ms
[shading] shading=phong: FPS: 4477 FrameTime: 0.223 ms
[shading] shading=cel: FPS: 4453 FrameTime: 0.225 ms
[bump] bump-render=high-poly: FPS: 2881 FrameTime: 0.347 ms
[bump] bump-render=normals: FPS: 7415 FrameTime: 0.135 ms
[bump] bump-render=height: FPS: 8001 FrameTime: 0.125 ms
[effect2d] kernel=0,1,0;1,-4,1;0,1,0;: FPS: 6191 FrameTime: 0.162 ms
[effect2d] kernel=1,1,1,1,1;1,1,1,1,1;1,1,1,1,1;: FPS: 3837 FrameTime: 0.261 ms
[pulsar] light=false:quads=5:texture=false: FPS: 6868 FrameTime: 0.146 ms
[desktop] blur-radius=5:effect=blur:passes=1:separable=true:windows=4: FPS: 2013 FrameTime: 0.497 ms
[desktop] effect=shadow:windows=4: FPS: 4864 FrameTime: 0.206 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 554 FrameTime: 1.805 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=subdata: FPS: 523 FrameTime: 1.912 ms
[buffer] columns=200:interleave=true:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 848 FrameTime: 1.179 ms
[ideas] speed=duration: FPS: 2705 FrameTime: 0.370 ms
[jellyfish] <default>: FPS: 3905 FrameTime: 0.256 ms
[terrain] <default>: FPS: 305 FrameTime: 3.279 ms
[shadow] <default>: FPS: 4313 FrameTime: 0.232 ms
[refract] <default>: FPS: 672 FrameTime: 1.488 ms
[conditionals] fragment-steps=0:vertex-steps=0: FPS: 6761 FrameTime: 0.148 ms
[conditionals] fragment-steps=5:vertex-steps=0: FPS: 6512 FrameTime: 0.154 ms
[conditionals] fragment-steps=0:vertex-steps=5: FPS: 6656 FrameTime: 0.150 ms
[function] fragment-complexity=low:fragment-steps=5: FPS: 6478 FrameTime: 0.154 ms
[function] fragment-complexity=medium:fragment-steps=5: FPS: 5918 FrameTime: 0.169 ms
[loop] fragment-loop=false:fragment-steps=5:vertex-steps=5: FPS: 6398 FrameTime: 0.156 ms
[loop] fragment-steps=5:fragment-uniform=false:vertex-steps=5: FPS: 6373 FrameTime: 0.157 ms
[loop] fragment-steps=5:fragment-uniform=true:vertex-steps=5: FPS: 6350 FrameTime: 0.157 ms
=======================================================
                                  glmark2 Score: 4777 
=======================================================

glmark2-es2 with libmali g13:

=======================================================
    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: 1113 FrameTime: 0.898 ms
[build] use-vbo=true: FPS: 1212 FrameTime: 0.825 ms
[texture] texture-filter=nearest: FPS: 1182 FrameTime: 0.846 ms
[texture] texture-filter=linear: FPS: 1168 FrameTime: 0.856 ms
[texture] texture-filter=mipmap: FPS: 1191 FrameTime: 0.840 ms
[shading] shading=gouraud: FPS: 1116 FrameTime: 0.896 ms
[shading] shading=blinn-phong-inf: FPS: 1131 FrameTime: 0.884 ms
[shading] shading=phong: FPS: 1100 FrameTime: 0.909 ms
[shading] shading=cel: FPS: 1120 FrameTime: 0.893 ms
[bump] bump-render=high-poly: FPS: 866 FrameTime: 1.155 ms
[bump] bump-render=normals: FPS: 1209 FrameTime: 0.827 ms
[bump] bump-render=height: FPS: 1241 FrameTime: 0.806 ms
[effect2d] kernel=0,1,0;1,-4,1;0,1,0;: FPS: 1267 FrameTime: 0.789 ms
[effect2d] kernel=1,1,1,1,1;1,1,1,1,1;1,1,1,1,1;: FPS: 1042 FrameTime: 0.960 ms
[pulsar] light=false:quads=5:texture=false: FPS: 1220 FrameTime: 0.820 ms
[desktop] blur-radius=5:effect=blur:passes=1:separable=true:windows=4: FPS: 846 FrameTime: 1.182 ms
[desktop] effect=shadow:windows=4: FPS: 1032 FrameTime: 0.969 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 395 FrameTime: 2.532 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=subdata: FPS: 388 FrameTime: 2.577 ms
[buffer] columns=200:interleave=true:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 507 FrameTime: 1.972 ms
[ideas] speed=duration: FPS: 982 FrameTime: 1.018 ms
[jellyfish] <default>: FPS: 1036 FrameTime: 0.965 ms
[terrain] <default>: FPS: 242 FrameTime: 4.132 ms
[shadow] <default>: FPS: 1061 FrameTime: 0.943 ms
[refract] <default>: FPS: 394 FrameTime: 2.538 ms
[conditionals] fragment-steps=0:vertex-steps=0: FPS: 1117 FrameTime: 0.895 ms
[conditionals] fragment-steps=5:vertex-steps=0: FPS: 1150 FrameTime: 0.870 ms
[conditionals] fragment-steps=0:vertex-steps=5: FPS: 1148 FrameTime: 0.871 ms
[function] fragment-complexity=low:fragment-steps=5: FPS: 1199 FrameTime: 0.834 ms
[function] fragment-complexity=medium:fragment-steps=5: FPS: 1152 FrameTime: 0.868 ms
[loop] fragment-loop=false:fragment-steps=5:vertex-steps=5: FPS: 1165 FrameTime: 0.858 ms
[loop] fragment-steps=5:fragment-uniform=false:vertex-steps=5: FPS: 1177 FrameTime: 0.850 ms
[loop] fragment-steps=5:fragment-uniform=true:vertex-steps=5: FPS: 1182 FrameTime: 0.846 ms
=======================================================
                                  glmark2 Score: 1010 
=======================================================

Please also note that, for these tests, I set my governors to “performance”.
There is indeed a lot of difference in the score there, so I suggest focusing on the “terrain” and “refract” tests, as those closely correlate to the “real-world” performance in GPU-heavy tasks (in other words, you wouldn’t really notice a difference between 1k fps and 5k fps).

@GinKage, @amazingfate,@RadxaYuntian
I am a bit confused about arm version and ddk version.

I tried to change the firmware using @amazingfate’s firmware, but it does not change the arm version.
Note i am on X11, not Wayland. I’ve noticed Wayland is 2x~3x faster than X11. Dual screen display.

I tried to describe what i did (if i am not mixed up the things):

  • @amazingfate’s firmware:

    rock@rock5b:~$ ls -la /home/rock/mali-g610-firmware-1.0.2/g17p0/mali_csffw.bin
    -rw-r–r-- 1 rock rock 270336 May 16 07:22 /home/rock/mali-g610-firmware-1.0.2/g17p0/mali_csffw.bin
    rock@rock5b:~$ ls -la /home/rock/mali-g610-firmware-1.0.2/g18p0/mali_csffw.bin
    -rw-r–r-- 1 rock rock 266240 Jul 28 09:32 /home/rock/mali-g610-firmware-1.0.2/g18p0/mali_csffw.bin
    rock@rock5b:~$ ls -la /home/rock/mali-g610-firmware-1.0.2/g15p0/mali_csffw.bin
    -rw-r–r-- 1 rock rock 274432 Feb 11 13:09 /home/rock/mali-g610-firmware-1.0.2/g15p0/mali_csffw.bin

  • firmware from deb package libmali-valhall-g610-g13p0-x11-gbm_1.9-1_arm64.deb (seems to be g17p0 but shows g13p0 as described on the file name), i can’t figure out why.

  • tested g17p0 and g18p0 firmware, same bad results as from deb package. It seems to be loading the firmware somewhere else, but i searched for the firmware:

    sudo find / -name mali_csffw.bin
    [sudo] password for rock:
    /usr/lib/firmware/mali_csffw.bin
    /home/rock/mali-g610-firmware-1.0.2/g17p0/mali_csffw.bin
    /home/rock/mali-g610-firmware-1.0.2/g15p0/mali_csffw.bin
    /home/rock/mali-g610-firmware-1.0.2/g18p0/mali_csffw.bin

Results (performance):

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: 522 FrameTime: 1.916 ms
[build] use-vbo=true: FPS: 571 FrameTime: 1.751 ms
[texture] texture-filter=nearest: FPS: 580 FrameTime: 1.724 ms
[texture] texture-filter=linear: FPS: 581 FrameTime: 1.721 ms
[texture] texture-filter=mipmap: FPS: 557 FrameTime: 1.795 ms
[shading] shading=gouraud: FPS: 522 FrameTime: 1.916 ms
[shading] shading=blinn-phong-inf: FPS: 534 FrameTime: 1.873 ms
[shading] shading=phong: FPS: 527 FrameTime: 1.898 ms
[shading] shading=cel: FPS: 531 FrameTime: 1.883 ms
[bump] bump-render=high-poly: FPS: 478 FrameTime: 2.092 ms
[bump] bump-render=normals: FPS: 578 FrameTime: 1.730 ms
[bump] bump-render=height: FPS: 582 FrameTime: 1.718 ms
[effect2d] kernel=0,1,0;1,-4,1;0,1,0;: FPS: 573 FrameTime: 1.745 ms
[effect2d] kernel=1,1,1,1,1;1,1,1,1,1;1,1,1,1,1;: FPS: 499 FrameTime: 2.004 ms
[pulsar] light=false:quads=5:texture=false: FPS: 628 FrameTime: 1.592 ms
[desktop] blur-radius=5:effect=blur:passes=1:separable=true:windows=4: FPS: 354 FrameTime: 2.825 ms
[desktop] effect=shadow:windows=4: FPS: 543 FrameTime: 1.842 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 162 FrameTime: 6.173 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=subdata: FPS: 162 FrameTime: 6.173 ms
[buffer] columns=200:interleave=true:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 218 FrameTime: 4.587 ms
[ideas] speed=duration: FPS: 348 FrameTime: 2.874 ms
[jellyfish] <default>: FPS: 492 FrameTime: 2.033 ms
[terrain] <default>: FPS: 150 FrameTime: 6.667 ms
[shadow] <default>: FPS: 509 FrameTime: 1.965 ms
[refract] <default>: FPS: 220 FrameTime: 4.545 ms
[conditionals] fragment-steps=0:vertex-steps=0: FPS: 561 FrameTime: 1.783 ms
[conditionals] fragment-steps=5:vertex-steps=0: FPS: 574 FrameTime: 1.742 ms
[conditionals] fragment-steps=0:vertex-steps=5: FPS: 833 FrameTime: 1.200 ms
[function] fragment-complexity=low:fragment-steps=5: FPS: 468 FrameTime: 2.137 ms
[function] fragment-complexity=medium:fragment-steps=5: FPS: 487 FrameTime: 2.053 ms
[loop] fragment-loop=false:fragment-steps=5:vertex-steps=5: FPS: 561 FrameTime: 1.783 ms
[loop] fragment-steps=5:fragment-uniform=false:vertex-steps=5: FPS: 572 FrameTime: 1.748 ms
[loop] fragment-steps=5:fragment-uniform=true:vertex-steps=5: FPS: 570 FrameTime: 1.754 ms
=======================================================
                                  glmark2 Score: 486 
=======================================================
rock@rock5b:~$ ls -la /lib/firmware/mali_csffw.bin
-rw-r--r-- 1 root root 270336 Jul 29  2020 /lib/firmware/mali_csffw.bin

/usr/lib/aarch64-linux-gnu/mali


ls -la /home/rock/mali-g610-firmware-1.0.2/g17p0/mali_csffw.bin
ls -la /home/rock/mali-g610-firmware-1.0.2/g15p0/mali_csffw.bin
ls -la /home/rock/mali-g610-firmware-1.0.2/g18p0/mali_csffw.bin

rock@rock5b:~$ ls -la /home/rock/mali-g610-firmware-1.0.2/g15p0/mali_csffw.bin
-rw-r--r-- 1 rock rock 274432 Feb 11 13:09 /home/rock/mali-g610-firmware-1.0.2/g15p0/mali_csffw.bin
rock@rock5b:~$ ls -la /home/rock/mali-g610-firmware-1.0.2/g17p0/mali_csffw.bin
-rw-r--r-- 1 rock rock 270336 May 16 07:22 /home/rock/mali-g610-firmware-1.0.2/g17p0/mali_csffw.bin
rock@rock5b:~$ ls -la /home/rock/mali-g610-firmware-1.0.2/g18p0/mali_csffw.bin
-rw-r--r-- 1 rock rock 266240 Jul 28 09:32 /home/rock/mali-g610-firmware-1.0.2/g18p0/mali_csffw.bin



rock@rock5b:~$ dmesg|grep mali
[    8.361789] mali fb000000.gpu: Kernel DDK version g17p0-01eac0
[    8.361849] mali fb000000.gpu: Looking up mali-supply from device tree
[    8.362042] mali fb000000.gpu: Looking up mem-supply from device tree
[    8.362120] mali fb000000.gpu: Looking up mali-supply from device tree
[    8.362143] mali fb000000.gpu: Looking up mem-supply from device tree
[    8.362276] mali fb000000.gpu: Looking up mali-supply from device tree
[    8.362542] mali fb000000.gpu: bin=0
[    8.362726] mali fb000000.gpu: leakage=17
[    8.362766] mali fb000000.gpu: Looking up mali-supply from device tree
[    8.362777] debugfs: Directory 'fb000000.gpu-mali' with parent 'vdd_gpu_s0' already present!
[    8.364117] mali fb000000.gpu: pvtm=853
[    8.364391] mali fb000000.gpu: pvtm-volt-sel=2
[    8.365013] mali fb000000.gpu: avs=0
[    8.365051] 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.365376] mali fb000000.gpu: GPU hardware issue table may need updating:
[    8.365385] mali fb000000.gpu: GPU identified as 0x7 arch 10.8.6 r0p0 status 0
[    8.365422] mali fb000000.gpu: No priority control manager is configured
[    8.365556] mali fb000000.gpu: No memory group manager is configured
[    8.365578] mali fb000000.gpu: Protected memory allocator not available
[    8.366182] mali fb000000.gpu: Capping CSF_FIRMWARE_TIMEOUT to CSF_FIRMWARE_PING_TIMEOUT
[    8.366459] mali fb000000.gpu: l=10000 h=85000 hyst=5000 l_limit=0 h_limit=800000000 h_table=0
[    8.367106] mali fb000000.gpu: Probed as mali0
[   14.198074] mali fb000000.gpu: Loading Mali firmware 0x1010000
[   14.201834] mali fb000000.gpu: Mali firmware git_sha: a9b9d413d30169284dfbc5c68e8c65fdaeca28b7

DDK is the kernel-side driver, you should always use a firmware corresponding to DDK (@amazingfate took care of that in the panfork ppa, so you shouldn’t mess with it). So, since you have rkr4.1, your kernel driver is g17 (as reported by dmesg), hence you should be using firmware g17. When kernel rkr5.1 arrives, you’ll probably switch to g18 automatically (and gain some performance improvements too).
Now, the userspace blob driver (aka libmali) can be g6 (the only one working for wayland) or g13 (the latest for x11), though that shouldn’t make much difference.
Your results do look somewhat low though. Which governors have you set to performance? This will set all of them (CPU/RAM/GPU):

echo performance | sudo tee /sys/bus/cpu/devices/cpu[046]/cpufreq/scaling_governor /sys/class/devfreq/dmc/governor /sys/class/devfreq/fb000000.gpu/governor

That said, the fact that you’re using dual-screen display might play a part in it… What’s your resolution?

Governor: ‘Performance’.

I have dual 1920x1080. Rolling back to rkr36 i have found these scores and mali userland g6p (don’t know where i got that from).

rock@rock5b:~$ DISPLAY=:0.0 glmark2-es2
arm_release_ver of this libmali is 'g6p0-01eac0', rk_so_ver is '5'.

=======================================================
    glmark2 2021.02
=======================================================
    OpenGL Information
    GL_VENDOR:     ARM
    GL_RENDERER:   Mali-LODX
    GL_VERSION:    OpenGL ES 3.2 v1.g6p0-01eac0.efb75e2978d783a80fe78be1bfb0efc1
=======================================================
[build] use-vbo=false: FPS: 1133 FrameTime: 0.883 ms
[build] use-vbo=true: FPS: 1147 FrameTime: 0.872 ms
[texture] texture-filter=nearest: FPS: 1218 FrameTime: 0.821 ms
[texture] texture-filter=linear: FPS: 1166 FrameTime: 0.858 ms
[texture] texture-filter=mipmap: FPS: 1150 FrameTime: 0.870 ms
[shading] shading=gouraud: FPS: 1041 FrameTime: 0.961 ms
[shading] shading=blinn-phong-inf: FPS: 999 FrameTime: 1.001 ms
[shading] shading=phong: FPS: 975 FrameTime: 1.026 ms
[shading] shading=cel: FPS: 1037 FrameTime: 0.964 ms
[bump] bump-render=high-poly: FPS: 760 FrameTime: 1.316 ms
[bump] bump-render=normals: FPS: 1199 FrameTime: 0.834 ms
[bump] bump-render=height: FPS: 1208 FrameTime: 0.828 ms
[effect2d] kernel=0,1,0;1,-4,1;0,1,0;: FPS: 1192 FrameTime: 0.839 ms
[effect2d] kernel=1,1,1,1,1;1,1,1,1,1;1,1,1,1,1;: FPS: 910 FrameTime: 1.099 ms
[pulsar] light=false:quads=5:texture=false: FPS: 1204 FrameTime: 0.831 ms
[desktop] blur-radius=5:effect=blur:passes=1:separable=true:windows=4: FPS: 786 FrameTime: 1.272 ms
[desktop] effect=shadow:windows=4: FPS: 1123 FrameTime: 0.890 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 415 FrameTime: 2.410 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=subdata: FPS: 396 FrameTime: 2.525 ms
[buffer] columns=200:interleave=true:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 570 FrameTime: 1.754 ms
[ideas] speed=duration: FPS: 929 FrameTime: 1.076 ms
[jellyfish] <default>: FPS: 958 FrameTime: 1.044 ms
[terrain] <default>: FPS: 233 FrameTime: 4.292 ms
[shadow] <default>: FPS: 996 FrameTime: 1.004 ms
[refract] <default>: FPS: 376 FrameTime: 2.660 ms
[conditionals] fragment-steps=0:vertex-steps=0: FPS: 1128 FrameTime: 0.887 ms
[conditionals] fragment-steps=5:vertex-steps=0: FPS: 1131 FrameTime: 0.884 ms
[conditionals] fragment-steps=0:vertex-steps=5: FPS: 1089 FrameTime: 0.918 ms
[function] fragment-complexity=low:fragment-steps=5: FPS: 1139 FrameTime: 0.878 ms
[function] fragment-complexity=medium:fragment-steps=5: FPS: 1058 FrameTime: 0.945 ms
[loop] fragment-loop=false:fragment-steps=5:vertex-steps=5: FPS: 1097 FrameTime: 0.912 ms
[loop] fragment-steps=5:fragment-uniform=false:vertex-steps=5: FPS: 1076 FrameTime: 0.929 ms
[loop] fragment-steps=5:fragment-uniform=true:vertex-steps=5: FPS: 1097 FrameTime: 0.912 ms
=======================================================
                                  glmark2 Score: 967 
=======================================================


rock@rock5b:~$ ls -la /usr/lib/firmware/mali_csffw.bin
-rw-r--r-- 1 root root 274432 Jul 29  2020 /usr/lib/firmware/mali_csffw.bin

Humm, GL_VERSION: OpenGL ES 3.2 v1.g13 is actually mali so version and not firmware version.

Rock@rock5b:~$ dmesg|grep mali
[    3.559750] mali fb000000.gpu: Kernel DDK version g15p0-01eac0
[    3.559820] mali fb000000.gpu: Looking up mali-supply from device tree
[    3.560045] mali fb000000.gpu: Looking up mem-supply from device tree
[    3.560141] mali fb000000.gpu: Looking up mali-supply from device tree
[    3.560169] mali fb000000.gpu: Looking up mem-supply from device tree
[    3.560343] mali fb000000.gpu: Looking up mali-supply from device tree
[    3.560652] mali fb000000.gpu: bin=0
[    3.560842] mali fb000000.gpu: leakage=24
[    3.560878] mali fb000000.gpu: Looking up mali-supply from device tree
[    3.560962] debugfs: Directory 'fb000000.gpu-mali' with parent 'vdd_gpu_s0' already present!
[    3.562322] mali fb000000.gpu: pvtm=924
[    3.562380] mali fb000000.gpu: pvtm-volt-sel=5
[    3.563448] mali fb000000.gpu: avs=0
[    3.563505] W : [File] : drivers/gpu/arm/bifrost/platform/rk/mali_kbase_config_rk.c; [Line] : 136; [Func] : kbase_platform_rk_init(); power-off-delay-ms not available.
[    3.564150] mali fb000000.gpu: GPU hardware issue table may need updating:
[    3.564167] mali fb000000.gpu: GPU identified as 0x7 arch 10.8.6 r0p0 status 0
[    3.564261] mali fb000000.gpu: No priority control manager is configured
[    3.564657] mali fb000000.gpu: No memory group manager is configured
[    3.564690] mali fb000000.gpu: Protected memory allocator not available
[    3.565128] mali fb000000.gpu: Capping CSF_FIRMWARE_TIMEOUT to CSF_FIRMWARE_PING_TIMEOUT
[    3.566202] mali fb000000.gpu: Couldn't find power_model DT node matching 'arm,mali-simple-power-model'
[    3.566219] mali fb000000.gpu: Error -22, no DT entry: mali-simple-power-model.static-coefficient = 1*[0]
[    3.566408] mali fb000000.gpu: Error -22, no DT entry: mali-simple-power-model.dynamic-coefficient = 1*[0]
[    3.566597] mali fb000000.gpu: Error -22, no DT entry: mali-simple-power-model.ts = 4*[0]
[    3.566797] mali fb000000.gpu: Error -22, no DT entry: mali-simple-power-model.thermal-zone = ''
[    3.569657] mali fb000000.gpu: Using configured power model mali-lodx-power-model, and fallback mali-simple-power-model
[    3.569817] mali fb000000.gpu: l=10000 h=85000 hyst=5000 l_limit=0 h_limit=800000000 h_table=0
[    3.571241] mali fb000000.gpu: Probed as mali0
[    4.917175] mali fb000000.gpu: Loading Mali firmware 0x1010000
[    4.918894] mali fb000000.gpu: Mali firmware git_sha: 9b8db9aa05a7b4f3066fd75dbdff695262f891fe

and:

rock@rock5b:~$ dmesg|grep DDK
[    3.559750] mali fb000000.gpu: Kernel DDK version g15p0-01eac0

Actually for X11 it does, based on the results.

Update:

Installed firmware g17p0 and libmali-valhall-g610-g6p0-x11-gbm_1.9-1_arm64.deb , same problem.