Jump to content

could we start a thread to evaluate the usability of opensource GPU driver lima


Recommended Posts

Posted
55 minutes ago, ning said:
 

lima opensource driver for MALI GPU is tolked in many wiki, but there are almost no wiki about how to integrate it, or about the detail usability and how it compare with closed source MALI driver.

 

and @superna9999 says "the ultimate focus is Lima" in https://github.com/superna9999/meson_gx_mali_450/issues/8#issuecomment-462120890

 

is there any ongoing effort on lima driver for H3?

 

lane@armbian-builder:~/GIT/build/config$ fgrep -Rin lima *
kernel/linux-sunxi64-dev.config:3805:CONFIG_DRM_LIMA=m
kernel/linux-sunxi-next.config:4133:CONFIG_DRM_LIMA=m
kernel/linux-sunxi-dev.config:4149:CONFIG_DRM_LIMA=m
kernel/linux-sunxi64-next.config:3889:CONFIG_DRM_LIMA=m

root@armdocker-2:/var/log# fgrep lima *
grep: apt: Is a directory
armbian-hardware-monitor.log:[    3.011837] lima 1c40000.gpu: bus rate = 200000000
armbian-hardware-monitor.log:[    3.011849] lima 1c40000.gpu: mod rate = 384000000
armbian-hardware-monitor.log:[    3.013102] lima 1c40000.gpu: gp - mali400 version major 1 minor 1
armbian-hardware-monitor.log:[    3.013166] lima 1c40000.gpu: pp0 - mali400 version major 1 minor 1
armbian-hardware-monitor.log:[    3.013219] lima 1c40000.gpu: pp1 - mali400 version major 1 minor 1
armbian-hardware-monitor.log:[    3.013262] lima 1c40000.gpu: l2 cache 64K, 4-way, 64byte cache line, 64bit external bus
armbian-hardware-monitor.log:[    3.014431] [drm] Initialized lima 1.0.0 20170325 for 1c40000.gpu on minor 1

So the lima driver is already there and built, but that's only a small piece of the battle.    Integrating the GPU, with the video muxer, building approriate fbturbo X11 display driver, and putting all those pieces together is the difficult and unpolished parts.  You'll see people cobbling some working implementations by hand, but nothing is really documented in a fashion to make it easy to do in a repeatable, automated way with armbian-builder.

That process needs lots of help.... maybe this thread can figure that out. who knows..

Anyway I'm sure you can see lots of periodic dialog about the Mali blobs and the Lima driver on the forum that might offer some additional perspective.   See development Section 

 

 

This wiki page about sunxi Media IP cores does a good job of capturing all the layers that make up a working video subsystem for H3 and kind of SBCs in general.

 

I'm going to move this thread over to one of the general topics, since this is about an enhancement and not a bug.

Posted

I tried to build Mesa with enabled lima and kmsro drivers, seems like this work mostly fine: https://launchpad.net/~russianneuromancer/+archive/ubuntu/drivers (for Ubuntu 19.04 only, due to Mesa 19.0 dependencies).

 

However, attempts to interact with lima via X11 always result in "libEGL warning: DRI2: failed to authenticate".

https://paste.fedoraproject.org/paste/vmKQVPcEURxlcvqkqLDiTw

https://paste.fedoraproject.org/paste/2VbdPxubtS9a-9E~hzZbIA

...and attempts to run glmark2-es2-wayland under Weston reveal that it running on llvmpipe.

 

Testing on NanoPC-M1 with current dev kernel:

~$ dmesg | grep lima
[    9.943493] lima 1c40000.gpu: bus rate = 200000000
[    9.943506] lima 1c40000.gpu: mod rate = 384000000
[    9.950490] lima 1c40000.gpu: gp - mali400 version major 1 minor 1
[    9.950539] lima 1c40000.gpu: pp0 - mali400 version major 1 minor 1
[    9.950581] lima 1c40000.gpu: pp1 - mali400 version major 1 minor 1
[    9.950629] lima 1c40000.gpu: l2 cache 64K, 4-way, 64byte cache line, 64bit external bus
[    9.960591] [drm] Initialized lima 1.0.0 20170325 for 1c40000.gpu on minor 1

(full log)

 

I wonder if anyone was able to install Lima from Mesa upstream with current Armbian dev kernel and replicate at least this results?

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines