]> git.hungrycats.org Git - linux/commitdiff
drm/i915: don't intel_crt_init on any ULT machines
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Fri, 12 Apr 2013 21:16:53 +0000 (18:16 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 11 May 2013 14:18:29 +0000 (07:18 -0700)
commit c40c0f5bd5b0f09e4386d2cf26c96c89c45ee539 upstream.

We may have DDI_BUF_CTL(PORT_A) configured with 2 lanes and still not
have CRT, so just check for !IS_ULT. This problem happened on a real
machine and resulted in a very ugly dmesg.

Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/i915/intel_display.c

index f9ac54a2dc1e22fe2b919a3ed7ed181595600618..c2bb2d9d9b3a7030aab6e66c2741b5e72074fe4a 100644 (file)
@@ -8326,7 +8326,7 @@ static void intel_setup_outputs(struct drm_device *dev)
                I915_WRITE(PFIT_CONTROL, 0);
        }
 
-       if (!(HAS_DDI(dev) && (I915_READ(DDI_BUF_CTL(PORT_A)) & DDI_A_4_LANES)))
+       if (!IS_ULT(dev))
                intel_crt_init(dev);
 
        if (HAS_DDI(dev)) {