How to use on mainline?
Hi,
I've read that the driver is upstream on linux 5.2 and mesa 19.1. I'm on arch arm on a S905W (TX3 Mini) and since that kernel and mesa version is now on arch I wanted to give another shot at that box.
[alarm@alarm ~]$ lsmod | grep lima
lima 49152 1
gpu_sched 36864 1 lima
drm 536576 9 gpu_sched,meson_dw_hdmi,meson_drm,drm_kms_helper,lima,dw_hdmi
[alarm@alarm ~]$ dmesg | grep lima
[ 11.822194] lima d00c0000.gpu: bus rate = 166666667
[ 11.830995] lima d00c0000.gpu: mod rate = 744000000
[ 11.855064] lima d00c0000.gpu: gp - mali450 version major 0 minor 0
[ 11.855793] lima d00c0000.gpu: pp0 - mali450 version major 0 minor 0
[ 11.862125] lima d00c0000.gpu: pp1 - mali450 version major 0 minor 0
[ 11.881242] lima d00c0000.gpu: pp2 - mali450 version major 0 minor 0
[ 11.889402] lima d00c0000.gpu: l2 cache 8K, 4-way, 64byte cache line, 128bit external bus
[ 11.895154] lima d00c0000.gpu: l2 cache 64K, 4-way, 64byte cache line, 128bit external bus
[ 11.908087] [drm] Initialized lima 1.0.0 20190217 for d00c0000.gpu on minor 1
[alarm@alarm ~]$ ls -la /dev/dri
total 0
drwxr-xr-x 3 root root 120 Jul 9 18:59 .
drwxr-xr-x 17 root root 3280 Jul 9 19:00 ..
drwxr-xr-x 2 root root 100 Jul 9 13:58 by-path
crw-rw----+ 1 root video 226, 0 Jul 9 18:38 card0
crw-rw----+ 1 root video 226, 1 Jul 9 13:58 card1
crw-rw-rw- 1 root render 226, 128 Jul 9 13:58 renderD128
looks promising. But XServer didn't want to start. So I found here an xorg.conf
Section "ServerFlags"
Option "AutoAddGPU" "off"
EndSection
Section "OutputClass"
Identifier "Meson"
MatchDriver "meson"
Driver "modesetting"
Option "PrimaryGPU" "true"
EndSection
Now the XServer starts but:
[alarm@alarm X11]$ DISPLAY=:0 glxinfo | head -n60
[...]
Extended renderer info (GLX_MESA_query_renderer):
Vendor: VMware, Inc. (0xffffffff)
Device: llvmpipe (LLVM 8.0, 128 bits) (0xffffffff)
Version: 19.1.1
Accelerated: no
Video memory: 1963MB
Unified memory: no
Preferred profile: core (0x1)
Max core profile version: 3.3
Max compat profile version: 3.1
Max GLES1 profile version: 1.1
Max GLES[23] profile version: 3.0
OpenGL vendor string: VMware, Inc.
OpenGL renderer string: llvmpipe (LLVM 8.0, 128 bits)
OpenGL core profile version string: 3.3 (Core Profile) Mesa 19.1.1
OpenGL core profile shading language version string: 3.30
looks like it's still not using the lima driver.
Am I missing something or is it not yet really upstream / the arch package compiled without it
Edited by Robin