mplayer -vo=gl:yuv=2 causes VM fault
https://bugs.freedesktop.org/show_bug.cgi?id=95545
Bug ID: 95545
Summary: [amdgpu][tonga] mplayer -vo=gl:yuv=2 causes VM fault
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 123994
--> https://bugs.freedesktop.org/attachment.cgi?id=123994&action=edit
vm fault report
Running mplayer with -vo gl:yuv=x with x>1 causes GPU VM fault. yuv=0 is software rendering, that works fine.
yuv=1 uses GL_NV_register_combiners and that doesn't fault but the output is unusable.
The other values use fragment shaders, those are all broken.
Reportedly the apitrace works with older versions, mesa 11.2.2 and llvm 3.6.2.
kernel agd5f/drm-next-4.7 git 3b59c344ab6e2d00b0f4ad946024572618c87502 mesa git 65c2abf6fdd51b0a80a72caa0c52cf3f4578e743
llvm git ef1f2996c17c9b1480201239002b58851810e8fc xf86-video-amdgpu git 60ced5026ebc34d9f32c7618430b6a7ef7c8eb4b Xorg 1.18.0
mplayer svn r37870
gigabyte 380 (tonga)
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=95545
--- Comment #1 from [email protected] ---
Created attachment 123995
--> https://bugs.freedesktop.org/attachment.cgi?id=123995&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]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=95545
--- Comment #2 from [email protected] ---
Created attachment 123996
--> https://bugs.freedesktop.org/attachment.cgi?id=123996&action=edit
stderr
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=95545
--- Comment #3 from [email protected] ---
Created attachment 123997
--> https://bugs.freedesktop.org/attachment.cgi?id=123997&action=edit
apitrace
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=95545
Andy Furniss <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
--- Comment #4 from Andy Furniss <[email protected]> --- Doesn't affect other players using gl.
But anyway, testing with mplayer -vo gl <file> bisect came up with -
commit 70934de00eb42ba6fc43d104875962dfb260a1b3
Author: Marek Olšák <[email protected]> Date: Thu Apr 21 21:41:59 2016 +0200
radeonsi: add new SDMA texture copy code
This implements:
- Linear-to-linear partial copies. (unaligned)
- Tiled-to-linear and linear-to-tiled partial copies. (unaligned except 1-2 Bpp)
- Tiled-to-tiled partial copies aligned to 8x8.
v2: Extend the SDMA L2T VM fault workaround to T2L.
- Same algorithm, just applied to T2L.
(and using a 0-based address and surface.bo_size instead ofbuf->size)
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=95545
Michel Dänzer <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Version|DRI git |git
QA Contact| |[email protected]
| |.org
Product|DRI |Mesa
Component|DRM/AMDgpu |Drivers/Gallium/radeonsiSignature · 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=95545
--- Comment #5 from Marek Olšák <[email protected]> ---
The problem is with the CE preamble which is sometimes skipped when it shouldn't be. SDMA IB submission somehow affects it. The workarounds are:
- disable SDMA (bad)
- disable CE preamble (not so bad)
- execute SDMA in a different amdgpu context (not tested, just an idea I'll try next)
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=95545
--- Comment #6 from Marek Olšák <[email protected]> ---
Using a difference context for SDMA doesn't help. Disabling the CE preamble seems to be the only solution.
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=95545
Marek Olšák <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|NEW |RESOLVED--- Comment #7 from Marek Olšák <[email protected]> --- This seems to be fixed. Possible fix:
commit 54f755fa0fda14c578022767bcef2f27b2e89707
Author: Bas Nieuwenhuizen <[email protected]> Date: Mon Jun 6 22:36:35 2016 +0200
radeonsi: Reinitialize all descriptors in CE preamble.
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