Bug 63714 - UVD acceleration does not properly detect kernel support
Summary: UVD acceleration does not properly detect kernel support
Status: CLOSED NOTABUG
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/Gallium/r600 (show other bugs)
Version: git
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-19 09:22 UTC by ryszardzonk
Modified: 2013-04-22 08:40 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
udv_fix.patch (11.62 KB, patch)
2013-04-19 09:22 UTC, ryszardzonk
Details | Splinter Review

Description ryszardzonk 2013-04-19 09:22:39 UTC
Created attachment 78220 [details] [review]
udv_fix.patch

Hardware: AMD E-350
00:01.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI Wrestler [Radeon HD 6310]

1)    Kernel 3.9.0-rc7 + uvd v3 patches  (Gentoo self compiled)
2)    Libdrm-2.4.44
3)    Mesa master git: 	e87015f5089a2c4a99e0288e1adeeabb5a7ca7e3
4)    Xorg-server-1.13.4
5)    ddx: xf86-video-ati git: 6e74aacc5e5da3b51744153dad1645caa6ea4ce3

I have been able to use UVD acceleration when it first appeared using mesa v2 of UVD code, but from the time it has been introduced in the mesa mainline with v5 it does not work anymore. I believe it has to do with mesa not properly detecting kernel support "[    1.638460] [drm] UVD initialized successfully." and reverting to the vdpau support in shaders. Could it be that it requires some kernel option I am missing?

As I have been trying to find exact reason I revered some changes that has been introduced in mesa after v2 and it works again. I am not sure if all of those are needed or which change in particular by itself would be enough but any way it gets it working again so it is in there somewhere
Comment 1 Alex Deucher 2013-04-19 13:39:02 UTC
You are probably using an old set of kernel patches.  There were several revisions.  The mesa code checks to see if the kernel is new enough and the latest kernel patch revision bumps the kernel driver version.  You can get everything you need from my kernel tree:
http://cgit.freedesktop.org/~agd5f/linux/log/?h=drm-next-3.10
Comment 2 Christian König 2013-04-19 14:05:24 UTC
That indeed just sounds like you're kernel is outdated.

The kernel interface changed while merging the patches and the patches in mesa uses the end result in drm-next-3.10, so it is highly likely that you just have a outdated kernel.
Comment 3 ryszardzonk 2013-04-21 11:43:41 UTC
yes it in did seems like a coding frenzy took place in recent days ;). using kernel 3.9.0-rc7 and applying around ~50 newest patches from http://cgit.freedesktop.org/~agd5f/linux/log/?h=drm-next-3.10 tree (which was way more then I originally found in the drm mailing list) did not require any changes in mesa to make uvd work again
Thanks for great work!
Comment 4 Christian König 2013-04-22 08:40:26 UTC
k, then let's close this tracker.


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.