drm/gf119-/disp: fix nasty bug which can clobber SOR0's clock setup
authorBen Skeggs <bskeggs@redhat.com>
Tue, 20 May 2014 06:13:54 +0000 (16:13 +1000)
committerJiri Slaby <jslaby@suse.cz>
Fri, 20 Jun 2014 15:33:55 +0000 (17:33 +0200)
commit 0f1d360b2ee3a2a0f510d3f1bcd3f5ebe5d41265 upstream.

Fixes a LVDS bleed issue on Lenovo W530 that can occur under a
number of circumstances.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/gpu/drm/nouveau/core/engine/disp/nvd0.c

index 52dd7a1db729fdf086607cf703a210ec9aeba125..8f336558c68178e7eeb3e636bb81e017e0979357 100644 (file)
@@ -678,7 +678,7 @@ exec_clkcmp(struct nv50_disp_priv *priv, int head, int id,
        }
 
        if (outp == 8)
-               return false;
+               return conf;
 
        data = exec_lookup(priv, head, outp, ctrl, dcb, &ver, &hdr, &cnt, &len, &info1);
        if (data == 0x0000)