aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2011-07-21 17:48:37 -0400
committerKeith Packard <keithp@keithp.com>2011-07-25 18:18:33 -0400
commit81055854d096959898fdc17ed11729eb019eff07 (patch)
tree124436e10488dca26bba27f2ec548ec32e0f21d1 /drivers/gpu/drm/i915
parent302983e9059e9ef5de3ca7671918eeb237c5971e (diff)
drm/i915/dp: Explicitly disable symbol scrambling while training
The DP spec says training patterns 1 and 2 are to be sent non-scrambled, and the GPU docs claim that happens (or at least, there's no explicit scrambling control). But the sink may be confused if we don't explicitly tell it what we're doing, so play it safe. Signed-off-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org> Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'drivers/gpu/drm/i915')
-rw-r--r--drivers/gpu/drm/i915/intel_dp.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c
index 1c3a36feaf69..8aecb072466b 100644
--- a/drivers/gpu/drm/i915/intel_dp.c
+++ b/drivers/gpu/drm/i915/intel_dp.c
@@ -1370,7 +1370,8 @@ intel_dp_start_link_train(struct intel_dp *intel_dp)
1370 reg = DP | DP_LINK_TRAIN_PAT_1; 1370 reg = DP | DP_LINK_TRAIN_PAT_1;
1371 1371
1372 if (!intel_dp_set_link_train(intel_dp, reg, 1372 if (!intel_dp_set_link_train(intel_dp, reg,
1373 DP_TRAINING_PATTERN_1)) 1373 DP_TRAINING_PATTERN_1 |
1374 DP_LINK_SCRAMBLING_DISABLE))
1374 break; 1375 break;
1375 /* Set training pattern 1 */ 1376 /* Set training pattern 1 */
1376 1377
@@ -1445,7 +1446,8 @@ intel_dp_complete_link_train(struct intel_dp *intel_dp)
1445 1446
1446 /* channel eq pattern */ 1447 /* channel eq pattern */
1447 if (!intel_dp_set_link_train(intel_dp, reg, 1448 if (!intel_dp_set_link_train(intel_dp, reg,
1448 DP_TRAINING_PATTERN_2)) 1449 DP_TRAINING_PATTERN_2 |
1450 DP_LINK_SCRAMBLING_DISABLE))
1449 break; 1451 break;
1450 1452
1451 udelay(400); 1453 udelay(400);