From 7f193dd5639d0f1539121fae80c4ff02ae317f33 Mon Sep 17 00:00:00 2001 From: Adam Jirasek Date: Tue, 22 Jul 2014 07:47:25 -0600 Subject: [PATCH] Revert commit c6930992948adf0f8fc1f6ff1da51c5002a2cf95 Revert "drm/i915: reverse dp link param selection, prefer fast over wide again revert c6930992948adf0f8fc1f6ff1da51c5002a2cf95 caused blurry screen or screen flicker on Thoshiba S70 with VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06) --- drivers/gpu/drm/i915/intel_dp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c index 50bee88b..68ed888 100644 --- a/drivers/gpu/drm/i915/intel_dp.c +++ b/drivers/gpu/drm/i915/intel_dp.c @@ -920,8 +920,8 @@ intel_dp_compute_config(struct intel_encoder *encoder, mode_rate = intel_dp_link_required(adjusted_mode->crtc_clock, bpp); - for (clock = min_clock; clock <= max_clock; clock++) { - for (lane_count = min_lane_count; lane_count <= max_lane_count; lane_count <<= 1) { + for (lane_count = min_lane_count; lane_count <= max_lane_count; lane_count <<= 1) { + for (clock = min_clock; clock <= max_clock; clock++) { link_clock = drm_dp_bw_code_to_link_rate(bws[clock]); link_avail = intel_dp_max_data_rate(link_clock, lane_count); -- 1.8.5.5