From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 99158] vdpau segfaults and gpu locks with kodi on R9285 Date: Tue, 20 Dec 2016 11:22:39 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1265623821==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [IPv6:2610:10:20:722:a800:ff:fe98:4b55]) by gabe.freedesktop.org (Postfix) with ESMTP id ACFD36E096 for ; Tue, 20 Dec 2016 11:22:39 +0000 (UTC) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============1265623821== Content-Type: multipart/alternative; boundary="14822329590.CC5d8c0.25762"; charset="UTF-8" --14822329590.CC5d8c0.25762 Date: Tue, 20 Dec 2016 11:22:39 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D99158 Bug ID: 99158 Summary: vdpau segfaults and gpu locks with kodi on R9285 Product: Mesa Version: git Hardware: x86-64 (AMD64) OS: Linux (All) Status: NEW Severity: normal Priority: medium Component: Drivers/Gallium/radeonsi Assignee: dri-devel@lists.freedesktop.org Reporter: adf.lists@gmail.com QA Contact: dri-devel@lists.freedesktop.org Created attachment 128583 --> https://bugs.freedesktop.org/attachment.cgi?id=3D128583&action=3Dedit some segfaults This is an initial report no bisects as I have no clue when it started yet. It seems there is an unlucky timing situation with kodi that may segfault radeonsi or lock gpu playing videos with vdpau h/w decode + temporal vdpau deint which is default kodi settings. I can't reproduce with mplayer or mpv. It seems to need HD interlaced + deint, but that may be just because it cha= nges timing. Running with VDPAU_TRACE=3D1 so far avoids the crash/lock, as does setting = cpus to perf. Running kodi git, but it's reproducable with 11 month old git as well. It's easiest to provoke starting kodi with a file on command line, but is possible starting from running kodi menu - possible improved chance of crash/lock by moving mouse after clicking file to make overlay instantly re= nder over video. Attaching some segfaults and locks. I am running git mesa/llvm/kernel and the crash is rare enough that I may h= ave missed it for ages given the amount I test kodi. Additionally the best way = to provoke =3D repeated command line start, only started being possible again ecently due to a kodi bug. The segfaults are a bit random. --=20 You are receiving this mail because: You are the assignee for the bug.= --14822329590.CC5d8c0.25762 Date: Tue, 20 Dec 2016 11:22:39 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated
Bug ID 99158
Summary vdpau segfaults and gpu locks with kodi on R9285
Product Mesa
Version git
Hardware x86-64 (AMD64)
OS Linux (All)
Status NEW
Severity normal
Priority medium
Component Drivers/Gallium/radeonsi
Assignee dri-devel@lists.freedesktop.org
Reporter adf.lists@gmail.com
QA Contact dri-devel@lists.freedesktop.org

Created attachment 128583 [details]
some segfaults

This is an initial report no bisects as I have no clue when it started yet.

It seems there is an unlucky timing situation with kodi that may segfault
radeonsi or lock gpu playing videos with vdpau h/w decode + temporal vdpau
deint which is default kodi settings.

I can't reproduce with mplayer or mpv.

It seems to need HD interlaced + deint, but that may be just because it cha=
nges
timing.

Running with VDPAU_TRACE=3D1 so far avoids the crash/lock, as does setting =
cpus
to perf.

Running kodi git, but it's reproducable with 11 month old git as well.

It's easiest to provoke starting kodi with a file on command line, but is
possible starting from running kodi menu - possible improved chance of
crash/lock by moving mouse after clicking file to make overlay instantly re=
nder
over video.

Attaching some segfaults and locks.

I am running git mesa/llvm/kernel and the crash is rare enough that I may h=
ave
missed it for ages given the amount I test kodi. Additionally the best way =
to
provoke =3D repeated command line start, only started being possible again
ecently due to a kodi bug.

The segfaults are a bit random.


You are receiving this mail because:
  • You are the assignee for the bug.
= --14822329590.CC5d8c0.25762-- --===============1265623821== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1265623821==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 99158] vdpau segfaults and gpu locks with kodi on R9285 Date: Tue, 20 Dec 2016 11:23:09 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0590781690==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [IPv6:2610:10:20:722:a800:ff:fe98:4b55]) by gabe.freedesktop.org (Postfix) with ESMTP id 8359F6E955 for ; Tue, 20 Dec 2016 11:23:09 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============0590781690== Content-Type: multipart/alternative; boundary="14822329890.236b.25611"; charset="UTF-8" --14822329890.236b.25611 Date: Tue, 20 Dec 2016 11:23:09 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D99158 --- Comment #1 from Andy Furniss --- Created attachment 128584 --> https://bugs.freedesktop.org/attachment.cgi?id=3D128584&action=3Dedit some gpu locks --=20 You are receiving this mail because: You are the assignee for the bug.= --14822329890.236b.25611 Date: Tue, 20 Dec 2016 11:23:09 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated


You are receiving this mail because:
  • You are the assignee for the bug.
= --14822329890.236b.25611-- --===============0590781690== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0590781690==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 99158] vdpau segfaults and gpu locks with kodi on R9285 Date: Tue, 20 Dec 2016 14:41:44 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1599546004==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [IPv6:2610:10:20:722:a800:ff:fe98:4b55]) by gabe.freedesktop.org (Postfix) with ESMTP id 26E0F6EDD7 for ; Tue, 20 Dec 2016 14:41:44 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============1599546004== Content-Type: multipart/alternative; boundary="14822449040.EBBfF2.5351"; charset="UTF-8" --14822449040.EBBfF2.5351 Date: Tue, 20 Dec 2016 14:41:44 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D99158 --- Comment #2 from Michel D=C3=A4nzer --- Can you try reproducing it in valgrind and see if that raises some interest= ing errors? --=20 You are receiving this mail because: You are the assignee for the bug.= --14822449040.EBBfF2.5351 Date: Tue, 20 Dec 2016 14:41:44 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated

Comment= # 2 on bug 99158<= /a> from Michel D=C3=A4nzer
Can you try reproducing it in valgrind and see if that raises =
some interesting
errors?


You are receiving this mail because:
  • You are the assignee for the bug.
= --14822449040.EBBfF2.5351-- --===============1599546004== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1599546004==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 99158] vdpau segfaults and gpu locks with kodi on R9285 Date: Thu, 22 Dec 2016 00:00:02 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1165861334==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [IPv6:2610:10:20:722:a800:ff:fe98:4b55]) by gabe.freedesktop.org (Postfix) with ESMTP id 883446F0DF for ; Thu, 22 Dec 2016 00:00:02 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============1165861334== Content-Type: multipart/alternative; boundary="14823648020.010ec.17416"; charset="UTF-8" --14823648020.010ec.17416 Date: Thu, 22 Dec 2016 00:00:02 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D99158 --- Comment #3 from Andy Furniss --- Couldn't get it to crash with valgrind. Bisect not 100% sure as it seemed to get harder to provoke going back in ti= me, but it does seem to need temporal deint and I got - first bad commit: [d0d5f7600c2e8ab8d0c153787185f7a534753edd] Revert "st/vdpau: use linear layout for output surfaces The revert reverts from current head, so I will test for a while like that. --=20 You are receiving this mail because: You are the assignee for the bug.= --14823648020.010ec.17416 Date: Thu, 22 Dec 2016 00:00:02 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated

Comment= # 3 on bug 99158<= /a> from Andy Furniss
Couldn't get it to crash with valgrind.

Bisect not 100% sure as it seemed to get harder to provoke going back in ti=
me,
but it does seem to need temporal deint and I got -

first bad commit: [d0d5f7600c2e8ab8d0c153787185f7a534753edd]
Revert "st/vdpau: use linear layout for output surfaces

The revert reverts from current head, so I will test for a while like that.=


You are receiving this mail because:
  • You are the assignee for the bug.
= --14823648020.010ec.17416-- --===============1165861334== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1165861334==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 99158] vdpau segfaults and gpu locks with kodi on R9285 Date: Thu, 29 Dec 2016 11:03:57 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0819878241==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id B88776E095 for ; Thu, 29 Dec 2016 11:03:57 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============0819878241== Content-Type: multipart/alternative; boundary="14830094370.28f1f671.26241"; charset="UTF-8" --14830094370.28f1f671.26241 Date: Thu, 29 Dec 2016 11:03:57 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D99158 --- Comment #4 from Andy Furniss --- (In reply to Andy Furniss from comment #3) > Couldn't get it to crash with valgrind. >=20 > Bisect not 100% sure as it seemed to get harder to provoke going back in > time, but it does seem to need temporal deint and I got - >=20 > first bad commit: [d0d5f7600c2e8ab8d0c153787185f7a534753edd] > Revert "st/vdpau: use linear layout for output surfaces >=20 > The revert reverts from current head, so I will test for a while like tha= t. I've been running OK with the revert reverted for some time now, testing wi= th a script that repeatedly starts kodi, so it does seem to be this commit that causes some timing issue with vdpau temporal deint. --=20 You are receiving this mail because: You are the assignee for the bug.= --14830094370.28f1f671.26241 Date: Thu, 29 Dec 2016 11:03:57 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated

Comment= # 4 on bug 99158<= /a> from Andy Furniss
(In reply to Andy Furniss from comment #3)
> Couldn't get it to crash with valgrind.
>=20
> Bisect not 100% sure as it seemed to get harder to provoke going back =
in
> time, but it does seem to need temporal deint and I got -
>=20
> first bad commit: [d0d5f7600c2e8ab8d0c153787185f7a534753edd]
> Revert "st/vdpau: use linear layout for output surfaces
>=20
> The revert reverts from current head, so I will test for a while like =
that.

I've been running OK with the revert reverted for some time now, testing wi=
th a
script that repeatedly starts kodi, so it does seem to be this commit that
causes some timing issue with vdpau temporal deint.


You are receiving this mail because:
  • You are the assignee for the bug.
= --14830094370.28f1f671.26241-- --===============0819878241== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0819878241==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 99158] vdpau segfaults and gpu locks with kodi on R9285 Date: Wed, 04 Jan 2017 09:02:57 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2100248825==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [IPv6:2610:10:20:722:a800:ff:fe98:4b55]) by gabe.freedesktop.org (Postfix) with ESMTP id 930CB6E69F for ; Wed, 4 Jan 2017 09:02:57 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============2100248825== Content-Type: multipart/alternative; boundary="14835205772.EeaE.16763"; charset="UTF-8" --14835205772.EeaE.16763 Date: Wed, 4 Jan 2017 09:02:57 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D99158 --- Comment #5 from Christian K=C3=B6nig --- Yeah and that actually makes sense, by using linear layout you also disable DCC. Does using R600_DEBUG=3Dnodcc help as well? Marek please take a look at the backtraces in the first post. It sounds like one thread is getting the handle of a texture which results in a DCC decompress. Could it be that we have a race with that? Regards, Christian. --=20 You are receiving this mail because: You are the assignee for the bug.= --14835205772.EeaE.16763 Date: Wed, 4 Jan 2017 09:02:57 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated

Comment= # 5 on bug 99158<= /a> from Christian K=C3=B6nig
Yeah and that actually makes sense, by using linear layout you=
 also disable
DCC.

Does using R600_DEBUG=3Dnodcc help as well?

Marek please take a look at the backtraces in the first post. It sounds like
one thread is getting the handle of a texture which results in a DCC
decompress.

Could it be that we have a race with that?

Regards,
Christian.


You are receiving this mail because:
  • You are the assignee for the bug.
= --14835205772.EeaE.16763-- --===============2100248825== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============2100248825==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 99158] vdpau segfaults and gpu locks with kodi on R9285 Date: Wed, 04 Jan 2017 10:18:48 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1666028227==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 22A486E6E5 for ; Wed, 4 Jan 2017 10:18:48 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============1666028227== Content-Type: multipart/alternative; boundary="14835251270.B8CFFE.26936"; charset="UTF-8" --14835251270.B8CFFE.26936 Date: Wed, 4 Jan 2017 10:18:47 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D99158 --- Comment #6 from Marek Ol=C5=A1=C3=A1k --- We could get a race if vlVdpOutputSurfaceDMABuf is called from a different thread than the context is normally used with. Can that happen? You can try to test this: diff --git a/src/gallium/state_trackers/vdpau/output.c b/src/gallium/state_trackers/vdpau/output.c index 64574b2..96474fb 100644 --- a/src/gallium/state_trackers/vdpau/output.c +++ b/src/gallium/state_trackers/vdpau/output.c @@ -804,7 +804,7 @@ VdpStatus vlVdpOutputSurfaceDMABuf(VdpOutputSurface surface, whandle.type =3D DRM_API_HANDLE_TYPE_FD; pscreen =3D vlsurface->surface->texture->screen; - if (!pscreen->resource_get_handle(pscreen, vlsurface->device->context, + if (!pscreen->resource_get_handle(pscreen, NULL, vlsurface->surface->texture, &whandle, PIPE_HANDLE_USAGE_READ_WRITE)) return VDP_STATUS_NO_IMPLEMENTATION; --=20 You are receiving this mail because: You are the assignee for the bug.= --14835251270.B8CFFE.26936 Date: Wed, 4 Jan 2017 10:18:47 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated

Comment= # 6 on bug 99158<= /a> from Marek Ol=C5=A1=C3=A1k
We could get a race if vlVdpOutputSurfaceDMABuf is called from=
 a different
thread than the context is normally used with. Can that happen?

You can try to test this:

diff --git a/src/gallium/state_trackers/vdpau/output.c
b/src/gallium/state_trackers/vdpau/output.c
index 64574b2..96474fb 100644
--- a/src/gallium/state_trackers/vdpau/output.c
+++ b/src/gallium/state_trackers/vdpau/output.c
@@ -804,7 +804,7 @@ VdpStatus vlVdpOutputSurfaceDMABuf(VdpO=
utputSurface
surface,
    whandle.type =3D DRM_API_HANDLE_TYPE_FD;

    pscreen =3D vlsurface->surface->texture->screen;
-   if (!pscreen->resource_get_handle(pscreen, vlsurface->device->=
context,
+   if (!pscreen->resource_get_handle(pscreen, NULL,
                                      vlsurface->surface->texture, &a=
mp;whandle,
                                     PIPE_HANDLE_USAGE_READ_WRITE))
       return VDP_STATUS_NO_IMPLEMENTATION;


You are receiving this mail because:
  • You are the assignee for the bug.
= --14835251270.B8CFFE.26936-- --===============1666028227== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1666028227==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 99158] vdpau segfaults and gpu locks with kodi on R9285 Date: Wed, 04 Jan 2017 10:49:13 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0933031488==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [IPv6:2610:10:20:722:a800:ff:fe98:4b55]) by gabe.freedesktop.org (Postfix) with ESMTP id 817A66E6E6 for ; Wed, 4 Jan 2017 10:49:13 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============0933031488== Content-Type: multipart/alternative; boundary="14835269530.7e2c46A8C.31892"; charset="UTF-8" --14835269530.7e2c46A8C.31892 Date: Wed, 4 Jan 2017 10:49:13 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D99158 --- Comment #7 from Marek Ol=C5=A1=C3=A1k --- Nevermind. This series should fix it for VDPAU and VAAPI: https://patchwork.freedesktop.org/series/17480/ --=20 You are receiving this mail because: You are the assignee for the bug.= --14835269530.7e2c46A8C.31892 Date: Wed, 4 Jan 2017 10:49:13 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated


You are receiving this mail because:
  • You are the assignee for the bug.
= --14835269530.7e2c46A8C.31892-- --===============0933031488== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0933031488==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 99158] vdpau segfaults and gpu locks with kodi on R9285 Date: Thu, 05 Jan 2017 00:00:36 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0486146437==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [IPv6:2610:10:20:722:a800:ff:fe98:4b55]) by gabe.freedesktop.org (Postfix) with ESMTP id 5BBC36E2A6 for ; Thu, 5 Jan 2017 00:00:36 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============0486146437== Content-Type: multipart/alternative; boundary="14835744361.17A7f4C9D.27631"; charset="UTF-8" --14835744361.17A7f4C9D.27631 Date: Thu, 5 Jan 2017 00:00:36 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D99158 --- Comment #8 from Andy Furniss --- (In reply to Marek Ol=C5=A1=C3=A1k from comment #7) > Nevermind. This series should fix it for VDPAU and VAAPI: >=20 > https://patchwork.freedesktop.org/series/17480/ Yea, it's OK with these, thanks. --=20 You are receiving this mail because: You are the assignee for the bug.= --14835744361.17A7f4C9D.27631 Date: Thu, 5 Jan 2017 00:00:36 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated

Comment= # 8 on bug 99158<= /a> from Andy Furniss
(In reply to Marek Ol=C5=A1=C3=A1k from comment #7)
> Nevermind. This series should fix it for VDPAU a=
nd VAAPI:
>=20
> https://pa=
tchwork.freedesktop.org/series/17480/

Yea, it's OK with these, thanks.


You are receiving this mail because:
  • You are the assignee for the bug.
= --14835744361.17A7f4C9D.27631-- --===============0486146437== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0486146437==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 99158] vdpau segfaults and gpu locks with kodi on R9285 Date: Thu, 05 Jan 2017 10:51:21 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0115490916==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [IPv6:2610:10:20:722:a800:ff:fe98:4b55]) by gabe.freedesktop.org (Postfix) with ESMTP id A88006E857 for ; Thu, 5 Jan 2017 10:51:21 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============0115490916== Content-Type: multipart/alternative; boundary="14836134812.ca7ed0.17840"; charset="UTF-8" --14836134812.ca7ed0.17840 Date: Thu, 5 Jan 2017 10:51:21 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D99158 Christian K=C3=B6nig changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --=20 You are receiving this mail because: You are the assignee for the bug.= --14836134812.ca7ed0.17840 Date: Thu, 5 Jan 2017 10:51:21 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated Christian K=C3=B6nig changed bug 99158<= /a>
What Removed Added
Status NEW RESOLVED
Resolution --- FIXED


You are receiving this mail because:
  • You are the assignee for the bug.
= --14836134812.ca7ed0.17840-- --===============0115490916== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0115490916==--