[PATCH 29/76] drm/amd/dal: Perform link training in dp_retrain_link

Harry Wentland harry.wentland at amd.com
Mon Nov 21 23:00:49 UTC 2016


From: Wenjing Liu <Wenjing.Liu at amd.com>

[Description]
dp_retrain_link re-enables stream.
However dp link training is not included in enable_stream

Signed-off-by: Wenjing Liu <Wenjing.Liu at amd.com>
Acked-by: Harry Wentland <harry.wentland at amd.com>
---
 drivers/gpu/drm/amd/dal/dc/core/dc_link_hwss.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/gpu/drm/amd/dal/dc/core/dc_link_hwss.c b/drivers/gpu/drm/amd/dal/dc/core/dc_link_hwss.c
index bc240981d276..e89f5f176ec3 100644
--- a/drivers/gpu/drm/amd/dal/dc/core/dc_link_hwss.c
+++ b/drivers/gpu/drm/amd/dal/dc/core/dc_link_hwss.c
@@ -8,6 +8,7 @@
 #include "include/i2caux_interface.h"
 #include "link_hwss.h"
 #include "hw_sequencer.h"
+#include "dc_link_dp.h"
 #include "dc_link_ddc.h"
 #include "dm_helpers.h"
 #include "dce/dce_link_encoder.h"
@@ -209,6 +210,10 @@ void dp_retrain_link(struct core_link *link)
 			dm_delay_in_microseconds(link->ctx, 100);
 			pipes->stream_enc->funcs->dp_blank(pipes[i].stream_enc);
 			link->dc->hwss.disable_stream(&pipes[i]);
+			dc_link_dp_perform_link_training(
+					&link->public,
+					&link->public.verified_link_cap,
+					true);
 			link->dc->hwss.enable_stream(&pipes[i]);
 			link->dc->hwss.unblank_stream(&pipes[i],
 					&link->public.verified_link_cap);
-- 
2.10.1



More information about the amd-gfx mailing list