Bug 50594

Summary: VDPAU checks version of wrong DRM driver
Product: Mesa Reporter: Steven Newbury <s_j_newbury>
Component: OtherAssignee: Default DRI bug account <dri-devel>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: medium CC: agge.se, ckoenig.leichtzumerken, mike, s_j_newbury
Version: git   
Hardware: Other   
OS: Linux (All)   
See Also: https://bugs.freedesktop.org/show_bug.cgi?id=60016
Whiteboard:
i915 platform: i915 features:

Description Steven Newbury 2012-06-01 09:24:16 UTC
I have two DRM devices, i965 on-board, and a Radeon HD5450 in a docking station.

When both devices are enabled in my Xorg server layout "Screen0" is the i965,
and "Screen1", the Radeon.

When I run vdpauinfo or try using mplayer -vo vdpau on the Radeon, I
get the error:

do_winsys_init: DRM version is 1.6.0 but this driver is only
compatible with 2.3.x (kernel 2.6.34) or later.

This is the version of the intel DRM driver!

The i965 obviously doesn't do VDPAU, since it's a "classic" driver, the Radeon, seems to be properly configured.  DRI works fine on both. (glxgears etc)

I checked to see if it makes a difference whether card0<->card1, but it always looks at the wrong DRM.
Comment 1 Christian König 2013-07-09 07:47:19 UTC
IIRC I fixed this quite a while ago, please retest with current mesa master.
Comment 2 Mike Lothian 2013-07-09 20:07:54 UTC
fireburn@tau ~ $ VDPAU_DRIVER=r600 vdpauinfo
display: :0   screen: 0
do_winsys_init: DRM version is 1.6.0 but this driver is only compatible with 2.3.x (kernel 2.6.34) or later.
Error creating VDPAU device: 23

This is running both the latest mesa, kernel and libdrm - this is however on a prime system
Comment 3 Axel 2013-07-10 00:14:50 UTC
not working on gentoo with mesa 9.1 9.1.1 9.1.2 9.1.2-r1 9.1.3 9.1.4 9.2_pre20130515 9.2_pre20130528 and 9.2_pre20130619 with the 3.10 kernel
 
working on mesa 9.0.3

see bug https://bugs.freedesktop.org/show_bug.cgi?id=60016
for more info.


Ok I am unsure about what options to use below but I don't think it is fixed and I have duplicated it? or worksforme it do works with the old version?
Comment 4 Axel 2013-10-12 22:50:14 UTC
Is this bug still active or was the bug fix by Christian König implemented?
Comment 5 Mike Lothian 2013-10-12 22:58:15 UTC
It was fixed for me a while back bit not tried it in a while since getting
vdpau working on i965
On 12 Oct 2013 23:50, <bugzilla-daemon@freedesktop.org> wrote:

>   *Comment # 4 <https://bugs.freedesktop.org/show_bug.cgi?id=50594#c4> on bug
> 50594 <https://bugs.freedesktop.org/show_bug.cgi?id=50594> from Axel<agge.se@gmail.com>
> *
>
> Is this bug still active or was the bug fix by Christian König implemented?
>
>  ------------------------------
> You are receiving this mail because:
>
>    - You are the assignee for the bug.
>
>
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel
>
>
Comment 6 Axel 2013-10-12 23:04:20 UTC
Ok. I havent tested any of the latest releces of mesa since I endet the
last batch of tests and got it working using the old 9.0.3. But I am
thinking about upgrading and vanted to check if anyone know if the incorect
kernel detaction had been fixed before I updated.
On 13 Oct 2013 00:58, <bugzilla-daemon@freedesktop.org> wrote:

>   *Comment # 5 <https://bugs.freedesktop.org/show_bug.cgi?id=50594#c5> on bug
> 50594 <https://bugs.freedesktop.org/show_bug.cgi?id=50594> from Mike
> Lothian <mike@fireburn.co.uk> *
>
> It was fixed for me a while back bit not tried it in a while since getting
> vdpau working on i965
> On 12 Oct 2013 23:50, <bugzilla-daemon@freedesktop.org> wrote:
> >   *Comment # 4 <https://bugs.freedesktop.org/show_bug.cgi?id=50594#c4> <https://bugs.freedesktop.org/show_bug.cgi?id=50594#c4> on bug
> > 50594 <https://bugs.freedesktop.org/show_bug.cgi?id=50594> from Axel<agge.se@gmail.com>
> > *
> >> Is this bug still active or was the bug fix by Christian König implemented?
> >>  ------------------------------
> > You are receiving this mail because:
> >>    - You are the assignee for the bug.
> >
> >> _______________________________________________
> > dri-devel mailing list
> > dri-devel@lists.freedesktop.org
> > http://lists.freedesktop.org/mailman/listinfo/dri-devel
> >
> >
>
>  ------------------------------
> You are receiving this mail because:
>
>    - You are on the CC list for the bug.
>
>
Comment 7 Christian König 2013-10-13 08:03:10 UTC
As I stated this bug is already fixed for quite some time now, please note that you both need current mesa AND current VDPAU wrapper library for this to work.
Comment 8 Axel 2013-10-13 08:15:21 UTC
Sorry to disturb you Christian but in what version was it fixed?
And would that also fix bug 60016?
Comment 9 Christian König 2013-10-13 08:31:43 UTC
(In reply to comment #8)
> Sorry to disturb you Christian but in what version was it fixed?
> And would that also fix bug 60016?

Dave fixed this with commit 19338157c97becac1e61cc51dc0904ddfab8e9da on Jul 25.

No idea when that patch made it into any stable release.
Comment 10 Axel 2013-12-26 06:37:34 UTC
Works in 10.0.1
But not in 9.2.5!

How not tested 
10.0.0
10.0.0_rc2
or 9.2.4

none working in 9.1.6
but works in 9.0.3

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.