From 55b5209f247461d0a522ee74cc3c1ea11ccf4314 Mon Sep 17 00:00:00 2001 From: Alex Deucher Date: Mon, 29 Mar 2010 14:15:34 -0400 Subject: [PATCH] drm/radeon/kms/dp: link training fix For phase two of link training, set the training pattern on the source before the sink (same as phase 1). May fix fdo bug 27314 Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/atombios_dp.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/radeon/atombios_dp.c b/drivers/gpu/drm/radeon/atombios_dp.c index ca776b2..19d52ae 100644 --- a/drivers/gpu/drm/radeon/atombios_dp.c +++ b/drivers/gpu/drm/radeon/atombios_dp.c @@ -701,8 +701,6 @@ void dp_link_train(struct drm_encoder *encoder, DP_TRAIN_PRE_EMPHASIS_SHIFT); - /* set training pattern 2 on the sink */ - dp_set_training(radeon_connector, DP_TRAINING_PATTERN_2); /* set training pattern 2 on the source */ if (ASIC_IS_DCE4(rdev)) atombios_dig_encoder_setup(encoder, ATOM_ENCODER_CMD_DP_LINK_TRAINING_PATTERN2); @@ -710,6 +708,9 @@ void dp_link_train(struct drm_encoder *encoder, radeon_dp_encoder_service(rdev, ATOM_DP_ACTION_TRAINING_PATTERN_SEL, dig_connector->dp_clock, enc_id, 1); + /* set training pattern 2 on the sink */ + dp_set_training(radeon_connector, DP_TRAINING_PATTERN_2); + /* channel equalization loop */ tries = 0; channel_eq = false; -- 1.5.6.3