[Pkg-Mali-devel] Updating mali-midgard to build against Linux 4.18

Guillaume Tucker guillaume.tucker at collabora.com
Wed Dec 19 07:41:27 GMT 2018


On 19/12/2018 03:22, Wookey wrote:
> On 2018-12-14 20:57 +0100, Rohan Garg wrote:
>> Hi
>> I've been working on getting the graphics stack up on the Firefly
>> RK3399 (AIO3399J variant) and have made some pretty significant
>> progress so far. I've filed [1] as a starting point to get the DKMS
>> module building on Debian.
> 
> Thanks for this work. As I said on IRC I've fettled the patches a bit
> to get things applying properly. I reckon it's a good idea to add '9'
> to the PATCH_MATCH as all these patches should be needed on 4.19 too,
> and hopefully they stil apply.
> 
> I'll do an upload as soon as I've checked it still works on my firefly.
> 
>> A couple of other things will need to fall into place so that the X11
>> graphics stack can be bought up. These are (in order):
>>
>> * The Firefly RK3399 DTB needs to be adjusted to enable the Mali GPU
>> * Mali T86x OpenGL libs need to be packaged from here
>  https://github.com/rockchip-linux/libmali
> 
> OK. Looks like that uses the standard ARM licence, unlike Allwiner who
> made up their own version which does not allow debian
> redistribution. Well done rockchip.

Yes, LES-PRE-20769 brings me back some memories...  And well done
ARM for letting an SoC manufacturer like Rockchip use this
license with their own binaries.  Or, are they vanilla drivers
from ARM?

We have some rk3399-gru-kevin Chromebooks in the Collabora LAVA
lab, in principle we could use the same drivers on them with a
device tree node for the GPU.  I'd be happy to try this out, and
help with upstreaming the GPU node.  We could also use that to
test a series of patches for the kernel driver with each mainline
release, to use as a basis for the dkms package in Debian.

> I'll include that in my packages. 
> 
> There is one more issue, but I'll start a new thread about that.
> 
>> * Perhaps the most non trivial of them all, changes to Xserver in
>> order to utilise libMali. I've started on that here [3] and with some
>> help from the Xorg developers and going through rockchip's own changes
>> to xserver, have managed to get es2gears running at 60 FPS.
>> [3] https://gitlab.freedesktop.org/shadeslayer/xserver/tree/server-1.20-branch

Nice :) Especially as X11 support has kind of been dropped in
ARM's Mali drivers now.  I guess it would be nice to have Wayland
enabled as well, and that should hopefully be a bit more
straightforward.

Guillaume



More information about the pkg-mali-devel mailing list