From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ@public.gmane.org Subject: [Bug 55412] Screen turns black during boot after driver tries to set mode on NV50 Date: Thu, 08 Nov 2012 16:14:06 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1942965997==" Return-path: In-Reply-To: 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 --===============1942965997== Content-Type: multipart/alternative; boundary="1352391245.C6CB8Cce1.4600"; charset="us-ascii" --1352391245.C6CB8Cce1.4600 Date: Thu, 8 Nov 2012 16:14:05 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" https://bugs.freedesktop.org/show_bug.cgi?id=55412 --- Comment #4 from m.b.lankhorst-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org --- Very easy to see what regressed, though.. upstream commit that made it to mainline is c0077061e7ea, with this: if (nv_encoder->dcb->lvdsconf.use_acpi_for_edid) { - if (!nouveau_acpi_edid(dev, connector)) { + if (!(nv_connector->edid = nouveau_acpi_edid(dev, connector))) { status = connector_status_connected; goto out; } Which looks fine, but is inversion of logic. First it returned 0 on success, now it returns NULL on failure.. Fix would presumably be one line only: - if (!(nv_connector->edid = nouveau_acpi_edid(dev, connector))) { + if ((nv_connector->edid = nouveau_acpi_edid(dev, connector))) { -- You are receiving this mail because: You are the assignee for the bug. --1352391245.C6CB8Cce1.4600 Date: Thu, 8 Nov 2012 16:14:05 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8"

Comment # 4 on bug 55412 from
Very easy to see what regressed, though..

upstream commit that made it to mainline is c0077061e7ea, with this:

     if (nv_encoder->dcb->lvdsconf.use_acpi_for_edid) {
-        if (!nouveau_acpi_edid(dev, connector)) {
+        if (!(nv_connector->edid = nouveau_acpi_edid(dev, connector))) {
             status = connector_status_connected;
             goto out;
         }

Which looks fine, but is inversion of logic. First it returned 0 on success,
now it returns NULL on failure.. Fix would presumably be one line only:

-        if (!(nv_connector->edid = nouveau_acpi_edid(dev, connector))) {
+        if ((nv_connector->edid = nouveau_acpi_edid(dev, connector))) {


You are receiving this mail because:
  • You are the assignee for the bug.
--1352391245.C6CB8Cce1.4600-- --===============1942965997== 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 --===============1942965997==--