Summary: | [radeon] Heavy artifacts during hw accelerated playback of wmv files | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | DRI | Reporter: | Jan Burgmeier <jan.burgmeier> | ||||||||||
Component: | libdrm | Assignee: | Default DRI bug account <dri-devel> | ||||||||||
Status: | RESOLVED FIXED | QA Contact: | |||||||||||
Severity: | normal | ||||||||||||
Priority: | medium | ||||||||||||
Version: | unspecified | ||||||||||||
Hardware: | Other | ||||||||||||
OS: | All | ||||||||||||
Whiteboard: | |||||||||||||
i915 platform: | i915 features: | ||||||||||||
Attachments: |
|
Description
Jan Burgmeier
2017-03-31 10:06:52 UTC
Please attach your full dmesg output as well. Created attachment 130614 [details]
full dmesg output
Created attachment 130615 [details] [review] Hack for testing Please apply the attached code change with "git apply hack.patch" on a linux kernel tree and see if that helps. It overrides the setting from libdrm to always use VRAM for UVD submissions. Not a final solution, but it should help to narrow down the problem. I applied the hack to HEAD of the staging-next branch and it worked. Created attachment 130618 [details] [review] Hack number 2 for testing Ok, just as I expected we suddenly don't put buffers into VRAM any more and the UVD block has an undocumented requirement for WMV playback that those buffers needs to be in VRAM. No idea why user space is broken, but the kernel should catch such cases and force them into VRAM when the hardware needs that. Please revert the last hack and try this one. It should only the first and second buffer into VRAM. If that doesn't work try to change the if so that the first,second and third buffer are forced into VRAM etc.... I need to know which one is needed in VRAM here. Your hack number 2 worked directly. Created attachment 130810 [details] [review] Final solution. Thanks, but I actually receive updates via the dri-devel mailing list. Do we know yet which flags are getting passed to radeon_bo_open for the BO(s) in question? (In reply to Michel Dänzer from comment #8) > Thanks, but I actually receive updates via the dri-devel mailing list. > > Do we know yet which flags are getting passed to radeon_bo_open for the > BO(s) in question? No, so far I've concentrated on figuring out what's going on inside the kernel. commit 8f12bbe6d94a51f3ae314c27cc7b9b315adfe383 Author: Christian König <christian.koenig@amd.com> Date: Tue Apr 11 19:20:20 2017 +0200 drm/radeon: force the UVD DPB into VRAM as well Seems to be mandatory for WMV playback. Bugs: https://bugs.freedesktop.org/show_bug.cgi?id=100510 breaks video playback for me with a VERDE card (DVD and some other formats), with the error: [75728.141010] [drm:radeon_uvd_cs_parse [radeon]] *ERROR* msg/fb buffer 14674000-1686F000 out of 256MB segment! [75728.141030] [drm:radeon_cs_ioctl [radeon]] *ERROR* Invalid command stream ! I'm happy to supply more specifics of my configuration. Arthur, please file your own report. The commit in question did fix the problem reported here, so this is the correct status. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.