1 1
IgorS

Mainline kernel DRM problems on OrangePi

Recommended Posts

Yesterday ubuntu issued updates related to DRM, packages:

ii  libdrm-amdgpu1:armhf                          2.4.99-1ubuntu1~18.04.1                      armhf        Userspace interface to amdgpu-specific kernel DRM services -- runtime
ii  libdrm-common                                 2.4.99-1ubuntu1~18.04.1                      all          Userspace interface to kernel DRM services -- common files
ii  libdrm-etnaviv1:armhf                         2.4.99-1ubuntu1~18.04.1                      armhf        Userspace interface to etnaviv-specific kernel DRM services -- runtime
ii  libdrm-nouveau2:armhf                         2.4.99-1ubuntu1~18.04.1                      armhf        Userspace interface to nouveau-specific kernel DRM services -- runtime
ii  libdrm-radeon1:armhf                          2.4.99-1ubuntu1~18.04.1                      armhf        Userspace interface to radeon-specific kernel DRM services -- runtime
ii  libdrm2:armhf                                 2.4.99-1ubuntu1~18.04.1                      armhf        Userspace interface to kernel DRM services -- runtime
ii  libegl-mesa0:armhf                            19.2.1-1ubuntu1~18.04.1                      armhf        free implementation of the EGL API -- Mesa vendor library
ii  libegl1-mesa:armhf                            19.2.1-1ubuntu1~18.04.1                      armhf        transitional dummy package
ii  libgbm1:armhf                                 19.2.1-1ubuntu1~18.04.1                      armhf        generic buffer management API -- runtime
ii  libgl1-mesa-dri:armhf                         19.2.1-1ubuntu1~18.04.1                      armhf        free implementation of the OpenGL API -- DRI modules
ii  libgl1-mesa-glx:armhf                         19.2.1-1ubuntu1~18.04.1                      armhf        transitional dummy package
ii  libglapi-mesa:armhf                           19.2.1-1ubuntu1~18.04.1                      armhf        free implementation of the GL API -- shared library
ii  libglx-mesa0:armhf                            19.2.1-1ubuntu1~18.04.1                      armhf        free implementation of the OpenGL API -- GLX vendor library

After updating, my OrangePiPlus 2E with kernel 5.4 starts to have problems with screen rendering. Colors were strange, no bit images were rendered, no transparencies etc.
XFCE desktop, but also lightdm login screen was rendered very wrong.
Same happened to H5 based boards also, OrangePi Prime and OrangePi PC2.
I tried different versions of the kernel, 5.4.6, 5.4.8, 5.4.12, but also 5.3.13, always with the same result.
But, on kernel 4.19.xx everything work good. I also tried several versions of 4.19 kernels, an everything had been always ok.

 

Previous version of this libraries:

hi  libdrm-amdgpu1:armhf                          2.4.97-1ubuntu1~18.04.1                      armhf        Userspace interface to amdgpu-specific kernel DRM services -- runtime
hi  libdrm-common                                 2.4.97-1ubuntu1~18.04.1                      all          Userspace interface to kernel DRM services -- common files
hi  libdrm-etnaviv1:armhf                         2.4.97-1ubuntu1~18.04.1                      armhf        Userspace interface to etnaviv-specific kernel DRM services -- runtime
hi  libdrm-nouveau2:armhf                         2.4.97-1ubuntu1~18.04.1                      armhf        Userspace interface to nouveau-specific kernel DRM services -- runtime
hi  libdrm-radeon1:armhf                          2.4.97-1ubuntu1~18.04.1                      armhf        Userspace interface to radeon-specific kernel DRM services -- runtime
hi  libdrm2:armhf                                 2.4.97-1ubuntu1~18.04.1                      armhf        Userspace interface to kernel DRM services -- runtime
hi  libegl-mesa0:armhf                            19.0.8-0ubuntu0~18.04.3                      armhf        free implementation of the EGL API -- Mesa vendor library
hi  libegl1-mesa:armhf                            19.0.8-0ubuntu0~18.04.3                      armhf        transitional dummy package
hi  libgbm1:armhf                                 19.0.8-0ubuntu0~18.04.3                      armhf        generic buffer management API -- runtime
hi  libgl1-mesa-dri:armhf                         19.0.8-0ubuntu0~18.04.3                      armhf        free implementation of the OpenGL API -- DRI modules
hi  libgl1-mesa-glx:armhf                         19.0.8-0ubuntu0~18.04.3                      armhf        transitional dummy package
hi  libglapi-mesa:armhf                           19.0.8-0ubuntu0~18.04.3                      armhf        free implementation of the GL API -- shared library
hi  libglx-mesa0:armhf                            19.0.8-0ubuntu0~18.04.3                      armhf        free implementation of the OpenGL API -- GLX vendor library

don't have any problems with kernel 5.

There are my limits of knowledge, so I reverted my boards to kernel 4.19.96 until somebody more experienced find what is going on.

Share this post


Link to post
Share on other sites

I'm having similar issues. Flashed an old image I had, everything was fine until I "sudo apt update && apt upgrade" reboot and now images aren't being rendered including terminal. Didn't think to try an image with 4xx kernel. Trying to get kubuntu up ,running and tweaked to run as a car headunit 

Share this post


Link to post
Share on other sites
On 1/18/2020 at 3:58 AM, IgorS said:

don't have any problems with kernel 5.

There are my limits of knowledge, so I reverted my boards to kernel 4.19.96 until somebody more experienced find what is going on.


so good catch on the mesa driver changes... looks like lima support was merged in...  Can you try mainline kernel, but rolling back to the older mesa packages?

Share this post


Link to post
Share on other sites
6 minutes ago, lanefu said:

Can you try mainline kernel, but rolling back to the older mesa packages?

On my builds the initial boot is fine until I update those packages, then *boom*  no menus and a lot of laggyness.

Share this post


Link to post
Share on other sites

I did this. Even newest kernel 5.4.13 works just fine with older mesa version.

Share this post


Link to post
Share on other sites

How did you achieve Mesa roll back? On my boards the terminal nor synaptic manager gets rendered on screen. These new packages are buggy as hell but I can't download kubuntu desktop without apt update and upgrade. 

Share this post


Link to post
Share on other sites

"

you could try to blacklist lima  or panfrost.

or add 02-driver.conf to /etc/X11/Xorg.conf.d with below

"

 

Thanks for that, I know this, but I would like to have accelerated gfx.

Share this post


Link to post
Share on other sites
21 hours ago, ning said:

In description of this ppa:

"Supported architectures: amd64, arm64, i386"

and there is problem on 32 bit armhf  (H3 i.e.)

However, I tryed on H5 (OrangePi PC2, OrangePI Prime) without success.

After updating drivers and configuring Xorg,  problem remains exactly the same as before.

 

Share this post


Link to post
Share on other sites

I narrowed a bit the problem.  Just mesa packages causing rendering problem, drm packages are ok. 

So, bad guys are:

libegl-mesa0
libegl1-mesa
libgbm1
libgl1-mesa-dri
libgl1-mesa-glx
libglapi-mesa
libglx-mesa0

 

Share this post


Link to post
Share on other sites

Ubuntu issued mesa 19.2.8, still not working with kernel 5 on H3 an H5

 

Share this post


Link to post
Share on other sites

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.

Guest
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.

Loading...
1 1