Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 582544 - x11-drivers/xf86-video-intel-2.99.917_p20160423: totem crashes with intel_do_flush_locked failed: No such file or directory
Summary: x11-drivers/xf86-video-intel-2.99.917_p20160423: totem crashes with intel_do_...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL: https://bugs.freedesktop.org/show_bug...
Whiteboard:
Keywords:
: 592962 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-05-09 10:44 UTC by Pacho Ramos
Modified: 2017-01-29 18:18 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
xf86-video-intel-2.99.917_p20160518.ebuild.patch (file_582544.txt,1.52 KB, patch)
2016-06-11 11:54 UTC, Chí-Thanh Christopher Nguyễn
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Pacho Ramos gentoo-dev 2016-05-09 10:44:02 UTC
Since using DRI3 (and TearFree) I finally solved the tearing issues I am having with stable driver and xorg-server but, sadly, it has the drawback of totem (and any player using vaapi) to crash with this error:
intel_do_flush_locked failed: No such file or directory

I have found this upstream report... but it looks like upstream is not looking to it :(... I am not sure if you are in touch with someone there that could get this solved finally :/
https://bugs.freedesktop.org/show_bug.cgi?id=71759

Thanks a lot
Comment 1 Chí-Thanh Christopher Nguyễn gentoo-dev 2016-05-24 16:14:42 UTC
Is this a regression from the current stable driver?
If not, I would consider it not a blocker of the stabilization bug.
Comment 2 Pacho Ramos gentoo-dev 2016-05-24 19:23:20 UTC
It is a regression because DRI3 will expose this new bug (even fixing the tearing over DRI2)

Do you think https://bugs.freedesktop.org/show_bug.cgi?id=71759#c17 is feasible to be tried? I can try that patch if needed :/
Comment 3 Chí-Thanh Christopher Nguyễn gentoo-dev 2016-05-24 19:32:35 UTC
xf86-video-intel-2.99.917-r2 doesn't support DRI3 and so this is not a regression, just an additional new feature that doesn't work right.

x11 project tries to avoid carrying patches that were not applied upstream. Once upstream has applied this patch (or at least given a "lgtm" comment) we can backport it or make a new snapshot. Maybe mattst88 can comment on upstream's plans for this patch.

If the patch works for you, it would be good to comment on the fdo bug about it.
Comment 4 Pacho Ramos gentoo-dev 2016-05-24 20:05:17 UTC
If I don't misremember dri3 is now enabled by default, and, then, it is a regression :/ Well, at least, people will pass from opening videos with, for example, totem and, later, totem crashing each time they try to use it if they have vaapi support enabled
Comment 5 Pacho Ramos gentoo-dev 2016-05-28 09:04:41 UTC
Yeah, the patch against libdrm works fine :D
Comment 6 Chí-Thanh Christopher Nguyễn gentoo-dev 2016-06-01 17:24:40 UTC
Thanks for testing.

Some status update:
[21:26:16] <chithead> mattst88: do you know if anyone at intel is currently looking into bug 582544? if not, what is the best way to proceed, disable dri3 by default?
[21:48:15] <mattst88> chithead: ugh. I doubt it
[21:48:28] <mattst88> ickle doesn't like dri3 and keith and eric left
[22:12:26] <chithead> mrueg: you enabled dri3 by default for xf86-video-intel, what do you say?
[22:27:04] <mattst88>  chithead: I'll try to ask around on tuesday (monday's a holiday)
Comment 7 Pacho Ramos gentoo-dev 2016-06-05 08:50:01 UTC
Personally I would prefer to apply the patch to libdrm instead of reverting to all the tearing issues with older xorg-server and driver versions :(
Comment 8 Chí-Thanh Christopher Nguyễn gentoo-dev 2016-06-05 17:04:06 UTC
I don't understand what the patch does, and what other effects it may have. Upstream hasn't commented on it yet. I would not be comfortable applying it at this point.
Comment 9 Pacho Ramos gentoo-dev 2016-06-11 11:26:50 UTC
I have tried to ask in upstream report but they keep ignoring all :(

Maybe one option would be to CC libdrm maintainers in upstream bug... but I don't know what is their address :S
Comment 10 Chí-Thanh Christopher Nguyễn gentoo-dev 2016-06-11 11:54:04 UTC
Created attachment 437156 [details, diff]
xf86-video-intel-2.99.917_p20160518.ebuild.patch

Disable dri3 by default, display a warning message when the user enables it. This change would make this bug longer block the xorg stabilization.

(In reply to Pacho Ramos from comment #9)
xf86-video-intel and libdrm_intel are developed by the same team afaik. So the issue is known to the correct people.
Comment 11 Chí-Thanh Christopher Nguyễn gentoo-dev 2016-07-04 16:35:26 UTC
commit 1909f4a87a7d6a7ac3d2c08fd644fc76fcd111f7
Author: Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org>
Date:   Mon Jul 4 18:34:49 2016 +0200

    x11-drivers/xf86-video-intel: always build dri3, but default to dri2 at runtime
    
    Bug: https://bugs.gentoo.org/show_bug.cgi?id=582544
Comment 12 Pacho Ramos gentoo-dev 2016-09-12 14:11:38 UTC
*** Bug 592962 has been marked as a duplicate of this bug. ***
Comment 13 Francisco Blas Izquierdo Riera (RETIRED) gentoo-dev 2016-10-10 14:51:02 UTC
As per https://bugs.freedesktop.org/show_bug.cgi?id=71759#c51 seems the patch to fix this issue has been accepted by mainstream and will be released with mesa 12.0.4
Comment 14 Matt Turner gentoo-dev 2017-01-29 18:18:49 UTC
This is fixed with mesa-13.0.0.