drm/radeon/kms: make displayport work by reorganising vsemph setup.
authorDave Airlie <airlied@redhat.com>
Wed, 25 Nov 2009 22:55:18 +0000 (08:55 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 8 Dec 2009 00:22:46 +0000 (10:22 +1000)
This fix reorganises the initial DP link training slightly, and
actually makes DP work under kms here.

Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/atombios_dp.c

index 65c82395c8e00924389e3ba94453e88598aa9352..28741d40bf662502ab4a87a936f3dcc12616ccf9 100644 (file)
@@ -627,11 +627,12 @@ void dp_link_train(struct drm_encoder *encoder,
 
        /* set initial vs/emph */
        memset(train_set, 0, 4);
-       dp_update_dpvs_emph(radeon_connector, encoder, train_set);
        udelay(400);
        /* set training pattern 1 on the sink */
        dp_set_training(radeon_connector, DP_TRAINING_PATTERN_1);
 
+       dp_update_dpvs_emph(radeon_connector, encoder, train_set);
+
        /* clock recovery loop */
        clock_recovery = false;
        tries = 0;