https://bugs.freedesktop.org/show_bug.cgi?id=82428
Priority: medium Bug ID: 82428 Assignee: dri-devel@lists.freedesktop.org Summary: [radeonsi,R9 270X] System lockup when using mplayer/mpv with VDPAU Severity: normal Classification: Unclassified OS: All Reporter: custos.mentis@gmail.com Hardware: Other Status: NEW Version: git Component: Drivers/Gallium/radeonsi Product: Mesa
With mesa from today's git repository I am getting hard system lockups while trying to play a movie with mplayer/mpv configured to use hardware acceleration (vdpau).
I was able to bisect the commit causing those lockups. The responsible commit is 1c03a690bfc3265c7fefa7f87e69782a6672a9b2 "radeonsi: use gpu_address from r600_resource".
There is no related message in the logs, since the lockup is immediate and hard reset is required.
I use libdrm, glamour, mesa, and xf86-video-ati from today's git with xorg-server-1.15.0; mpv-0.3.11 with libav-9.14 and libvdpau-0.7.
https://bugs.freedesktop.org/show_bug.cgi?id=82428
--- Comment #1 from Grzegorz Kowal custos.mentis@gmail.com --- I should also mention that I use kernel 3.14.16.
https://bugs.freedesktop.org/show_bug.cgi?id=82428
--- Comment #2 from smoki smoki00790@gmail.com ---
Same for me with current mesa git on Athlon 5350. xserver 1.16, mpv 0.4.3, libav 10.3, vdpau-0.7 and kernel 3.16.0.
https://bugs.freedesktop.org/show_bug.cgi?id=82428
Christian König deathsimple@vodafone.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED
--- Comment #3 from Christian König deathsimple@vodafone.de --- Going to take a look as soon as I have time.
https://bugs.freedesktop.org/show_bug.cgi?id=82428
--- Comment #4 from Christian König deathsimple@vodafone.de --- Created attachment 104443 --> https://bugs.freedesktop.org/attachment.cgi?id=104443&action=edit Possible fix
That patch should do the trick. Please test.
https://bugs.freedesktop.org/show_bug.cgi?id=82428
--- Comment #5 from smoki smoki00790@gmail.com --- (In reply to comment #4)
Created attachment 104443 [details] [review] Possible fix
That patch should do the trick. Please test.
Works for me, thanks Christian.
https://bugs.freedesktop.org/show_bug.cgi?id=82428
--- Comment #6 from Andy Furniss adf.lists@gmail.com --- (In reply to comment #4)
Created attachment 104443 [details] [review] Possible fix
That patch should do the trick. Please test.
Will test more tonight, but I managed to crash without uvd (just -vo vdpau) last night - though my mplayer also had some issues.
I am not sure something that only touches uvd is enough, but I haven't got time to test now.
https://bugs.freedesktop.org/show_bug.cgi?id=82428
Kai kai@dev.carbon-project.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |kai@dev.carbon-project.org
--- Comment #7 from Kai kai@dev.carbon-project.org --- (In reply to comment #4)
Created attachment 104443 Possible fix
That patch should do the trick. Please test.
You can have my Tested-by: Kai Wasserbäch kai@dev.carbon-project.org on this. I saw the same issue without the patch.
(In reply to comment #6)
(In reply to comment #4)
Created attachment 104443 Possible fix
That patch should do the trick. Please test.
Will test more tonight, but I managed to crash without uvd (just -vo vdpau) last night - though my mplayer also had some issues.
I had the same behaviour. With the patch from attachment 104443 applied though, everything is back to normal again.
https://bugs.freedesktop.org/show_bug.cgi?id=82428
--- Comment #8 from Marek Olšák maraeo@gmail.com --- (In reply to comment #4)
Created attachment 104443 [details] [review] Possible fix
That patch should do the trick. Please test.
Sorry about that.
Reviewed-by: Marek Olšák marek.olsak@amd.com
https://bugs.freedesktop.org/show_bug.cgi?id=82428
--- Comment #9 from Andy Furniss adf.lists@gmail.com --- (In reply to comment #7)
(In reply to comment #4)
Will test more tonight, but I managed to crash without uvd (just -vo vdpau) last night - though my mplayer also had some issues.
I had the same behaviour. With the patch from attachment 104443 [details] [review] applied though, everything is back to normal again.
Yes, tested now and the patch does fix for it me.
https://bugs.freedesktop.org/show_bug.cgi?id=82428
--- Comment #10 from Grzegorz Kowal custos.mentis@gmail.com --- No lockups for me after applying the patch. Thanks!
https://bugs.freedesktop.org/show_bug.cgi?id=82428
Christian König deathsimple@vodafone.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED
--- Comment #11 from Christian König deathsimple@vodafone.de --- Just pushed the patch upstream. Thanks for the help.
https://bugs.freedesktop.org/show_bug.cgi?id=82428
--- Comment #12 from Yuriy Kolesnikov yurikoles@gmail.com --- Created attachment 116549 --> https://bugs.freedesktop.org/attachment.cgi?id=116549&action=edit kernel trace
https://bugs.freedesktop.org/show_bug.cgi?id=82428
Yuriy Kolesnikov yurikoles@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED |---
--- Comment #13 from Yuriy Kolesnikov yurikoles@gmail.com --- Same hardware, same situation. Random lockups when I start to play video with VDPAU acceleration.
https://bugs.freedesktop.org/show_bug.cgi?id=82428
--- Comment #14 from Yuriy Kolesnikov yurikoles@gmail.com --- OS: ArchLinux ffmpeg 1:2.7-1 libvdpau 1.1-1 mesa 10.6.0-1 mesa-vdpau 10.6.0-1 mplayer 37379-3 vdpauinfo 1.0-1
https://bugs.freedesktop.org/show_bug.cgi?id=82428
--- Comment #15 from Andy Furniss adf.lists@gmail.com --- Can you reproduce this with mpv?
What do you need to do with mplayer to produce - how often/when does it crash eg. at start or after a while.
If you can't reproduce with mpv eg.
mpv --hwdec=vdpau --vo=vdpau .....
I already have a bug open that could be a better match.
Also does the kernel output vary between crashes?
https://bugs.freedesktop.org/show_bug.cgi?id=82428
--- Comment #16 from Andy Furniss adf.lists@gmail.com --- (In reply to Andy Furniss from comment #15)
Can you reproduce this with mpv?
What do you need to do with mplayer to produce - how often/when does it crash eg. at start or after a while.
If you can't reproduce with mpv eg.
mpv --hwdec=vdpau --vo=vdpau .....
I already have a bug open that could be a better match.
Also does the kernel output vary between crashes?
Oops I see you already said "when I start to play" - this is my bug -
https://bugs.freedesktop.org/show_bug.cgi?id=83998
https://bugs.freedesktop.org/show_bug.cgi?id=82428
Christian König deathsimple@vodafone.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution|--- |FIXED
--- Comment #17 from Christian König deathsimple@vodafone.de --- (In reply to Yuriy Kolesnikov from comment #13)
Same hardware, same situation. Random lockups when I start to play video with VDPAU acceleration.
Witch is clearly a different bug than described in this report. Please open up a new bug report.
dri-devel@lists.freedesktop.org