Skip to contentSkip to conversation

New: Hardware assisted (VDPAU) decoding of MPEG-2 causes GPU lockup - Radeon HD6950

Bug 71796 [email protected] 1 participant 19 messages Nov 19, 2013 – Sep 18, 2019

lore
Share & tools
lore
#0 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=71796

Priority: medium
Bug ID: 71796
Assignee: [email protected]
Summary: Hardware assisted (VDPAU) decoding of MPEG-2 causes
GPU lockup - Radeon HD6950
Severity: normal
Classification: Unclassified
OS: Linux (All)
Reporter: [email protected]
Hardware: x86-64 (AMD64)
Status: NEW
Version: git
Component: Drivers/DRI/R600
Product: Mesa

Created attachment 89477
--> https://bugs.freedesktop.org/attachment.cgi?id=89477&action=edit
DMESG output showing hardware info and lockup.

Playing back MPEG-2 compressed video causes a GPU lockup and reset. This happens about 9 times out of 10 upon start of playback - the other time playback starts fine.

About 4 out of 5 times the reset is successful and playback begins a catchup phase before continuing normally - otherwise it results in a complete system freeze.

If playback actually starts it continues fine.

Using VDPAU assisted playback via XBMC. Using software only playback works fine every time. h264 playback seems unaffected.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#1 lore raw

[Bug 71796] Hardware assisted (VDPAU) decoding of MPEG-2 causes GPU lockup - Radeon HD6950

https://bugs.freedesktop.org/show_bug.cgi?id=71796

--- Comment #1 from [email protected] ---
Same GPU lockup with [AMD/ATI] Caicos [Radeon HD 6450] which has UVD3. Happens upon start of playback of mpeg-2 files, 90% chance of lockup. On some files it seems better, on other worse. Maybe some frame errors are causing this.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw

[Bug 71796] Hardware assisted (VDPAU) decoding of MPEG-2 causes GPU lockup - Radeon HD6950

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=71796

--- Comment #2 from [email protected] ---
Created attachment 89653
--> https://bugs.freedesktop.org/attachment.cgi?id=89653&action=edit
DMESG output

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw

[Bug 71796] Hardware assisted (VDPAU) decoding of MPEG-2 causes GPU lockup - Radeon HD6950

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=71796

--- Comment #3 from Lee Donaghy <[email protected]> --- Getting the same problem with mpeg2 on my E350.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#4 lore raw

[Bug 71796] Hardware assisted (VDPAU) decoding of MPEG-2 causes GPU lockup - Radeon HD6950

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=71796

--- Comment #4 from Lee Donaghy <[email protected]> --- Created attachment 89679
--> https://bugs.freedesktop.org/attachment.cgi?id=89679&action=edit
dmesg

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#5 lore raw

[Bug 71796] Hardware assisted (VDPAU) decoding of MPEG-2 causes GPU lockup - Radeon HD6950

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=71796

--- Comment #5 from dubsides <[email protected]> --- I would like to report same issue, though mine is Radeon 4550. (UVD2.2)

lockup on every attempt with vdpau enabled, these are high bitrate ota broadcast recordings played through xbmc cmyth plugin on ubuntu 13.10

I've attached dmesg, will try directly playing files when I get back, but imagine same result.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#6 lore raw

[Bug 71796] Hardware assisted (VDPAU) decoding of MPEG-2 causes GPU lockup - Radeon HD6950

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=71796

--- Comment #6 from dubsides <[email protected]> --- actually isn't a lockup of gpu, but crashes program(xbmc) out

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#7 lore raw

[Bug 71796] Hardware assisted (VDPAU) decoding of MPEG-2 causes GPU lockup - Radeon HD6950

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=71796

--- Comment #7 from dubsides <[email protected]> --- Created attachment 89698
--> https://bugs.freedesktop.org/attachment.cgi?id=89698&action=edit
radeon 4550 dmesg

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#8 lore raw

[Bug 71796] Hardware assisted (VDPAU) decoding of MPEG-2 causes GPU lockup - Radeon HD6950

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=71796

[email protected] changed:

What |Removed |Added
----------------------------------------------------------------------------
Component|Drivers/DRI/R600 |Drivers/Gallium/r600

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#9 lore raw

[Bug 71796] Hardware assisted (VDPAU) decoding of MPEG-2 causes GPU lockup - Radeon HD6950

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=71796

--- Comment #8 from Alexandre Demers <[email protected]> --- You may have a look at bug 69775. It was reported as fixed by this patch:
[PATCH] drm/radeon: fix typo in fetching mpll params
http://lists.freedesktop.org/archives/dri-devel/2013-November/049425.html

The patch has not been merged yet, but should be soon.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#10 lore raw

[Bug 71796] Hardware assisted (VDPAU) decoding of MPEG-2 causes GPU lockup - Radeon HD6950

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=71796

--- Comment #9 from [email protected] ---
Thanks.

I have tried that patch in a kernel build kindly supplied by fritsch
(https://github.com/fritsch/linux/commits/master) but the issue still remains - no improvement.

I also built Mesa and the 2D driver from master late yesterday - still locks.

Please let me know if I can test anything else!

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#11 lore raw

[Bug 71796] Hardware assisted (VDPAU) decoding of MPEG-2 causes GPU lockup - Radeon HD6950

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=71796

--- Comment #10 from Rachel Greenham <[email protected]> --- Also getting the same problem using fritch's build here
https://github.com/fritsch/linux that has that patch, on ubuntu saucy with xbmc using vdpau. Card in this instance is a radeon HD 7750.

The surviving dmesg.0 and syslog from that session doesn't show any information related to the crash. If anything it crashed the system more thoroughly and quickly than the mainline kernels, requiring a reset-button press to recover.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#12 lore raw

[Bug 71796] Hardware assisted (VDPAU) decoding of MPEG-2 causes GPU lockup - Radeon HD6950

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=71796

--- Comment #11 from Kertesz Laszlo <[email protected]> --- Created attachment 90478
--> https://bugs.freedesktop.org/attachment.cgi?id=90478&action=edit
dmesg file showing GPU resets with mplayer on A8-5500

I have a A8-5500 with 7560D igp (Debian Testing 64 bit with Xfce 4.10) and mesa, drm, llvm, glamor and kernel from latest git with the agd5f drm-fixes-3.13 merged - playing a certain mpeg2 clip with xbmc sends the GPU into a reset loop (i managed to get to tty1 and do a killall -9 xbmc.bin, but i had to restart because the resets continued and tty7 gave no video signal at all.
Playing the same clip with mplayer shows green garbled image and after 3 tries (started playback, let it run for a few seconds, stopped) it did reset the gpu too only i was able to killall -9 mplayer from tty1 and after that one more gpu reset happened then the x server recovered.

I had some dvds laying around and those had no issues and downloaded other mpeg2 clips too and those too worked fine with vdpau decoding, but with this particular clip vdpau messed stuff up badly.

I found a link for the clip here:
https://github.com/xbmc/xbmc/pull/399

This is the direct download link, its a mpeg2 clip, around 20MB:
http://www.mediafire.com/?4dvvwj5aw2esv49

Attached dmesg from the mplayer session.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#13 lore raw

[Bug 71796] Hardware assisted (VDPAU) decoding of MPEG-2 causes GPU lockup - Radeon HD6950

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=71796

--- Comment #12 from Andy Furniss <[email protected]> --- (In reply to comment #11)

Quoted 9 lines

I had some dvds laying around and those had no issues and downloaded other mpeg2 clips too and those too worked fine with vdpau decoding, but with this particular clip vdpau messed stuff up badly.

I found a link for the clip here:
https://github.com/xbmc/xbmc/pull/399

This is the direct download link, its a mpeg2 clip, around 20MB:
http://www.mediafire.com/?4dvvwj5aw2esv49

I think this file is exceptional and so it not working is probably unrelated to whatever issue others are seeing.

It doesn't work because vdpau doesn't support field coded mpeg2. I guess because it is very rare - other than compliance streams this is the first one I've seen in the wild, and given it's mpeg2 in mkv with ac3 and the cartoon content is a mix of progressive and interlaced (maybe from telecine and frame rate converted) I don't know if it's an amateur creation or something "real".

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#14 lore raw

[Bug 71796] Hardware assisted (VDPAU) decoding of MPEG-2 causes GPU lockup - Radeon HD6950

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=71796

--- Comment #13 from Kertesz Laszlo <[email protected]> ---

Quoted 9 lines

I think this file is exceptional and so it not working is probably unrelated to whatever issue others are seeing.

It doesn't work because vdpau doesn't support field coded mpeg2. I guess because it is very rare - other than compliance streams this is the first one I've seen in the wild, and given it's mpeg2 in mkv with ac3 and the cartoon content is a mix of progressive and interlaced (maybe from telecine and frame rate converted) I don't know if it's an amateur creation or something "real".

The problem here is that a movie playback can mess up your session because the driver cannot cope with an exception caused by a specific video format. This should not happen in any circumstances.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#15 lore raw

[Bug 71796] Hardware assisted (VDPAU) decoding of MPEG-2 causes GPU lockup - Radeon HD6950

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=71796

--- Comment #14 from Andy Furniss <[email protected]> --- (In reply to comment #6)

Quoted 1 line

actually isn't a lockup of gpu, but crashes program(xbmc) out

Yea, XBMC crashes on me if I enable VDPAU - and my card (HD4890) doesn't have UVD so it's also crashing trying to use shaders for mpeg2 (which work with mplayer -vc ffmpeg12vdpau)

I wonder if others having the UVD lockups can also provoke them using mplayer -vc ffmpeg12vdpau

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#16 lore raw

[Bug 71796] Hardware assisted (VDPAU) decoding of MPEG-2 causes GPU lockup - Radeon HD6950

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=71796

--- Comment #15 from Andy Furniss <[email protected]> --- (In reply to comment #13)

Quoted 10 lines
Quoted 9 lines

I think this file is exceptional and so it not working is probably unrelated to whatever issue others are seeing.

It doesn't work because vdpau doesn't support field coded mpeg2. I guess because it is very rare - other than compliance streams this is the first one I've seen in the wild, and given it's mpeg2 in mkv with ac3 and the cartoon content is a mix of progressive and interlaced (maybe from telecine and frame rate converted) I don't know if it's an amateur creation or something "real".

Quoted 3 lines

The problem here is that a movie playback can mess up your session because the driver cannot cope with an exception caused by a specific video format. This should not happen in any circumstances.

I agree with you - I wasn't saying it didn't need fixing WRT to GPU lockups, just trying to add some info.

It may be that the lock will be fixed by making UVD more resilient, but the file still won't play properly because it's unsupported - at least you'll know why.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#17 lore raw

[Bug 71796] Hardware assisted (VDPAU) decoding of MPEG-2 causes GPU lockup - Radeon HD6950

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=71796

--- Comment #16 from Kertesz Laszlo <[email protected]> --- Interesting.
I tried again and the system hang on the first frames with mplayer. The only thing i could do was to use the sysrq combination to restart.

Then i recompiled mesa without llvm and i played it a few times in a row with both mplayer and xbmc and didnt crash. It was a green slideshow but didnt crash.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#18 lore raw

[Bug 71796] Hardware assisted (VDPAU) decoding of MPEG-2 causes GPU lockup - Radeon HD6950

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=71796

GitLab Migration User <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|---                         |MOVED

--- Comment #17 from GitLab Migration User <[email protected]> --- -- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/mesa/mesa/issues/469.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel