From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ@public.gmane.org Subject: [Bug 62916] New: NVEnterTV fails on hybrid cards Date: Fri, 29 Mar 2013 21:23:43 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2131396916==" Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: nouveau-bounces+gcfxn-nouveau=m.gmane.org-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org Errors-To: nouveau-bounces+gcfxn-nouveau=m.gmane.org-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org List-Id: nouveau.vger.kernel.org --===============2131396916== Content-Type: multipart/alternative; boundary="1364592223.A7dFC1.17007"; charset="us-ascii" --1364592223.A7dFC1.17007 Date: Fri, 29 Mar 2013 21:23:43 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" https://bugs.freedesktop.org/show_bug.cgi?id=62916 Priority: medium Bug ID: 62916 Assignee: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org Summary: NVEnterTV fails on hybrid cards QA Contact: xorg-team-go0+a7rfsptAfugRpC6u6w@public.gmane.org Severity: critical Classification: Unclassified OS: Linux (All) Reporter: zeng.shixin-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Hardware: x86-64 (AMD64) Status: NEW Version: unspecified Component: Driver/nouveau Product: xorg Since on system with hybrid cards, the nvidia card might not be connecting to the screen, so Xf86SetDisiredMode could fail, which results in a fatal error for Xserver: [ 91825.257] (II) NOUVEAU(G0): NVEnterVT is called. [ 91825.258] Fatal server error: [ 91825.258] EnterVT failed for gpu screen 0 The following dirty hack fixes the problem. We should check for the connected screen before setting mode, but I don't know how to do that, since this is my first time to look at nouveau code. --- nv_driver-orig.c 2013-03-29 17:19:34.876953461 -0400 +++ nv_driver.c 2013-03-29 17:20:15.810287942 -0400 @@ -407,8 +407,7 @@ if (ret) ErrorF("Unable to get master: %s\n", strerror(errno)); - if (!xf86SetDesiredModes(pScrn)) - return FALSE; + xf86SetDesiredModes(pScrn); if (pNv->overlayAdaptor && pNv->Architecture != NV_ARCH_04) NV10WriteOverlayParameters(pScrn); -- You are receiving this mail because: You are the assignee for the bug. --1364592223.A7dFC1.17007 Date: Fri, 29 Mar 2013 21:23:43 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8"
Priority medium
Bug ID 62916
Assignee nouveau@lists.freedesktop.org
Summary NVEnterTV fails on hybrid cards
QA Contact xorg-team@lists.x.org
Severity critical
Classification Unclassified
OS Linux (All)
Reporter zeng.shixin@gmail.com
Hardware x86-64 (AMD64)
Status NEW
Version unspecified
Component Driver/nouveau
Product xorg

Since on system with hybrid cards, the nvidia card might not be connecting to
the screen, so Xf86SetDisiredMode could fail, which results in a fatal error
for Xserver:
[ 91825.257] (II) NOUVEAU(G0): NVEnterVT is called.
[ 91825.258] 
Fatal server error:
[ 91825.258] EnterVT failed for gpu screen 0


The following dirty hack fixes the problem. We should check for the connected
screen before setting mode, but I don't know how to do that, since this is my
first time to look at nouveau code.

--- nv_driver-orig.c    2013-03-29 17:19:34.876953461 -0400
+++ nv_driver.c    2013-03-29 17:20:15.810287942 -0400
@@ -407,8 +407,7 @@
     if (ret)
         ErrorF("Unable to get master: %s\n", strerror(errno));

-    if (!xf86SetDesiredModes(pScrn))
-        return FALSE;
+    xf86SetDesiredModes(pScrn);

     if (pNv->overlayAdaptor && pNv->Architecture != NV_ARCH_04)
         NV10WriteOverlayParameters(pScrn);


You are receiving this mail because:
  • You are the assignee for the bug.
--1364592223.A7dFC1.17007-- --===============2131396916== 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 --===============2131396916==--