drm/i915: apply DP bandwidth workaround for PCH eDP as well
authorJesse Barnes <jbarnes@virtuousgeek.org>
Wed, 21 Jul 2010 20:57:47 +0000 (13:57 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 2 Aug 2010 02:35:15 +0000 (19:35 -0700)
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=29141 though the
workaround itself is still a bit of a mystery.

Tested-by: Adam Hill <sidepipeuk@yahoo.co.uk>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/i915/intel_dp.c

index c612981e6195be70c914186866172fc36aa59332..5a11a2bada37a1bb7031196ee9ba5beef38f2d7e 100644 (file)
@@ -534,7 +534,7 @@ intel_dp_mode_fixup(struct drm_encoder *encoder, struct drm_display_mode *mode,
                }
        }
 
-       if (IS_eDP(intel_encoder)) {
+       if (IS_eDP(intel_encoder) || IS_PCH_eDP(dp_priv)) {
                /* okay we failed just pick the highest */
                dp_priv->lane_count = max_lane_count;
                dp_priv->link_bw = bws[max_clock];