LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware - ARM (https://www.linuxquestions.org/questions/slackware-arm-108/)
-   -   Etnaviv xorg driver (https://www.linuxquestions.org/questions/slackware-arm-108/etnaviv-xorg-driver-4175600788/)

Linux.tar.gz 02-28-2017 02:18 PM

Etnaviv xorg driver
 
Hi,

etnaviv now works on Beagle Board X15 :
https://eewiki.net/display/linuxonar...EtnavivProject

Seems that a patched kernel is currently needed, but anyway will this xorg module make his way into Slackware ARM ?

Linux.tar.gz 03-01-2017 07:29 AM

There's also a new X driver for etnaviv, with DRI3 support:
https://github.com/julbouln/xf86-video-armsoc-omap5

drmozes 03-01-2017 09:04 AM

Quote:

Originally Posted by Linux.tar.gz (Post 5677526)
There's also a new X driver for etnaviv, with DRI3 support:
https://github.com/julbouln/xf86-video-armsoc-omap5

Which have you tested?

Linux.tar.gz 03-01-2017 05:26 PM

Not yet, unfortunately.
Seems serious, a guy from Ti gives a hand :
https://www.pyra-handheld.com/piperm...ch/001703.html

drmozes 03-02-2017 12:02 PM

ok, when you have tested it let me know which version and where the source is and it can be added.

Linux.tar.gz 09-30-2018 05:54 PM

I finally tested it and it works.
I'm on the latest -current on an OMAP5432.

In the kernel, I had to enable:
Code:

General setup  --->[*] Compile also drivers which will not load
Device Drivers  ---> Graphics support  ---> <M> ETNAVIV (DRM support for Vivante GPU IP cores)
and also[*]  enable ETNAVIV thermal throttling

I recompiled libdrm with --enable-etnaviv-experimental-api
I also used --enable-omap-experimental-api, but I'm not sure if it's really needed here.

Then I compiled and installed https://github.com/julbouln/xf86-video-armsoc-omap5

I used /etc/X11/xorg.conf.d/10-etnaviv.conf:
Code:

Section "Device"
    Identifier  "Builtin Default fbdev Device 0"
        Driver                "omap5"
        Option                "DRICard" "0" # must point to the /dev/dri/cardX corresponding to omapdrm because detection can sometimes fail
        Option                "SoftEXA" "FALSE" # will disable etnaviv acceleration. CPU only EXA is actually faster, but let all the work to A15 core
EndSection

/var/log/Xorg.0.log :
Code:

[  996.358] (II) LoadModule: "omap5"
[  996.359] (II) Loading /usr/lib/xorg/modules/omap5_drv.so
[  996.360] (II) Module omap5: vendor="X.Org Foundation"
[  996.360]    compiled for 1.20.1, module version = 1.4.1
[  996.360]    Module class: X.Org Video Driver
[  996.360]    ABI class: X.Org Video Driver, version 24.0
[  996.360] (II) OMAP5: Driver for ARM TI OMAP5 compatible chipsets
[  996.360] (--) using VT number 7
...
[  997.106] (II) OMAP5(0): Viv2DEXA: Etnaviv driver found
[  997.106] (EE) OMAP5(0): ERROR: Viv2DEXA: Failed to create gpu
[  997.106] (II) OMAP5(0): Soft EXA mode
[  997.106] (II) EXA(0): Driver allocated offscreen pixmaps
[  997.106] (II) EXA(0): Driver registered support for the following operations:
[  997.106] (II)        Solid
[  997.106] (II)        Copy
[  997.106] (II)        Composite (RENDER acceleration)
[  997.106] (II) OMAP5(0): [DRI2] Setup complete

I have this:
Code:

[  997.153] (EE) AIGLX error: dlopen of /usr/lib/xorg/modules/dri/armsoc_dri.so failed (/usr/lib/xorg/modules/dri/armsoc_dri.so: cannot open shared object file: No such file or directory)
[  997.153] (EE) AIGLX error: unable to load driver armsoc

But I'm done for today.

I can now play videos fullcreen and fullspeed with vanilla mplayer + sdl.
I also have a s**tload of video modes.

drmozes 10-01-2018 04:13 AM

Quote:

Originally Posted by Linux.tar.gz (Post 5909547)
In the kernel, I had to enable:
Code:

General setup  --->[*] Compile also drivers which will not load
Device Drivers  ---> Graphics support  ---> <M> ETNAVIV (DRM support for Vivante GPU IP cores)
and also[*]  enable ETNAVIV thermal throttling


These are already in the supplied armv7 kernel for -current.

Quote:

I recompiled libdrm with --enable-etnaviv-experimental-api
I've added this one.

Quote:

I also used --enable-omap-experimental-api, but I'm not sure if it's really needed here.
This is already in there. Perhaps you're looking at the Slackware x86 source tree?

Quote:

Then I compiled and installed https://github.com/julbouln/xf86-video-armsoc-omap5
Thanks - I'll look at this one.

Linux.tar.gz 10-01-2018 11:26 AM

I was using the omap2plus_defconfig on a vanilla kernel.
Yup, I was on the x86 sources.

Linux.tar.gz 10-01-2018 05:30 PM

I removed my stuff and installed yours (minus the kernel), it works perfectly.
Thanks.


All times are GMT -5. The time now is 06:55 AM.