Panfrost for Bifrost GPUs - Big improvements

As it is, GT King Pro do encounter kernel panic so if mesa-git-20.3 does not work then will go to testing branch.

Edit: Only worry is going to testing branch and if the updates is large, might encounter kernel panic during upgrade to testing branch which potentially might corrupt the USB stick.

To go to testing branch are these the correct instruction

sudo pacman-mirrors --api --set-branch testing

sudo pacman-mirrors --fasttrack 5 && sudo pacman -Syyu

You can also do the quick route: sudo pacman-mirrors -aS testing && sudo pacman -Syyu

Just to Update my experience of switching from Stable Branch linux kernel 5.9.6-1 on Beelink GT King Pro to testing branch.

It looks like with linux kernel 5.9.6-1 is reasonably stable on GT King Pro able to successfully install a size of 751.69 MiB without encountering kernel panic at one go.

But just as I was about to send this message, I thought of checking whether mesa-git-21.0.0 was installed, Click on Package Manager Icon, at that very moment Kernel Panic kicks in! Luckily the installation of the testing branch is already completed and no more writing to the USB disk.

Turn Power Off and then On all is well. Manjaro boot up ok. Thank you for your patience and hand holding guide this greenhorn in linux and Manjaro in particular.

First experience on linux kernel 5.9.8-1 with mesa-git-21.0.0 on Firefox writing this message, it seems like there is a lag or lack of responsiveness as I type.

[jfl@GTKPro ~]$ uname -a
Linux GTKPro 5.9.8-1-MANJARO-ARM #1 SMP Fri Nov 13 10:36:06 CET 2020 aarch64 GNU/Linux
[jfl@GTKPro ~]$ glxinfo -B
name of display: :0.0
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: Panfrost (0xffffffff)
    Device: Mali G52 (Panfrost) (0xffffffff)
    Version: 21.0.0
    Accelerated: yes
    Video memory: 3627MB
    Unified memory: yes
    Preferred profile: compat (0x2)
    Max core profile version: 0.0
    Max compat profile version: 2.1
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 2.0
OpenGL vendor string: Panfrost
OpenGL renderer string: Mali G52 (Panfrost)
OpenGL version string: 2.1 Mesa 21.0.0-devel (git-035e21e780)
OpenGL shading language version string: 1.20

OpenGL ES profile version string: OpenGL ES 2.0 Mesa 21.0.0-devel (git-035e21e780)
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 1.0.16

Earlier before Kernel Panic strike completed switching to testing branch.

[jfl@GTKPro ~]$ sudo pacman-mirrors -aS testing && sudo pacman -Syyu
[sudo] password for jfl: 
::INFO Branch in config is changed
::INFO Downloading mirrors from repo.manjaro.org
::INFO Using default mirror file
::INFO Querying mirrors - This may take some time
  ..... Austria        : http://mirror.easyname.at/manjaro/
  ..... Austria        : ftp://mirror.easyname.at/manjaro/

::ERROR TIMEOUT 'ftp://mirror.easyname.at/manjaro/'

  ..... Brazil         : https://www.caco.ic.unicamp.br/manjaro/
  3.030 Bulgaria       : https://manjaro.ipacct.com/manjaro/
  2.145 Canada         : https://osmirror.org/manjaro/
  ..... Chile          : https://mirror1.cl.netactuate.com/manjaro/
  ..... Chile          : http://mirror1.cl.netactuate.com/manjaro/
  ..... Chile          : ftp://mirror1.cl.netactuate.com/manjaro/
  1.827 Denmark        : https://www.uex.dk/public/manjaro/
  ..... France         : https://manjaro.mcofficer.me/

::ERROR _ssl.c:1107: The handshake operation timed out 'https://manjaro.mcofficer.me/'

  1.614 France         : https://manjaro.ynh.ovh/
  1.978 France         : http://kibo.remi.lu/
  1.930 Germany        : https://mirror.alpix.eu/manjaro/
  ..... Germany        : https://manjaro.re/
  ..... Germany        : http://manjaro.re/
  ..... Germany        : ftp://manjaro.re/
  ..... Germany        : https://mirror.atysleaks.org/manjaro/
  ..... Germany        : http://mirror.atysleaks.org/manjaro/
  1.418 Germany        : https://mirror.netzspielplatz.de/manjaro/packages/
  2.283 Germany        : https://manjaro.moson.eu/
  ..... Germany        : http://manjaro.moson.eu/
  3.140 Germany        : https://manjaro.moson.org/
  ..... Germany        : http://manjaro.moson.org/
  1.982 Hungary        : https://quantum-mirror.hu/mirrors/pub/manjaro/
  1.224 Hungary        : http://quantum-mirror.hu/mirrors/pub/manjaro/
  2.649 Indonesia      : https://mirror.deace.id/manjaro/
  1.693 Indonesia      : http://mirror.deace.id/manjaro/
  ..... Japan          : http://ftp.tsukuba.wide.ad.jp/Linux/manjaro/

::ERROR TIMEOUT 'http://ftp.tsukuba.wide.ad.jp/Linux/manjaro/'

  2.590 Poland         : https://mirror.tuchola-dc.pl/manjaro/
  1.577 Switzerland    : https://mirror.init7.net/manjaro/
  1.178 Switzerland    : http://mirror.init7.net/manjaro/
  1.836 Ukraine        : http://mirrors.colocall.net/manjaro/
  ..... Ukraine        : ftp://mirrors.colocall.net/manjaro/
  1.184 United_Kingdom : http://manjaro.mirrors.uk2.net/
  2.826 United_Kingdom : https://uk.mirrors.fossho.st/manjaro/
  ..... United_Kingdom : http://uk.mirrors.fossho.st/manjaro/
  3.370 United_States  : https://repo.ialab.dsu.edu/manjaro/
  1.617 United_States  : http://repo.ialab.dsu.edu/manjaro/
  2.787 United_States  : https://mirror.dacentec.com/manjaro/
::INFO Writing mirror list
::Switzerland     : https://mirror.init7.net/manjaro/arm-testing
::United_Kingdom  : http://manjaro.mirrors.uk2.net/arm-testing
::Hungary         : https://quantum-mirror.hu/mirrors/pub/manjaro/arm-testing
::Germany         : https://mirror.netzspielplatz.de/manjaro/packages/arm-testing
::France          : https://manjaro.ynh.ovh/arm-testing
::United_States   : https://repo.ialab.dsu.edu/manjaro/arm-testing
::Indonesia       : https://mirror.deace.id/manjaro/arm-testing
::Denmark         : https://www.uex.dk/public/manjaro/arm-testing
::Germany         : https://mirror.alpix.eu/manjaro/arm-testing
::France          : http://kibo.remi.lu/arm-testing
::Canada          : https://osmirror.org/manjaro/arm-testing
::Poland          : https://mirror.tuchola-dc.pl/manjaro/arm-testing
::United_States   : https://mirror.dacentec.com/manjaro/arm-testing
::Bulgaria        : https://manjaro.ipacct.com/manjaro/arm-testing
::United_Kingdom  : https://uk.mirrors.fossho.st/manjaro/arm-testing
::Germany         : https://mirror.atysleaks.org/manjaro/arm-testing
::Germany         : https://manjaro.moson.org/arm-testing
::Germany         : https://manjaro.moson.eu/arm-testing
::Ukraine         : http://mirrors.colocall.net/manjaro/arm-testing
::Germany         : https://manjaro.re/arm-testing
::Chile           : https://mirror1.cl.netactuate.com/manjaro/arm-testing
::Brazil          : https://www.caco.ic.unicamp.br/manjaro/arm-testing
::INFO Mirror list generated and saved to: /etc/pacman.d/mirrorlist
:: Synchronizing package databases...
 core                  225.2 KiB   388 KiB/s 00:01 [######################] 100%
 extra                   2.4 MiB  3.82 MiB/s 00:01 [######################] 100%
 community               5.5 MiB  7.36 MiB/s 00:01 [######################] 100%
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Packages (38) btrfs-progs-5.9-1  bzip2-1.0.8-4  ca-certificates-mozilla-3.59-1
              firefox-83.0-1  gdk-pixbuf2-2.42.0-2  glslang-11.0.0-1
              grep-3.6-1  js78-78.4.1-1  kauth-5.76.0-1  kcoreaddons-5.76.0-1
              kitemmodels-5.76.0-1  kwindowsystem-5.76.0-1  less-563-1
              libassuan-2.5.4-1  libclc-11.0.0-1  libdrm-2.4.103-1
              libffi-3.3-4  libibus-1.5.23+1+gdd4cc5b0-1  libnftnl-1.1.8-1
              libplacebo-2.72.2-1  libunistring-0.9.10-3  libxml2-2.9.10-6
              linux-5.9.8-1  llvm-libs-11.0.0-1  man-pages-5.09-2
              mesa-git-21.0.0_devel.131103.035e21e7802-1  mpv-1:0.32.0-5
              nss-3.59-1  pacman-5.2.2-3  pango-1:1.48.0-1  perl-uri-5.05-1
              raptor-2.0.15-14  rasqal-1:0.9.33-4  shaderc-2020.3-1
              unrar-1:6.0.2-1  xfce4-mailwatch-plugin-1.3.0-1
              xfce4-weather-plugin-0.10.2-1  xfconf-4.14.4-1

Total Download Size:   206.33 MiB
Total Installed Size:  751.69 MiB
Net Upgrade Size:       41.87 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
 btrfs-progs-5.9-...   814.7 KiB  1031 KiB/s 00:01 [######################] 100%
 bzip2-1.0.8-4-aa...    54.7 KiB  0.00   B/s 00:00 [######################] 100%
 libffi-3.3-4-aarch64   39.6 KiB  0.00   B/s 00:00 [######################] 100%
 ca-certificates-...   321.9 KiB  10.5 MiB/s 00:00 [######################] 100%
 nss-3.59-1-aarch64   1416.3 KiB  5.76 MiB/s 00:00 [######################] 100%
 libunistring-0.9...   500.3 KiB  16.3 MiB/s 00:00 [######################] 100%
 libnftnl-1.1.8-1...    59.7 KiB  0.00   B/s 00:00 [######################] 100%
 grep-3.6-1-aarch64    193.5 KiB  9.45 MiB/s 00:00 [######################] 100%
 less-563-1-aarch64    103.6 KiB  0.00   B/s 00:00 [######################] 100%
 libassuan-2.5.4-...    84.8 KiB  0.00   B/s 00:00 [######################] 100%
 linux-5.9.8-1-aa...    68.8 MiB  6.79 MiB/s 00:10 [######################] 100%
 man-pages-5.09-2-any    5.8 MiB  6.75 MiB/s 00:01 [######################] 100%
 pacman-5.2.2-3-a...   774.7 KiB  75.6 MiB/s 00:00 [######################] 100%
 libdrm-2.4.103-1...   206.0 KiB  20.1 MiB/s 00:00 [######################] 100%
 libxml2-2.9.10-6...  1220.7 KiB  9.17 MiB/s 00:00 [######################] 100%
 glslang-11.0.0-1...  1854.6 KiB  8.23 MiB/s 00:00 [######################] 100%
 libclc-11.0.0-1-any     8.7 MiB  7.22 MiB/s 00:01 [######################] 100%
 llvm-libs-11.0.0...    19.5 MiB  1878 KiB/s 00:11 [######################] 100%
 libibus-1.5.23+1...     7.4 MiB  4.63 MiB/s 00:02 [######################] 100%
 gdk-pixbuf2-2.42...   611.7 KiB  2.99 MiB/s 00:00 [######################] 100%
 pango-1:1.48.0-1...   525.0 KiB  17.1 MiB/s 00:00 [######################] 100%
 js78-78.4.1-1-aa...    13.7 MiB  4.64 MiB/s 00:03 [######################] 100%
 firefox-83.0-1-a...    65.9 MiB  5.50 MiB/s 00:12 [######################] 100%
 kcoreaddons-5.76...  1183.7 KiB  23.1 MiB/s 00:00 [######################] 100%
 kauth-5.76.0-1-a...   302.4 KiB  29.5 MiB/s 00:00 [######################] 100%
 kitemmodels-5.76...   675.3 KiB  66.0 MiB/s 00:00 [######################] 100%
 kwindowsystem-5....   722.1 KiB  23.5 MiB/s 00:00 [######################] 100%
 shaderc-2020.3-1...   109.6 KiB  0.00   B/s 00:00 [######################] 100%
 libplacebo-2.72....   225.4 KiB  22.0 MiB/s 00:00 [######################] 100%
 perl-uri-5.05-1-any    77.4 KiB  7.55 MiB/s 00:00 [######################] 100%
 raptor-2.0.15-14...   437.2 KiB  42.7 MiB/s 00:00 [######################] 100%
 rasqal-1:0.9.33-...   437.5 KiB  42.7 MiB/s 00:00 [######################] 100%
 unrar-1:6.0.2-1-...   128.8 KiB  12.6 MiB/s 00:00 [######################] 100%
 xfconf-4.14.4-1-...   163.9 KiB  16.0 MiB/s 00:00 [######################] 100%
 xfce4-mailwatch-...   148.8 KiB  14.5 MiB/s 00:00 [######################] 100%
 xfce4-weather-pl...     2.3 MiB  9.57 MiB/s 00:00 [######################] 100%
 mpv-1:0.32.0-5-a...  1217.1 KiB  23.8 MiB/s 00:00 [######################] 100%
(38/38) checking keys in keyring                   [######################] 100%
(38/38) checking package integrity                 [######################] 100%
(38/38) loading package files                      [######################] 100%
(38/38) checking for file conflicts                [######################] 100%
(38/38) checking available disk space              [######################] 100%
:: Processing package changes...
( 1/38) upgrading btrfs-progs                      [######################] 100%
( 2/38) upgrading bzip2                            [######################] 100%
( 3/38) upgrading libffi                           [######################] 100%
( 4/38) upgrading ca-certificates-mozilla          [######################] 100%
( 5/38) upgrading nss                              [######################] 100%
( 6/38) upgrading libdrm                           [######################] 100%
( 7/38) upgrading libxml2                          [######################] 100%
( 8/38) upgrading libunistring                     [######################] 100%
( 9/38) upgrading libnftnl                         [######################] 100%
(10/38) upgrading glslang                          [######################] 100%
(11/38) upgrading libclc                           [######################] 100%
(12/38) upgrading llvm-libs                        [######################] 100%
(13/38) upgrading mesa-git                         [######################] 100%
(14/38) upgrading libibus                          [######################] 100%
(15/38) upgrading gdk-pixbuf2                      [######################] 100%
(16/38) upgrading pango                            [######################] 100%
(17/38) upgrading js78                             [######################] 100%
(18/38) upgrading firefox                          [######################] 100%
(19/38) upgrading grep                             [######################] 100%
(20/38) upgrading kcoreaddons                      [######################] 100%
(21/38) upgrading kauth                            [######################] 100%
(22/38) upgrading kitemmodels                      [######################] 100%
(23/38) upgrading kwindowsystem                    [######################] 100%
(24/38) upgrading less                             [######################] 100%
(25/38) upgrading libassuan                        [######################] 100%
(26/38) upgrading shaderc                          [######################] 100%
(27/38) upgrading libplacebo                       [######################] 100%
(28/38) upgrading linux                            [######################] 100%
(29/38) upgrading man-pages                        [######################] 100%
(30/38) upgrading mpv                              [######################] 100%
(31/38) upgrading pacman                           [######################] 100%
(32/38) upgrading perl-uri                         [######################] 100%
(33/38) upgrading raptor                           [######################] 100%
(34/38) upgrading rasqal                           [######################] 100%
(35/38) upgrading unrar                            [######################] 100%
(36/38) upgrading xfconf                           [######################] 100%
(37/38) upgrading xfce4-mailwatch-plugin           [######################] 100%
(38/38) upgrading xfce4-weather-plugin             [######################] 100%
:: Running post-transaction hooks...
( 1/15) Reloading system manager configuration...
( 2/15) Reloading device manager configuration...
( 3/15) Arming ConditionNeedsUpdate...
( 4/15) Rebuilding certificate stores...
( 5/15) Updating module dependencies...
( 6/15) Updating linux module dependencies...
( 7/15) Updating linux initcpios...
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
  -> -k 5.9.8-1-MANJARO-ARM -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: 5.9.8-1-MANJARO-ARM
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [filesystems]
  -> Running build hook: [keyboard]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux.img
==> Image generation successful
( 8/15) Updating linux initcpios...
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
  -> -k 5.9.8-1-MANJARO-ARM -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: 5.9.8-1-MANJARO-ARM
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [filesystems]
  -> Running build hook: [keyboard]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux.img
==> Image generation successful
( 9/15) Updating uInitrd...
Image Name:   uInitrd Image
Created:      Wed Nov 18 21:12:40 2020
Image Type:   AArch64 Linux RAMDisk Image (uncompressed)
Data Size:    8448346 Bytes = 8250.34 KiB = 8.06 MiB
Load Address: 00000000
Entry Point:  00000000
(10/15) Reloading system bus configuration...
(11/15) Warn about old perl modules
(12/15) Probing GDK-Pixbuf loader modules...
(13/15) Updating icon theme caches...
(14/15) Updating the desktop file MIME type cache...
(15/15) Updating the MIME type database...
[jfl@GTKPro ~]$

Just an update on GT King Pro, just a brief history:
Started with Manjaro-ARM-xfce-vim3-20.11.img_xz (created by Tripole) linux-vim kernel 5.9.0-1 on Nov 6. After two or three updates ended up with linux-vim kernel 5.9.0-2. Manjaro with linux-vim kernel 5.9.0-1 (one kernel panic during upgrade that corrupted the USB stick that require to reburn image as during boot up kernel panic strike. But in general linux-vim kernel 5.9.0-1 was reasonable usable on GT King Pro (For the record, the kernel panic is due to Android BSP u-boot conflict with Linux Mainline Kernel according to Beelink and Spikerguy). Linux-vim kernel 5.9.0-2 seems the same if not slight more stable.

Install linux-kernel 5.9.6-1 on Nov 16 as I wanted to try out Panfrost and found out to test out Panfrost I need to move testing branch.

On Testing Branch: linux kernel 5.9.8-1 with mesa-git-21.0.0.

Ethernet and Wifi works as carry forward from Stable. Still No Sound on Linux Mainline kernel. Able to have sound linux-vim kernel ā€œchmod a+x /usr/bin/g12_sound.shā€ but no success on linux kernel.

Firefox 83 YouTube video performance is work (CPU usage higher) and responsive of typing text is worse than Stable Branch linux-vim kernel 5.9.0-1, 5.9.0-2 or linux kernel 5.9.6-1 on Firefox 82.0.2-1. No idea why.

Firefox 83: About:Config (As after Switching from Stable to Testing Branch).
gfx.blacklist.canvas2d.acceleration.failureid FEATURE_FAILURE_GLXTEST_FAILED
gfx.blacklist.d3d11.keyed.mutex.failureid FEATURE_FAILURE_GLXTEST_FAILED
gfx.blacklist.direct2d.failureid FEATURE_FAILURE_GLXTEST_FAILED
gfx.blacklist.direct3d11angle.failureid FEATURE_FAILURE_GLXTEST_FAILED
gfx.blacklist.dx.interop2.failureid FEATURE_FAILURE_GLXTEST_FAILED
gfx.blacklist.dx.nv12.failureid FEATURE_FAILURE_GLXTEST_FAILED
gfx.blacklist.dx.p010.failureid FEATURE_FAILURE_GLXTEST_FAILED
gfx.blacklist.dx.p016.failureid FEATURE_FAILURE_GLXTEST_FAILED
gfx.blacklist.gl.swizzle.failureid FEATURE_FAILURE_GLXTEST_FAILED
gfx.blacklist.gpu.process.failureid FEATURE_FAILURE_GLXTEST_FAILED
gfx.blacklist.hardwarevideodecoding.failureid FEATURE_FAILURE_GLXTEST_FAILED
gfx.blacklist.layers.advanced.failureid FEATURE_FAILURE_GLXTEST_FAILED
gfx.blacklist.layers.direct3d10-1.failureid FEATURE_FAILURE_GLXTEST_FAILED
gfx.blacklist.layers.direct3d10.failureid FEATURE_FAILURE_GLXTEST_FAILED
gfx.blacklist.layers.direct3d11.failureid FEATURE_FAILURE_GLXTEST_FAILED
gfx.blacklist.layers.direct3d9.failureid FEATURE_FAILURE_GLXTEST_FAILED
gfx.blacklist.layers.opengl.failureid FEATURE_FAILURE_GLXTEST_FAILED
gfx.blacklist.stagefright.failureid FEATURE_FAILURE_GLXTEST_FAILED
gfx.blacklist.webgl.angle.failureid FEATURE_FAILURE_GLXTEST_FAILED
gfx.blacklist.webgl.msaa.failureid FEATURE_FAILURE_GLXTEST_FAILED
gfx.blacklist.webgl.opengl.failureid FEATURE_FAILURE_GLXTEST_FAILED
gfx.blacklist.webgl2.failureid FEATURE_FAILURE_GLXTEST_FAILED
gfx.blacklist.webrender.compositor.failureid FEATURE_FAILURE_GLXTEST_FAILED
gfx.blacklist.webrender.failureid FEATURE_FAILURE_GLXTEST_FAILED
gfx.blacklist.webrtc.hw.acceleration.decode.failureid FEATURE_FAILURE_GLXTEST_FAILED
gfx.blacklist.webrtc.hw.acceleration.encode.failureid FEATURE_FAILURE_GLXTEST_FAILED
gfx.blacklist.webrtc.hw.acceleration.h264.failureid FEATURE_FAILURE_GLXTEST_FAILED

Is there any setting in Firefox 83 that will improve the Firefox Performance?

Mostly this is due to unstable panfrost for g52.
If you go to about:support you will see panfrost in use then it will be buggy.

Firefox ā€œabout:supportā€
WebGL 1 Driver Renderer Panfrost ā€“ Mali G52 (Panfrost)
WebGL 2 Driver Renderer WebGL creation failed:

  • tryNativeGL
  • Exhausted GL driver options.
Decision Log
HW_COMPOSITING	
available by default
blocked by env: Acceleration blocked by platform
OPENGL_COMPOSITING	
unavailable by default: Hardware compositing is disabled
WEBRENDER	
available by default
disabled by env: Not qualified
WEBRENDER_QUALIFIED	
available by default
denied by env: Not on allowlist
WEBRENDER_COMPOSITOR	
disabled by default: Disabled by default
WEBRENDER_ANGLE	
available by default
unavailable by env: OS not supported
WEBRENDER_DCOMP_PRESENT	
available by default
disabled by user: User disabled via pref
unavailable by env: Requires Windows 10 or later
unavailable by runtime: Requires ANGLE
OMTP	
available by default
WEBGPU	
disabled by default: Disabled by default
blocked by runtime: WebGPU can only be enabled in nightly

The ā€œglxgearsā€ results:

[jfl@GTKPro ~]$ glxgears
Running synchronized to the vertical refresh. The framerate should be
approximately the same as the monitor refresh rate.
222 frames in 5.0 seconds = 44.388 FPS
251 frames in 5.0 seconds = 49.732 FPS
214 frames in 5.0 seconds = 42.740 FPS
246 frames in 5.0 seconds = 49.180 FPS
236 frames in 5.0 seconds = 46.969 FPS
222 frames in 5.0 seconds = 44.379 FPS
237 frames in 5.0 seconds = 47.397 FPS
244 frames in 5.0 seconds = 48.689 FPS
255 frames in 5.0 seconds = 50.967 FPS
246 frames in 5.0 seconds = 48.819 FPS
238 frames in 5.0 seconds = 47.540 FPS
231 frames in 5.0 seconds = 46.171 FPS
240 frames in 5.0 seconds = 48.000 FPS
225 frames in 5.0 seconds = 44.771 FPS

Do results seem low for G52 gpu?

Try running glmark2-es2

I had same results with G31 with glxinfo reporting no acceleration???
But I think panfrost was there anyway. Now acceleration is on but xcfe is missing with hdmi, only can give with composite but donā€™t know if that will be worthy. When xcfe returns I will let you know.

Looks decent for me as panfrost is still a wip project for Gxx GPUā€™s

Test performed with G31and glxgears

4k gives 24 fps
2k gives 60 fps (maximum)

Hi Spikerguy,

Out of curiosity I tried glxgears on Armbian_Bullseye_5.9.0 (without Panfrost running). Not sure whether reporting the same thing as glxgears in Manjaro_Xfce_5.9.8 (which has this message ā€œRunning synchronized to the vertical refresh. The framerate should be
approximately the same as the monitor refresh rateā€) where as in Armbian glxgears there no such message.

Armbian_Bullseye_5.9.0
jfl@arm-64:~$ glxinfo -B
name of display: :0.0
display: :0 screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
Vendor: Mesa/X.org (0xffffffff)
Device: llvmpipe (LLVM 11.0.0, 128 bits) (0xffffffff)
Version: 20.2.2
Accelerated: no
Video memory: 3629MB
Unified memory: no
Preferred profile: core (0x1)
Max core profile version: 4.5
Max compat profile version: 3.1
Max GLES1 profile version: 1.1
Max GLES[23] profile version: 3.2
OpenGL vendor string: Mesa/X.org
OpenGL renderer string: llvmpipe (LLVM 11.0.0, 128 bits)
OpenGL core profile version string: 4.5 (Core Profile) Mesa 20.2.2
OpenGL core profile shading language version string: 4.50
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 3.1 Mesa 20.2.2
OpenGL shading language version string: 1.40
OpenGL context flags: (none)

OpenGL ES profile version string: OpenGL ES 3.2 Mesa 20.2.2
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20

jfl@arm-64:~$

jfl@arm-64:~$ glxgears
2649 frames in 5.0 seconds = 529.690 FPS
2758 frames in 5.0 seconds = 551.517 FPS
2823 frames in 5.0 seconds = 564.418 FPS
2804 frames in 5.0 seconds = 560.726 FPS
2773 frames in 5.0 seconds = 554.594 FPS
2786 frames in 5.0 seconds = 557.119 FPS
2805 frames in 5.0 seconds = 560.971 FPS
2715 frames in 5.0 seconds = 542.807 FPS

Hi TheMojoMan,

Installed glmark2 using Package Manager. I think the ā€œglmark2ā€ available in Manjaro Testing Branch might be a older vesion (glmark2 2014.03) compared to the version you posted (glmark2 2020.04). glmark2-es2 results 37 fps much lower than your figure 86 eventhough you were using mesa-git 20.3.0-devl. There is a warning " libpng warning: iCCP: known incorrect sRGB profile" in my case.

[jfl@GTKPro ~]$ glmark2-es2
bash: glmark2-es2: command not found
[jfl@GTKPro ~]$ glmark2-es2

glmark2 2014.03

=======================================================
OpenGL Information
GL_VENDOR: Panfrost
GL_RENDERER: Mali G52 (Panfrost)
GL_VERSION: OpenGL ES 2.0 Mesa 21.0.0-devel (git-035e21e780)

[build] use-vbo=false: FPS: 30 FrameTime: 33.333 ms
[build] use-vbo=true: FPS: 42 FrameTime: 23.810 ms
[texture] texture-filter=nearest: FPS: 50 FrameTime: 20.000 ms
[texture] texture-filter=linear: FPS: 42 FrameTime: 23.810 ms
[texture] texture-filter=mipmap: FPS: 38 FrameTime: 26.316 ms
[shading] shading=gouraud: FPS: 41 FrameTime: 24.390 ms
[shading] shading=blinn-phong-inf: FPS: 38 FrameTime: 26.316 ms
[shading] shading=phong: FPS: 43 FrameTime: 23.256 ms
[shading] shading=cel: FPS: 40 FrameTime: 25.000 ms
[bump] bump-render=high-poly: FPS: 28 FrameTime: 35.714 ms
[bump] bump-render=normals: FPS: 32 FrameTime: 31.250 ms
[bump] bump-render=height: FPS: 44 FrameTime: 22.727 ms
libpng warning: iCCP: known incorrect sRGB profile
[effect2d] kernel=0,1,0;1,-4,1;0,1,0;: FPS: 51 FrameTime: 19.608 ms
libpng warning: iCCP: known incorrect sRGB profile
[effect2d] kernel=1,1,1,1,1;1,1,1,1,1;1,1,1,1,1;: FPS: 40 FrameTime: 25.000 ms
[pulsar] light=false:quads=5:texture=false: FPS: 52 FrameTime: 19.231 ms
libpng warning: iCCP: known incorrect sRGB profile
[desktop] blur-radius=5:effect=blur:passes=1:separable=true:windows=4: FPS: 24 FrameTime: 41.667 ms
libpng warning: iCCP: known incorrect sRGB profile
[desktop] effect=shadow:windows=4: FPS: 47 FrameTime: 21.277 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 41 FrameTime: 24.390 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=subdata: FPS: 44 FrameTime: 22.727 ms
[buffer] columns=200:interleave=true:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 40 FrameTime: 25.000 ms
[ideas] speed=duration: FPS: 39 FrameTime: 25.641 ms
[jellyfish] : FPS: 31 FrameTime: 32.258 ms
[terrain] : FPS: 10 FrameTime: 100.000 ms
[shadow] : FPS: 26 FrameTime: 38.462 ms
[refract] : FPS: 9 FrameTime: 111.111 ms
[conditionals] fragment-steps=0:vertex-steps=0: FPS: 47 FrameTime: 21.277 ms
[conditionals] fragment-steps=5:vertex-steps=0: FPS: 52 FrameTime: 19.231 ms
[conditionals] fragment-steps=0:vertex-steps=5: FPS: 40 FrameTime: 25.000 ms
[function] fragment-complexity=low:fragment-steps=5: FPS: 37 FrameTime: 27.027 ms
[function] fragment-complexity=medium:fragment-steps=5: FPS: 39 FrameTime: 25.641 ms
[loop] fragment-loop=false:fragment-steps=5:vertex-steps=5: FPS: 43 FrameTime: 23.256 ms
[loop] fragment-steps=5:fragment-uniform=false:vertex-steps=5: FPS: 43 FrameTime: 23.256 ms
[loop] fragment-steps=5:fragment-uniform=true:vertex-steps=5: FPS: 29 FrameTime: 34.483 ms

                              glmark2 Score: 37 

=======================================================

Edit: No idea why text is in Bold earlier. glmark2-es2-wayland not available.
[jfl@GTKPro ~]$ glmark2-es2-wayland
bash: glmark2-es2-wayland: command not found
[jfl@GTKPro ~]$

Hi TheMojoMan,

Per info from ā€œjgmdevā€ on Panfrost Status on Odroid N2.
"Games like openarena, neverball, globulation 2, supertux2, supertuxkart, cendric, serious sam tfe, warzone 2100, minetest and love2d engine games like mari0 work under X11!

And thatā€™s not all, video acceleration works too (tested with mpv)!!! Also setting layers.acceleration.force-enabled on firefox to true works :D, I also ran gnome X11 and it seemed that animations where working smoother than on gnome wayland or maybe was an emotion placebo effect lol. Anyways, great work by all the Panfrost developers!"

Firefox seems to be also working fine with Panfrost but in my case Firefox 83 with Panfrost (lag behind Firefox 82.0.2-1 without Panfrost) on GT King Pro Rev. A the CPU & GPU is similar to Odroid N2.

Wonder what settings or patches or drivers are being used by jgmdev and whether it can be applied to Manjaro.

Hi Strit,

Just a question, is the mesa-git-21.0.0 in " Server = http://archlinuxdroid.tk/archlinuxdroid/aarch6" similar to the Manjaro testing repository mesa-git-21.0.0?

Hi Spikerguy,

Just an update, Firefox 83 with Panfrost do not crash with linux kernel 5.9.8-1. Just performance is worse than in Firefox 82.0.2-1 on linux kernel 5.9.6-1 or linux-vim kernel 5.9.0-1 or 5.9.0-2.

Thatā€™s hard to answer, since I donā€™t have a PKGBUILD for that.

But itā€™s likely based on different commits, since the mesa master git is moving fast. So just a few minutes between build start time, can make it a different version.

Just edit /etc/pacman.conf to add:
[archlinuxdroid]
SigLevel = Optional
Server = http://archlinuxdroid.tk/archlinuxdroid/aarch64

Plan is to test with the archlinuxdroid repo mesa-arm-git whether GT King PRo Rev. A (with similar CPU and GPU speed as Odroid N2) whether I will get the same opinion/feeling that Panfrost is performing to the level achieved by Odroid N2.

Welcome inputs on what else do I need to install to achieve the level of performance stated in ā€œPanfrost Status on Odroid N2ā€. May be is a tall order for Beelink GT King Pro but I believe on paper the two have similar CPU and GPU spec at least so should be able to achieve the similar level of performance as Odroid N2.

First attempt to install mesa-arm-git unsuccessful because of wrong ā€œpacman instructionā€.
[jfl@GTKPro ~]$ sudo pacman -S mesa-arm-git
[sudo] password for jfl:
warning: database file for ā€˜archlinuxdroidā€™ does not exist (use ā€˜-Syā€™ to download)
error: target not found: mesa-arm-git

Second try to install mesa-arm-git unsuccessful because of ā€œerror: failed retrieving file ā€˜mesa-arm-git-21.0.0_devel.131330.01e3f430079-1-aarch64.pkg.tar.zstā€™ from archlinuxdroid.tk : transfer closed with 2432677ā€

[jfl@GTKPro ~]$ sudo pacman -Sy mesa-arm-git
:: Synchronizing package databasesā€¦
core is up to date
extra is up to date
community is up to date
archlinuxdroid 10.5 KiB 0.00 B/s 00:00 [######################] 100%
resolving dependenciesā€¦
looking for conflicting packagesā€¦
:: mesa-arm-git and mesa-git are in conflict (mesa). Remove mesa-git? [y/N] y

Packages (3) llvm-11.0.0-1
mesa-git-21.0.0_devel.131103.035e21e7802-1 [removal]
mesa-arm-git-21.0.0_devel.131330.01e3f430079-1

Total Download Size: 52.35 MiB
Total Installed Size: 311.14 MiB
Net Upgrade Size: 255.03 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packagesā€¦
llvm-11.0.0-1-aaā€¦ 44.4 MiB 646 KiB/s 01:10 [######################] 100%
error: failed retrieving file ā€˜mesa-arm-git-21.0.0_devel.131330.01e3f430079-1-aarch64.pkg.tar.zstā€™ from archlinuxdroid.tk : transfer closed with 2432677 bytes remaining to read
warning: failed to retrieve some files
error: failed to commit transaction (download library error)
Errors occurred, no packages were upgraded.

Third attempt was successful without changing anything.
[jfl@GTKPro ~]$ sudo pacman -Sy mesa-arm-git
:: Synchronizing package databasesā€¦
core is up to date
extra is up to date
community is up to date
archlinuxdroid is up to date
resolving dependenciesā€¦
looking for conflicting packagesā€¦
:: mesa-arm-git and mesa-git are in conflict (mesa). Remove mesa-git? [y/N] y

Packages (3) llvm-11.0.0-1
mesa-git-21.0.0_devel.131103.035e21e7802-1 [removal]
mesa-arm-git-21.0.0_devel.131330.01e3f430079-1

Total Download Size: 2.32 MiB
Total Installed Size: 311.14 MiB
Net Upgrade Size: 255.03 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packagesā€¦
mesa-arm-git-21ā€¦ 2.3 MiB 403 KiB/s 00:06 [######################] 100%
(2/2) checking keys in keyring [######################] 100%
(2/2) checking package integrity [######################] 100%
(2/2) loading package files [######################] 100%
(2/2) checking for file conflicts [######################] 100%
(3/3) checking available disk space [######################] 100%
:: Processing package changesā€¦
(1/1) removing mesa-git [######################] 100%
(1/2) installing llvm [######################] 100%
Optional dependencies for llvm
python-setuptools: for using lit (LLVM Integrated Tester) [installed]
(2/2) installing mesa-arm-git [######################] 100%
Optional dependencies for mesa-arm-git
opengl-man-pages: for the OpenGL API man pages
mesa-vdpau: for accelerated video playback
libva-mesa-driver: for accelerated video playback
:: Running post-transaction hooksā€¦
(1/1) Arming ConditionNeedsUpdateā€¦
[jfl@GTKPro ~]$

Just an update after ā€œrebootā€ with latest ā€œmesa-arm-gitā€ from http://archlinuxdroid.tk/archlinuxdroid/aarch64 repo.

TV Box: Beelink GT King Pro Rev A (S922X-H CPU and GPU: G52)
Manjaro_Vim3_Xfce with linux kernel 5.9.8-1 (no sound is really inconvenient) instead of linux-vim kernel 5.9.8-1.

glxgears with mesa-arm-git performance is much closer to 60 fps (actual results 55.9 to 59.9) to my monitor refresh rate of 60Hz as it should be. Compared to mesa-git 21.0.0, glxgears results (44.3-50.9 fps).

Furthermore text editing is not as lagging compared to earlier mesa-git-21.0.0-devel.

[jfl@GTKPro ~]$ glxinfo -B
name of display: :0.0
display: :0 screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
Vendor: Panfrost (0xffffffff)
Device: Mali G52 (Panfrost) (0xffffffff)
Version: 21.0.0
Accelerated: yes
Video memory: 3627MB
Unified memory: yes
Preferred profile: compat (0x2)
Max core profile version: 0.0
Max compat profile version: 2.1
Max GLES1 profile version: 1.1
Max GLES[23] profile version: 2.0
OpenGL vendor string: Panfrost
OpenGL renderer string: Mali G52 (Panfrost)
OpenGL version string: 2.1 Mesa 21.0.0-devel (git-01e3f43007)
OpenGL shading language version string: 1.20

OpenGL ES profile version string: OpenGL ES 2.0 Mesa 21.0.0-devel (git-01e3f43007)
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 1.0.16

[jfl@GTKPro ~]$ glxgears
Running synchronized to the vertical refresh. The framerate should be
approximately the same as the monitor refresh rate.
291 frames in 5.0 seconds = 58.198 FPS
296 frames in 5.0 seconds = 58.998 FPS
295 frames in 5.0 seconds = 58.989 FPS
296 frames in 5.0 seconds = 58.996 FPS
300 frames in 5.0 seconds = 59.900 FPS
298 frames in 5.0 seconds = 59.424 FPS
290 frames in 5.0 seconds = 57.971 FPS
293 frames in 5.0 seconds = 58.405 FPS
293 frames in 5.0 seconds = 58.498 FPS
297 frames in 5.0 seconds = 59.230 FPS
297 frames in 5.0 seconds = 59.312 FPS
294 frames in 5.0 seconds = 58.490 FPS
294 frames in 5.0 seconds = 58.472 FPS
297 frames in 5.0 seconds = 59.316 FPS
289 frames in 5.0 seconds = 57.685 FPS
296 frames in 5.0 seconds = 58.939 FPS
285 frames in 5.1 seconds = 55.963 FPS
295 frames in 5.0 seconds = 58.880 FPS
296 frames in 5.0 seconds = 58.882 FPS
296 frames in 5.0 seconds = 58.963 FPS
290 frames in 5.0 seconds = 57.972 FPS
294 frames in 5.0 seconds = 58.629 FPS
298 frames in 5.0 seconds = 59.534 FPS