https://bugs.freedesktop.org/show_bug.cgi?id=67994
Priority: medium Bug ID: 67994 Assignee: dri-devel@lists.freedesktop.org Summary: System freezes when playing video on open source AMD drivers with VDPAU Severity: normal Classification: Unclassified OS: Linux (All) Reporter: scorp.exe@yandex.ua Hardware: x86 (IA32) Status: NEW Version: XOrg CVS Component: DRM/Radeon Product: DRI
Kernel - Linux 3.11rc4 Version mesa-common-dev - 9.2.0~git20130729+9.2.9b8ad643-0ubuntu0sarvatt~raring Version libg3dvl-mesa - 9.3~git1308091520.e8d897~gd~r Driver - Gallium 0.4
To repeat the freezing - start the video on player with support for VDPAU (mplayer or XBMC), stop it, and then run another video.
https://bugs.freedesktop.org/show_bug.cgi?id=67994
--- Comment #1 from Nikita scorp.exe@yandex.ua --- My graphic card - Mobility Radeon HD 4650
https://bugs.freedesktop.org/show_bug.cgi?id=67994
--- Comment #2 from Nikita scorp.exe@yandex.ua --- Created attachment 83941 --> https://bugs.freedesktop.org/attachment.cgi?id=83941&action=edit dmesg log
https://bugs.freedesktop.org/show_bug.cgi?id=67994
Nikita scorp.exe@yandex.ua changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|System freezes when playing |System freezes (GPU lockup) |video on open source AMD |when playing video on open |drivers with VDPAU |source AMD drivers with | |VDPAU
https://bugs.freedesktop.org/show_bug.cgi?id=67994
--- Comment #3 from Christian König deathsimple@vodafone.de --- Please post the full dmesg output, especially the bootup sequence.
Does that also happen with dpm disabled?
https://bugs.freedesktop.org/show_bug.cgi?id=67994
--- Comment #4 from Nikita scorp.exe@yandex.ua --- Created attachment 83946 --> https://bugs.freedesktop.org/attachment.cgi?id=83946&action=edit Full dmesg log
https://bugs.freedesktop.org/show_bug.cgi?id=67994
--- Comment #5 from Nikita scorp.exe@yandex.ua --- (In reply to comment #3)
Does that also happen with dpm disabled?
Without "radeon.dpm=1", all played normally
https://bugs.freedesktop.org/show_bug.cgi?id=67994
Christian König deathsimple@vodafone.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|System freezes (GPU lockup) |Lockup with UVD and DPM on |when playing video on open |RV730 |source AMD drivers with | |VDPAU |
https://bugs.freedesktop.org/show_bug.cgi?id=67994
--- Comment #6 from Nikita scorp.exe@yandex.ua --- Also on kernel 3.11rc5
https://bugs.freedesktop.org/show_bug.cgi?id=67994
--- Comment #7 from Timothée Ravier timothee.romain.ravier@gmail.com --- Created attachment 84347 --> https://bugs.freedesktop.org/attachment.cgi?id=84347&action=edit dmesg log
https://bugs.freedesktop.org/show_bug.cgi?id=67994
--- Comment #8 from Timothée Ravier timothee.romain.ravier@gmail.com --- Look alike bug here: screen goes black and freeze for a while when playing the second video using VDPAU with mplayer. Upon "screen return", the whole display is corrupted and unusable, requiring reboot.
Arch Linux testing packages except for the kernel which is custom build. Card: Radeon Mobility 4650 HD Linux kernel: 3.11rc6 (commit: b36f4be, it's called -dirty in the dmesg log but I don't know why, will try to figure that out) Mesa: 9.2.0rc1 OpenGL vendor string: X.Org OpenGL renderer string: Gallium 0.4 on AMD RV730 OpenGL core profile version string: 3.1 (Core Profile) Mesa 9.2.0-rc1 OpenGL core profile shading language version string: 1.40 OpenGL core profile context flags: (none) OpenGL core profile extensions: OpenGL version string: 3.0 Mesa 9.2.0-rc1 OpenGL shading language version string: 1.30
https://bugs.freedesktop.org/show_bug.cgi?id=67994
--- Comment #9 from Alex Deucher agd5f@yahoo.com --- You might try this patch: http://people.freedesktop.org/~agd5f/0001-drm-radeon-atombios-fix-variable-s...
https://bugs.freedesktop.org/show_bug.cgi?id=67994
Timothée Ravier timothee.romain.ravier@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #84347|0 |1 is obsolete| |
--- Comment #10 from Timothée Ravier timothee.romain.ravier@gmail.com --- Created attachment 84354 --> https://bugs.freedesktop.org/attachment.cgi?id=84354&action=edit New dmesg log with patched kernel
This is the new dmesg log. I tried the patch but the bug is still here in my case. However the "Bad LCD record" error is different now and some lines in the end are not in the new log.
https://bugs.freedesktop.org/show_bug.cgi?id=67994
--- Comment #11 from Timothée Ravier timothee.romain.ravier@gmail.com --- Created attachment 84362 --> https://bugs.freedesktop.org/attachment.cgi?id=84362&action=edit X server logs
Note: if I quickly kill the second mplayer right after the start of the video I can avoid the crash, but UVD won't work anymore and mplayer will permanently end with some errors (if VDPAU is forced):
Selected video codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (VDPAU acceleration) [libavcodec] Selected audio codec: ATSC A/52A (AC-3) [libavcodec] AUDIO: 48000 Hz, 2 ch, floatle, 384.0 kbit/12.50% (ratio: 48000->384000) AO: [pulse] 48000Hz 2ch floatle (4 bytes per sample) Starting playback... VIDEO: 1280x720 23.976 fps 0.0 kbps ( 0.0 kB/s) VO: [vdpau] 1280x720 => 1280x720 H.264 VDPAU acceleration [ vdpau] Failed creating VDPAU decoder: An invalid/unsupported VdpDecoderProfile value was supplied. FATAL: Cannot initialize video driver. VIDEO: 1280x720 23.976 fps 0.0 kbps ( 0.0 kB/s) VO: [vdpau] 1280x720 => 1280x720 H.264 VDPAU acceleration [ vdpau] Failed creating VDPAU decoder: An invalid/unsupported VdpDecoderProfile value was supplied. FATAL: Cannot initialize video driver. [h264_vdpau @ 0x7f736c111cc0]decode_slice_header error [h264_vdpau @ 0x7f736c111cc0]no frame! Error while decoding frame!
FATAL: Could not initialize video filters (-vf) or video output (-vo).
But right after that my X session was killed and the X server kept exiting with bus errors when starting new ones (see attached log).
https://bugs.freedesktop.org/show_bug.cgi?id=67994
--- Comment #12 from Alex Deucher agd5f@yahoo.com --- Is this still an issue with this kernel patch? http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=85...
https://bugs.freedesktop.org/show_bug.cgi?id=67994
Timothée Ravier tim@siosm.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC|tim@siosm.fr |
--- Comment #13 from Timothée Ravier tim@siosm.fr --- My laptop is dead, I can not test this anymore.
https://bugs.freedesktop.org/show_bug.cgi?id=67994
--- Comment #14 from zimous zimous@matfyz.cz --- Same problem here, resurrecting the bug. The situation is better with the "Disable semaphores for UVDv1" patch from bug #85320, but still not completely working. Tested with:
mplayer -vo vdpau -vc ffh264vdpau movie.mkv
It is an older machine (but still serving well):
CPU: 32bit Intel P4 MB: MS-6728, Intel 865PE; Notably no MSIs! GPU: RV730 [Radeon HD 4600 AGP Series]; The "abomination" on AGP! distro: gentoo gcc: 4.9.2 xorg: 1.17.1 mesa: 10.5.2 (r600, llvm enabled) xf886-video-ati: 7.5.0 mplayer: 1.2_pre20150214 ffmpeg: 2.6.2
1) Stable kernel 4.0.2 - Movie plays for a few seconds, then the whole desktop freezes. - Keyboard dead, display dead. Ctrl+F1 to switch to console not possible. - Immediate poweroff (ACPI button) makes a clean shutdown. After few seconds not possible, only hard reboot. - Relevant line of dmesg: radeon 0000:01:00.0: failed to get a new IB (-35)
2) Stable kernel 4.0.2 + patch "Disable semaphores ..." - Movie plays for a longer time (10's of second) well. - Then the video stucks in a short loop (~second), while audio, subtitles and rest of the destop still ok. - After longer time (~minutes) audio and the whole desktop freezes. - But I can do Ctrl+F1 to switch to console and even restart X, but the image is corrupted. - Relevant line of dmesg: radeon 0000:01:00.0: failed to sync rings (-35)
3) Kernel 4.1.0-rc2 + ~airlied/drm-fixes (commit 3790e39) - At first, almost the same as in 2), maybe the times are even longer. - But in the end, the whole system freezes, no Ctrl+F1, no clean poweroff. - I have no dmesg saved (at the moment) due to the fatal crash.
https://bugs.freedesktop.org/show_bug.cgi?id=67994
--- Comment #15 from zimous zimous@matfyz.cz --- Created attachment 115638 --> https://bugs.freedesktop.org/attachment.cgi?id=115638&action=edit dmesg Linux 4.0.2 (1)
https://bugs.freedesktop.org/show_bug.cgi?id=67994
--- Comment #16 from zimous zimous@matfyz.cz --- Created attachment 115640 --> https://bugs.freedesktop.org/attachment.cgi?id=115640&action=edit dmesg Linux 4.0.2 + "Disable semaphores ..." patch
https://bugs.freedesktop.org/show_bug.cgi?id=67994
--- Comment #17 from zimous zimous@matfyz.cz --- Created attachment 115641 --> https://bugs.freedesktop.org/attachment.cgi?id=115641&action=edit dmesg Linux 4.0.2 + patch "Disable semapthores..." #2
Another try with the patched kernel. This time I quit mplayer while stil playing ok a run again. Maybe contains useful info.
https://bugs.freedesktop.org/show_bug.cgi?id=67994
--- Comment #18 from zimous zimous@matfyz.cz --- Eh, now I realized that this bug is also about DPM. In my case "radeon.dpm=0" does not help. Sorry for that, I should have filed a new bug.
Also, after more testing it seems that 4.1.0-rc-2 + drm-fixes behaves more like 4.0.2 + patch. It depends, sometimes Ctrl+F1 / restart X / clean poweroff is possible, sometimes not.
https://bugs.freedesktop.org/show_bug.cgi?id=67994
Martin Peres martin.peres@free.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |MOVED
--- Comment #19 from Martin Peres martin.peres@free.fr --- -- 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/drm/amd/issues/368.
dri-devel@lists.freedesktop.org