From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ@public.gmane.org Subject: [Bug 77102] gallium nouveau has no profile in vdpau and libva Date: Mon, 07 Apr 2014 04:23:48 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1565194984==" Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: nouveau-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org Sender: "Nouveau" To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org List-Id: nouveau.vger.kernel.org --===============1565194984== Content-Type: multipart/alternative; boundary="1396844628.C5F1F1.14657"; charset="us-ascii" --1396844628.C5F1F1.14657 Date: Mon, 7 Apr 2014 04:23:48 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" https://bugs.freedesktop.org/show_bug.cgi?id=77102 --- Comment #13 from Ilia Mirkin --- 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.) -- You are receiving this mail because: You are the assignee for the bug. --1396844628.C5F1F1.14657 Date: Mon, 7 Apr 2014 04:23:48 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8"

Comment # 13 on bug 77102 from
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;

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.)


You are receiving this mail because:
  • You are the assignee for the bug.
--1396844628.C5F1F1.14657-- --===============1565194984== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Nouveau mailing list Nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org http://lists.freedesktop.org/mailman/listinfo/nouveau --===============1565194984==--