]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drm/i915: Always set the DP transcoder config to 8BPC.
authorEric Anholt <eric@anholt.net>
Thu, 18 Nov 2010 01:32:58 +0000 (09:32 +0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 7 Jan 2011 21:58:15 +0000 (13:58 -0800)
commit 220cad3cbf553f893432919b458da36489373fc6 upstream.

The pipe is always set to 8BPC, but here we were leaving whatever
previous bits were set by the BIOS in place.

Signed-off-by: Eric Anholt <eric@anholt.net>
Tested-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/intel_display.c

index 249addb98a3eb97f61a7748159b79780e777a471..cda89f49b5b2fd33fab1ad0446bbb14230ddeb12 100644 (file)
 #define  TRANS_DP_10BPC                (1<<9)
 #define  TRANS_DP_6BPC         (2<<9)
 #define  TRANS_DP_12BPC                (3<<9)
+#define  TRANS_DP_BPC_MASK     (3<<9)
 #define  TRANS_DP_VSYNC_ACTIVE_HIGH    (1<<4)
 #define  TRANS_DP_VSYNC_ACTIVE_LOW     0
 #define  TRANS_DP_HSYNC_ACTIVE_HIGH    (1<<3)
index e92ba16f7d79f614275a18f9312f73dc1bd15516..932a061f28d0d39f89fd94d2963f558c36efda53 100644 (file)
@@ -2044,9 +2044,11 @@ static void ironlake_crtc_dpms(struct drm_crtc *crtc, int mode)
 
                                reg = I915_READ(trans_dp_ctl);
                                reg &= ~(TRANS_DP_PORT_SEL_MASK |
-                                        TRANS_DP_SYNC_MASK);
+                                        TRANS_DP_SYNC_MASK |
+                                        TRANS_DP_BPC_MASK);
                                reg |= (TRANS_DP_OUTPUT_ENABLE |
                                        TRANS_DP_ENH_FRAMING);
+                               reg |= TRANS_DP_8BPC;
 
                                if (crtc->mode.flags & DRM_MODE_FLAG_PHSYNC)
                                      reg |= TRANS_DP_HSYNC_ACTIVE_HIGH;