From a610cb0193c109d5293d4dd2eec7039aa6de5708 Mon Sep 17 00:00:00 2001 From: Alex Deucher Date: Wed, 5 Jan 2011 20:44:55 -0500 Subject: [PATCH 1/2] drm/radeon/kms: enable downspread on DP if the sink supports it Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/atombios_dp.c | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/radeon/atombios_dp.c b/drivers/gpu/drm/radeon/atombios_dp.c index 4e7778d..c37de73 100644 --- a/drivers/gpu/drm/radeon/atombios_dp.c +++ b/drivers/gpu/drm/radeon/atombios_dp.c @@ -630,8 +630,11 @@ void dp_link_train(struct drm_encoder *encoder, dp_set_training(radeon_connector, DP_TRAINING_PATTERN_DISABLE); /* set link bw and lanes on the sink */ dp_set_link_bw_lanes(radeon_connector, link_configuration); - /* disable downspread on the sink */ - dp_set_downspread(radeon_connector, 0); + /* downspread on the sink */ + if (dig_connector->dpcd[3] & 0x1) + dp_set_downspread(radeon_connector, DP_SPREAD_AMP_0_5); + else + dp_set_downspread(radeon_connector, 0x0); if (ASIC_IS_DCE4(rdev)) { /* start training on the source */ atombios_dig_encoder_setup(encoder, ATOM_ENCODER_CMD_DP_LINK_TRAINING_START); -- 1.7.1.1