Bug 1244559

Summary: Firefox fails to open radeonsi_drv_video.so
Product: [Fedora] Fedora Reporter: Didier G <didierg-divers>
Component: mesaAssignee: Adam Jackson <ajax>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 22CC: ajax, fschwarz, gecko-bugs-nobody, ignatenko, jhorak, jimmy, stransky
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-03-20 13:53:08 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:

Description Didier G 2015-07-20 01:36:53 UTC
Description of problem:

Firefox fails to open radeonsi_drv_video.so


Version-Release number of selected component (if applicable):

firefox-39.0-8.fc22.x86_64
mesa-vdpau-drivers-10.6.1-1.20150629.fc22.x86_64

01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Cape Verde XT [Radeon HD 7770/8760 / R7 250X]


How reproducible:

Just start Firefox will configuration above


Actual results:

juil. 20 02:37:33 lx-xxxxxx firefox.desktop[12427]: libva info: VA-API version 0.37.0
juil. 20 02:37:33 lx-xxxxxx firefox.desktop[12427]: libva info: va_getDriverName() returns 0
juil. 20 02:37:33 lx-xxxxxx firefox.desktop[12427]: libva info: Trying to open /usr/lib64/dri/radeonsi_drv_video.so
juil. 20 02:37:33 lx-xxxxxx firefox.desktop[12427]: libva info: va_openDriver() returns -1


Additional info:

A symlink radeonsi_drv_video.so -> gallium_drv_video.so in /usr/lib64/dri seems to fix this problem. No more error message.

Comment 1 Didier G 2015-07-21 17:27:45 UTC
Symlink radeonsi_drv_video.so -> gallium_drv_video.so in /usr/lib64/dri suppress firefox error messages but it break totem whi message: "GStreamer encountered a general stream error." 

In log with symlink:

juil. 21 19:21:07 lx-xxxxxx org.gnome.Totem[1896]: libva info: VA-API version 0.37.0
juil. 21 19:21:07 lx-xxxxxx org.gnome.Totem[1896]: libva info: va_getDriverName() returns 0
juil. 21 19:21:07 lx-xxxxxx org.gnome.Totem[1896]: libva info: Trying to open /usr/lib64/dri/radeonsi_drv_video.so
juil. 21 19:21:07 lx-xxxxxx org.gnome.Totem[1896]: libva info: Found init function __vaDriverInit_0_37
juil. 21 19:21:07 lx-xxxxxx org.gnome.Totem[1896]: libva info: va_openDriver() returns 0


Changed component form firefox to mesa

Comment 2 Didier G 2015-07-22 02:02:12 UTC
Tested with vainfo.

There is definitively a problem with va-api:


$ vainfo
libva info: VA-API version 0.37.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib64/dri/radeonsi_drv_video.so
libva info: va_openDriver() returns -1
vaInitialize failed with error code -1 (unknown libva error),exit

Comment 3 jimmy 2015-12-21 02:02:37 UTC
I believe the fix you want is http://lists.freedesktop.org/archives/mesa-dev/2015-December/103585.html. I created and applied to openSUSE: https://build.opensuse.org/request/show/349699.

The patch created the named drivers that libva is expected which is consistent with drivers for everything else.

Comment 4 Igor Gnatenko 2016-03-20 13:53:08 UTC
should be fixed.