Skip to contentSkip to conversation

gallium nouveau has no profile in vdpau and libva

Bug 77102 [email protected] 1 participant 12 messages Apr 6, 2014 – Apr 7, 2014 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]/

A message that is not in the archive (sent off-list or not yet received): bug-77102-8800-V0hAGp6uBxMKqLRl/[email protected]/

#2 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=77102

Ilia Mirkin <imirkin-FrUbXkNCsVf2fBVCVOL8/[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

           Assignee|mesa-dev-PD4FTy7X32lNgt0PjOBp9/[email protected] |[email protected]
                   |org                         |rg
          Component|Other                       |Drivers/DRI/nouveau

--- Comment #6 from Ilia Mirkin <imirkin-FrUbXkNCsVf2fBVCVOL8/[email protected]> --- Please provide the output of

ls -l /lib/firmware/nouveau
dmesg (after you've run vdpauinfo)

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#3 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=77102

--- Comment #7 from Stefan Ringel <[email protected]> --- Created attachment 96999
--> https://bugs.freedesktop.org/attachment.cgi?id=96999&action=edit
ls

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#4 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=77102

--- Comment #8 from Ilia Mirkin <imirkin-FrUbXkNCsVf2fBVCVOL8/[email protected]> --- OK, so it seems like the firmware is correctly in place, and there are no errors coming from dmesg, which means it's getting loaded (or at least isn't failing to load).

What version of Mesa are you using? I recently added a feature which auto-detects if firmware is present before reporting codec capabilities, and I might have gotten it wrong somehow.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#5 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=77102

--- Comment #9 from Stefan Ringel <[email protected]> --- (In reply to comment #8)

Quoted 7 lines

OK, so it seems like the firmware is correctly in place, and there are no errors coming from dmesg, which means it's getting loaded (or at least isn't failing to load).

What version of Mesa are you using? I recently added a feature which auto-detects if firmware is present before reporting codec capabilities, and I might have gotten it wrong somehow.

mesa 10.1 (Fedora Core 21 rawhide)

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#6 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=77102

--- Comment #10 from Ilia Mirkin <imirkin-FrUbXkNCsVf2fBVCVOL8/[email protected]> --- Would you mind booting with

nouveau.debug=PBSP=trace

and putting up a dmesg from that (after the vdpauinfo, that is). BTW, silly question -- do you have a libvdpau_nouveau.so?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#7 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=77102

--- Comment #11 from Stefan Ringel <[email protected]> --- (In reply to comment #10)

Quoted 6 lines

Would you mind booting with

nouveau.debug=PBSP=trace

and putting up a dmesg from that (after the vdpauinfo, that is). BTW, silly question -- do you have a libvdpau_nouveau.so?

yes I have libvdpau_nouveau.so. It is installed in /usr/lib64/vdpau .

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#8 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=77102

--- Comment #12 from Stefan Ringel <[email protected]> --- Created attachment 97000
--> https://bugs.freedesktop.org/attachment.cgi?id=97000&action=edit
dmesg

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#9 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=77102

--- Comment #13 from Ilia Mirkin <imirkin-FrUbXkNCsVf2fBVCVOL8/[email protected]> --- Created attachment 97009
--> https://bugs.freedesktop.org/attachment.cgi?id=97009&action=edit
firmware present patch

OK, upon further code reading, it looks like the way nouveau does class id's is a bit off. That doesn't strictly matter for BSP, but there's a mismatch in the logic between mesa and the kernel, which causes problems for NVD7 and NVD9 cards.

In nouveau_vp3_video.c:firmware_present,

      if (chipset < 0xc0)
         oclass = 0x85b1;
      else if (vp5)
         oclass = 0x95b1;
      else
         oclass = 0x90b1;

should become

      if (chipset < 0xc0)
         oclass = 0x85b1;
      else if (chipset < 0xe0)
         oclass = 0x90b1;
      else
         oclass = 0x95b1;

Since the kernel expects the 90b1 class to be used on the NVD9 card, despite it having VP5. I've attached this change as a patch, please try it out. (If you can't, I'll try to locate someone else with the relevant hardware, but it'd be much easier if you could do it.)

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#10 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=77102

--- Comment #14 from Stefan Ringel <[email protected]> --- (In reply to comment #13)

Quoted 26 lines

Created attachment 97009 [details] [review]
firmware present patch

OK, upon further code reading, it looks like the way nouveau does class id's is a bit off. That doesn't strictly matter for BSP, but there's a mismatch in the logic between mesa and the kernel, which causes problems for NVD7 and NVD9 cards.

In nouveau_vp3_video.c:firmware_present,

      if (chipset < 0xc0)
         oclass = 0x85b1;
      else if (vp5)
         oclass = 0x95b1;
      else
         oclass = 0x90b1;

should become

      if (chipset < 0xc0)
         oclass = 0x85b1;
      else if (chipset < 0xe0)
         oclass = 0x90b1;
      else
         oclass = 0x95b1;
Quoted 4 lines

Since the kernel expects the 90b1 class to be used on the NVD9 card, despite it having VP5. I've attached this change as a patch, please try it out. (If you can't, I'll try to locate someone else with the relevant hardware, but it'd be much easier if you could do it.)

Patch works. Thanks.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#11 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=77102

--- Comment #15 from Stefan Ringel <[email protected]> --- Created attachment 97014
--> https://bugs.freedesktop.org/attachment.cgi?id=97014&action=edit
correct profile in vdpauinfo + vainfo

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#12 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=77102

--- Comment #16 from Stefan Ringel <[email protected]> --- (In reply to comment #15)

Quoted 2 lines

Created attachment 97014 [details]
correct profile in vdpauinfo + vainfo

dmseg:

[   97.292274] nouveau T[    PBSP][0000:01:00.0] inc() == 4
[   97.341821] nouveau T[    PBSP][0000:01:00.0] use(+1) == 1
[   97.341827] nouveau T[    PBSP][0000:01:00.0] initialising...
[   97.341831] nouveau T[    PBSP][0000:01:00.0] resetting...
[   97.341840] nouveau D[    PBSP][0000:01:00.0] reset
[   97.341847] nouveau D[    PBSP][0000:01:00.0] falcon version: 4
[   97.341850] nouveau D[    PBSP][0000:01:00.0] secret level: 3
[   97.341852] nouveau D[    PBSP][0000:01:00.0] code limit: 8192
[   97.341855] nouveau D[    PBSP][0000:01:00.0] data limit: 4096
[   97.376514] nouveau D[    PBSP][0000:01:00.0] firmware: nouveau/nvd9_fuc084
(self-bootstrapping)
[   97.377803] nouveau D[    PBSP][0000:01:00.0] initialised
[   97.377983] nouveau T[    PBSP][0000:01:00.0] inc() == 5
[   97.378050] nouveau D[    PBSP][0000:01:00.0][0x0300c01b][ffff880118ebf800]
created
[   97.378057] nouveau T[    PBSP][0000:01:00.0][0x0300c01b][ffff880118ebf800]
inc() == 2
[   97.378062] nouveau T[    PBSP][0000:01:00.0] inc() == 6
[   97.378068] nouveau D[    PBSP][0000:01:00.0][0x000090b1][ffff8800c2bfc960]
created
[   97.378074] nouveau T[    PBSP][0000:01:00.0][0x000090b1][ffff8800c2bfc960]
use(+1) == 1
[   97.378080] nouveau T[    PBSP][0000:01:00.0][0x000090b1][ffff8800c2bfc960]
initialising...
[   97.378086] nouveau T[    PBSP][0000:01:00.0][0x0300c01b][ffff880118ebf800]
use(+1) == 1
[   97.378092] nouveau T[    PBSP][0000:01:00.0][0x0300c01b][ffff880118ebf800]
initialising...
[   97.378104] nouveau T[    PBSP][0000:01:00.0] use(+1) == 2
[   97.378145] nouveau D[    PBSP][0000:01:00.0][0x0300c01b][ffff880118ebf800]
initialised
[   97.378150] nouveau T[    PBSP][0000:01:00.0] use(+1) == 3
[   97.378156] nouveau D[    PBSP][0000:01:00.0][0x000090b1][ffff8800c2bfc960]
initialised
[   97.378163] nouveau T[    PBSP][0000:01:00.0][0x000090b1][ffff8800c2bfc960]
inc() == 2
[   97.378170] nouveau T[    PBSP][0000:01:00.0][0x000090b1][ffff8800c2bfc960]
use(+1) == 2
[   97.378177] nouveau T[    PBSP][0000:01:00.0][0x000090b1][ffff8800c2bfc960]
use(-1) == 1
[   97.378183] nouveau T[    PBSP][0000:01:00.0][0x000090b1][ffff8800c2bfc960]
dec() == 1
[   97.378189] nouveau T[    PBSP][0000:01:00.0][0x0300c01b][ffff880118ebf800]
dec() == 1
[   97.378194] nouveau T[    PBSP][0000:01:00.0] use(-1) == 2
[   97.379223] nouveau T[    PBSP][0000:01:00.0][0x000090b1][ffff8800c2bfc960]
use(-1) == 0
[   97.379229] nouveau T[    PBSP][0000:01:00.0][0x000090b1][ffff8800c2bfc960]
stopping...
[   97.379943] nouveau T[    PBSP][0000:01:00.0] use(-1) == 1
[   97.379945] nouveau T[    PBSP][0000:01:00.0][0x0300c01b][ffff880118ebf800]
use(-1) == 0
[   97.379948] nouveau T[    PBSP][0000:01:00.0][0x0300c01b][ffff880118ebf800]
stopping...
[   97.379957] nouveau T[    PBSP][0000:01:00.0] use(-1) == 0
[   97.379959] nouveau T[    PBSP][0000:01:00.0] stopping...
[   97.379991] nouveau D[    PBSP][0000:01:00.0] stopped
[   97.379996] nouveau D[    PBSP][0000:01:00.0][0x0300c01b][ffff880118ebf800]
stopped
[   97.379998] nouveau D[    PBSP][0000:01:00.0][0x000090b1][ffff8800c2bfc960]
stopped
[   97.380001] nouveau T[    PBSP][0000:01:00.0][0x000090b1][ffff8800c2bfc960]
dec() == 0
[   97.380004] nouveau D[    PBSP][0000:01:00.0][0x000090b1][ffff8800c2bfc960]
destroying
[   97.380006] nouveau T[    PBSP][0000:01:00.0] dec() == 5
[   97.380008] nouveau T[    PBSP][0000:01:00.0][0x0300c01b][ffff880118ebf800]
dec() == 0
[   97.380011] nouveau D[    PBSP][0000:01:00.0][0x0300c01b][ffff880118ebf800]
destroying
[   97.380040] nouveau T[    PBSP][0000:01:00.0] dec() == 4
[   97.509998] nouveau T[    PBSP][0000:01:00.0] dec() == 3
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#13 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=77102

Ilia Mirkin <imirkin-FrUbXkNCsVf2fBVCVOL8/[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|REOPENED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #17 from Ilia Mirkin <imirkin-FrUbXkNCsVf2fBVCVOL8/[email protected]> --- Fix checked in:

http://cgit.freedesktop.org/mesa/mesa/commit/?id=89c5b56be6c242d1489cf5c06b04c8b7a668d6f9

Should make it into a 10.1 stable release... if they ever get around to making one.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau