Bug 1886220

Summary: Vulkan drivers not loading on Intel graphics.
Product: [Fedora] Fedora Reporter: Jorge <dakotah.kanin>
Component: vulkan-loaderAssignee: Dave Airlie <airlied>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 33CC: airlied, ajax
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: vulkan-loader-1.2.148.1-1.fc33 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-10-23 22:06:13 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Vulkaninfo's log
none
PPSSPP's log
none
Refresh2025' log none

Description Jorge 2020-10-08 01:36:46 UTC
Created attachment 1719867 [details]
Vulkaninfo's log

Created attachment 1719867 [details]
Vulkaninfo's log

Description of problem:
Mesa fails to load the vulkan driver on Intel HD630 integrated graphics (and possibly on AMD GPUs too).

Version-Release number of selected component (if applicable): 
vulkan-loader-1.2.148.0-1.fc33
vulkan-loader-1.2.148.0-1.fc33.i686

How reproducible:
Everytime you run vulkaninfo, it'll show the following errors:
ERROR: [Loader Message] Code 0 : /usr/lib/libvulkan_intel.so: wrong ELF class: ELFCLASS32
ERROR: [Loader Message] Code 0 : /usr/lib/libvulkan_radeon.so: wrong ELF class: ELFCLASS32
INTEL-MESA: warning: Performance support disabled, consider sysctl dev.i915.perf_stream_paranoid=0 

Running an application like PPSSPP, which supports Vulkan, will fail to load its Vulkan renderer, and it'll default to OpenGL.

Steps to Reproduce:
1. Run vulkaninfo

Actual results:
Vulkan drivers are not loading.

Expected results:
Vulkan drivers should load, and vulkaninfo shouldn't show those errors.

Additional info:
Tested with Fedora's 33 Beta version, in X11 and Wayland Gnome sessions. I have both 32-bit and 64-bit packages installed due to Wine requiring at least the 32-bit one.

According to a different bug report that I've came across, (https://github.com/ValveSoftware/steam-for-linux/issues/7368) the vulkan drivers are not working due to a regression in the Vulkan-Loader package from Khronos, which has already been fixed, apparently, in a newer version.

Comment 1 Jorge 2020-10-08 01:40:34 UTC
Created attachment 1719868 [details]
PPSSPP's log

Comment 2 Dave Airlie 2020-10-08 02:35:42 UTC
does the package attached to this help?

https://bodhi.fedoraproject.org/updates/FEDORA-2020-76707d83ef

I've built the 1.2.148.1 sdk release.

Comment 3 Fedora Update System 2020-10-08 02:36:42 UTC
FEDORA-2020-76707d83ef has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2020-76707d83ef

Comment 4 Jorge 2020-10-08 02:50:36 UTC
(In reply to Dave Airlie from comment #2)
> does the package attached to this help?
> 
> https://bodhi.fedoraproject.org/updates/FEDORA-2020-76707d83ef
> 
> I've built the 1.2.148.1 sdk release.

Still not working, same error:
ERROR: [Loader Message] Code 0 : /usr/lib/libvulkan_intel.so: wrong ELF class: ELFCLASS32
ERROR: [Loader Message] Code 0 : /usr/lib/libvulkan_radeon.so: wrong ELF class: ELFCLASS32
INTEL-MESA: warning: Performance support disabled, consider sysctl dev.i915.perf_stream_paranoid=0

Comment 5 Dave Airlie 2020-10-08 04:23:34 UTC
So doesn't seem like the same bug reported in valve then, since the sdk release should fix it.

the wrong ELF class errors are fine, they shouldn't cause any issues
and the INTEL-MESA warning is fine.

Does vulkaninfo fail to display anything or is it just PPSPP?

Comment 6 Jorge 2020-10-08 14:39:01 UTC
(In reply to Dave Airlie from comment #5)
> So doesn't seem like the same bug reported in valve then, since the sdk
> release should fix it.
> 
> the wrong ELF class errors are fine, they shouldn't cause any issues
> and the INTEL-MESA warning is fine.
> 
> Does vulkaninfo fail to display anything or is it just PPSPP?

Just tested vkcube, the cube is displayed correctly and the output shows the same warning: "INTEL-MESA: warning: Performance support disabled, consider sysctl dev.i915.perf_stream_paranoid=0". 

Now if I add the flag --validate to vkcube I get this, but the cube is still displayed correctly:
ERROR : GENERAL - Message Id Number: 0 | Message Id Name: Loader Message
	/usr/lib/libvulkan_intel.so: wrong ELF class: ELFCLASS32

	Objects - 1
		Object[0] - VK_OBJECT_TYPE_INSTANCE, Handle 0x557dd7bcbe40

ERROR : GENERAL - Message Id Number: 0 | Message Id Name: Loader Message
	/usr/lib/libvulkan_radeon.so: wrong ELF class: ELFCLASS32

	Objects - 1
		Object[0] - VK_OBJECT_TYPE_INSTANCE, Handle 0x557dd7bcbe40

INTEL-MESA: warning: Performance support disabled, consider sysctl dev.i915.perf_stream_paranoid=0

I've also tried this tester https://github.com/srmojuze/Refresh2025, which also displays correctly and shows only the Intel warning. 

Could this be a bug in PPSSPP?

Comment 7 Jorge 2020-10-08 14:40:00 UTC
Created attachment 1719997 [details]
Refresh2025' log

Comment 8 Fedora Update System 2020-10-08 22:19:06 UTC
FEDORA-2020-76707d83ef has been pushed to the Fedora 33 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-76707d83ef`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-76707d83ef

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 9 Fedora Update System 2020-10-23 22:06:13 UTC
FEDORA-2020-76707d83ef has been pushed to the Fedora 33 stable repository.
If problem still persists, please make note of it in this bug report.