Bug 1964038 - Latest mesa-dri-drivers will break xorg if using amdgpu.
Summary: Latest mesa-dri-drivers will break xorg if using amdgpu.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: mesa
Version: 34
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Adam Jackson
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 1964480 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-05-24 15:05 UTC by AKSN74
Modified: 2021-06-05 01:01 UTC (History)
12 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2021-05-31 15:46:32 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Xorg log when error (14.59 KB, text/plain)
2021-05-24 15:44 UTC, AKSN74
no flags Details

Description AKSN74 2021-05-24 15:05:47 UTC
Description of problem:
The latest system update has mesa-dri-drivers-21.1.1-1.fc34.x86_64.
But desktop cannot launch after update, with black screen.
Check logs in $HOME/.local/share/xorg/Xorg.0.log and found that X11 failed to launch with below error:

(EE) AIGLX error: dlopen of /usr/lib64/dri/swrast_dri.so failed (/usr/lib64/dri/swrast_dri.so: undefined symbol: amdgpu_query_video_caps_info
(EE) AIGLX error: unable to load driver swrast
(EE) GLX: could not load software renderer
(II) GLX: No usable GL providers found for screen 0

Now everything works fine after downgrade to mesa-dri-drivers-21.0.2-1.fc34.x86_64.

Version-Release number of selected component (if applicable):
mesa-dri-drivers-21.1.1-1.fc34.x86_64

How reproducible:
Use AMD GPU then do system update to latest.

Steps to Reproduce:
1. Do system update then reboot.


Actual results:
Booted but black screen after login.

Expected results:
Show up the desktop after login.

Additional info:
My GPU is AMD Radeon VII.
And I can login to desktop if I install amdgpu-pro from AMD official website, but I can't use it since AMD didn't support EGL on this driver already.

Comment 1 AKSN74 2021-05-24 15:44:17 UTC
Created attachment 1786508 [details]
Xorg log when error

Comment 2 Leander 2021-05-28 04:26:57 UTC
Can confirm I'm seeing this same bug, same error in my Xorg log. Fedora Workstation 34 with a Vega 56 card running the amdgpu kernel drivers.

Comment 3 naderkhalid 2021-05-29 13:34:15 UTC
*** Bug 1964480 has been marked as a duplicate of this bug. ***

Comment 4 Michel Dänzer 2021-05-31 14:49:38 UTC
What does

 ldd /usr/lib64/dri/swrast_dri.so | grep amdgpu

say?

Which version of the libdrm package is installed?

Comment 5 AKSN74 2021-05-31 15:46:32 UTC
(In reply to Michel Dänzer from comment #4)
> What does
> 
>  ldd /usr/lib64/dri/swrast_dri.so | grep amdgpu
> 
> say?
> 
> Which version of the libdrm package is installed?

Hi.
This notice me the lib dependency of swrast_dri.so
Found that it caused by AMD official OpenCL driver, which will install its own libdrm-amdgpu package.
And another package will make swrast_dri.so to link its own libdrm-amdgpu package.
Issue solved after remove AMD OpenCl driver then update mesa-dri-drivers again.

In conclusion, this is caused by AMD OpenCL driver.
I'll close this issue and report to AMD.

Sorry about inconvenience.


Note You need to log in before you can comment on or make changes to this bug.