Jump to content

Armbian panfrost/3d accel


Recommended Posts

Hello all!

Not sure if anyone saw this at all or not but the latest debian (11) now includes the panfrost and lima drivers!


If I'm reading things correctly the needed bits and pieces (as well as a recent kernel) are in the packages "libglx-mesa0" and "libgl1-mesa-dri".

Thought I would give this a go on a now (somewhat old-ish) Odroid XU4 device. It uses the mali t620 graphics chipset which I believe is in those panfrost drivers. I used the image  file "Armbian_21.08.1_Odroidxu4_bullseye_current_5.4.142.img.xz".

I did notice that the older kernel in that image (5.4.x) did not seem to detect anything to do with panfrost. So I upgraded the kernel via "apt install linux-image-edge-odroidxu4". This gives a much newer kernel version - 5.13.12 .

This then does detect the panfrost/t620 gpu:

aaaaa@odroidxu4:~$ dmesg | grep panfrost
[    1.079114] panfrost 11800000.gpu: clock rate = 400000000
[    1.081656] panfrost 11800000.gpu: [drm:panfrost_devfreq_init] Failed to register cooling device
[    1.081812] panfrost 11800000.gpu: mali-t620 id 0x620 major 0x0 minor 0x1 status 0x0
[    1.081829] panfrost 11800000.gpu: features: 00000000,10206400, issues: 00000000,21eee400
[    1.081844] panfrost 11800000.gpu: Features: L2:0x07110206 Shader:0x00000000 Tiler:0x00000809 Mem:0x1 MMU:0x00002830 AS:0xf JS:0x7
[    1.081859] panfrost 11800000.gpu: shader_present=0x3f l2_present=0x11
[    1.085234] [drm] Initialized panfrost 1.1.0 20180908 for 11800000.gpu on minor 1

Unfortunatly it dosen't seem to be quite "there" yet however as mesa dosen't want to quite work correctly;

aaaaa@odroidxu4:~$ glxinfo | grep OpenGL
OpenGL vendor string: Mesa/X.org
OpenGL renderer string: llvmpipe (LLVM 11.0.1, 128 bits)
OpenGL core profile version string: 4.5 (Core Profile) Mesa 20.3.5
OpenGL core profile shading language version string: 4.50
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.1 Mesa 20.3.5
OpenGL shading language version string: 1.40
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.2 Mesa 20.3.5
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
OpenGL ES profile extensions:

I did try even having this (and not having anything at all) in /etc/X11/xorg.conf

Section "ServerFlags"
        Option  "AutoAddGPU" "off"
        Option "Debug" "dmabuf_capable"

Section "OutputClass"
        Identifier "Lima"
        MatchDriver "meson"
        Driver "modesetting"
        Option "PrimaryGPU" "true"

Can't seem to get it to switch from llvmpipe to the panfrost driver however. A quick check by doing something with 3D (eg torcs) gives a low framerate of about 5 or 6 fps.

So it seems as if it is *almost* working but not quite. Any thoughts on this one?

Consider this not quite asking for help more a sort of a "brain dump". I just wondered if the drivers now that they are in debian might possibly work and if not as seems the case this all might help someone out who has more on this subject than I do.

BTW I used the following websites to try to work this all out:








Link to comment
Share on other sites

panfrost is not working yet on the t62x mali and its not sure if it ever will as the focus currently is on keeping the supported hardware working and add newer mali support to it right now - so the only thing you can do is to hope for it to get done some day. for that reason panfrost is still disabled by default in mesa for it.


best wishes - hexdump

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines