UVD hangs system on Vega10 linux-4.17
[email protected]
Acked-by Chunming Zhouhttps://bugs.freedesktop.org/show_bug.cgi?id=106259
Bug ID: 106259
Summary: [bisected] UVD hangs system on Vega10 linux-4.17
Product: DRI
Version: DRI git
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: DRM/AMDgpu
Assignee: [email protected]
Reporter: [email protected]
Created attachment 139148
--> https://bugs.freedesktop.org/attachment.cgi?id=139148&action=edit
dmesg
Trying to play h264 encoded video with mpv --vo=opengl --hwdec=vdpau results in frozen video and the system unresponsive to key/mouse input. System freezes roughly 1sec into videos, although audio often continues. Bisected to the following kernel commit:
2ee150cda7bdc766cf9baca3534f3a2c0b0e8357 is the first bad commit commit 2ee150cda7bdc766cf9baca3534f3a2c0b0e8357
Author: Christian König <[email protected]> Date: Fri Jan 19 15:19:16 2018 +0100
drm/amdgpu: remove now superflous *_hdp operation
All HDP invalidation and most flush can now be replaced by the generic ASIC function.
:040000 040000 85ee277739bbce19d5dbaf1fb309983198180d0f056ae126031efe507bea405931ce89864979ef2d M drivers
-------------------------------------------------
I tested mesa (git-227b1af866) patched with "radeon/vcn: fix mpeg4 msg buffer settings" by Boyuan Zang, but that didn't fix my problem. I also tested today's pull request for linux drm-fixes-4.17, but the issue is still present.
Software versions:
Linux 4.17.0-rc1 x86_64
OpenGL core profile version string: 4.5 (Core Profile) Mesa 18.1.0-rc1
libdrm: 2.4.91
libvdpau: 1.1.1
mpv: 0.27.2
ffmpeg: 3.4.2-r1GPU hardware:
OpenGL renderer string: Radeon RX Vega (VEGA10, DRM 3.23.0, 4.16.0-rc4,
LLVM 6.0.0)
03:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc.
[AMD/ATI] Vega 10 XT [Radeon RX Vega 64] [1002:687f] (rev c3)
CPU hardware:
AMD Phenom(tm) II X4 955 Processor
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
https://bugs.freedesktop.org/show_bug.cgi?id=106259
Christian König <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ckoenig.leichtzumerken@gmai
| |l.com
Status|NEW |ASSIGNED--- Comment #1 from Christian König <[email protected]> --- Which branch are you testing this with?
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
https://bugs.freedesktop.org/show_bug.cgi?id=106259
--- Comment #2 from James Harvey <[email protected]> --- Hi Christian, thanks for taking the time to look at this.
I'm seeing this issue on the mainline linux-4.17 release candidates. I skipped testing rc1, ran the bisect after seeing this on rc2, then tested
http://cgit.freedesktop.org/~agd5f/linux/?h=drm-fixes-4.17 prior to the rc3 release, just in case it was already fixed. Still present on rc3.
In order to bisect, I did need to cherrypick [fdb401d03d311399d844b9f23ec5ab98a2811f58] drm/amd/display: Fix multiple definitions of handle_crc_irq, otherwise I would get linker errors.
I'm using the firmware from git.kernel.org dated 2018-04-16.
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
https://bugs.freedesktop.org/show_bug.cgi?id=106259
--- Comment #3 from Alex Deucher <[email protected]> --- Should be fixed with this patch:
https://patchwork.freedesktop.org/patch/221510/
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
https://bugs.freedesktop.org/show_bug.cgi?id=106259
--- Comment #4 from James Harvey <[email protected]> --- Alex, thank you for the patch! This indeed fixes the hang.
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
https://bugs.freedesktop.org/show_bug.cgi?id=106259
--- Comment #5 from Lem <[email protected]> ---
It appears this bug is still present in 4.17 final (and the patch provided above doesn't appear to apply cleanly to 4.17). I get the same display hang with a Vega 56 on Ubuntu 18.04, Padoka PPA using mpv, vdpau and opengl. The system is still responsive to SSH though. Kernel 4.16.x works perfectly with the same setup.
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
https://bugs.freedesktop.org/show_bug.cgi?id=106259
James Harvey <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|ASSIGNED |RESOLVED--- Comment #6 from James Harvey <[email protected]> --- Patch was merged into drm-next and is confirmed fixed in 4.18-rc1, so I'm closing.
This patch would be nice to have in a stable version of the 4.17 kernel though.
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