From: Chiawen Huang Date: Fri, 25 Sep 2020 14:54:55 +0000 (-0400) Subject: drm/amd/display: disable stream if pixel clock changed with link active X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=8353d30e747f4e5cdd867c6b054dbb85cdcc76a9;p=linux.git drm/amd/display: disable stream if pixel clock changed with link active [Why] Vbios uses preferred timing to turn on edp but OS could use other timing. If change pixel clock when link active, there is unexpected garbage on monitor. [How] Once pixel clock changed, the driver needs to disable stream. Signed-off-by: Chiawen Huang Reviewed-by: Tony Cheng Acked-by: Rodrigo Siqueira Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c index 76946a7d47ca3..2a725a5fba402 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc.c @@ -864,7 +864,6 @@ static void disable_vbios_mode_if_required( if (stream->link->local_sink && stream->link->local_sink->sink_signal == SIGNAL_TYPE_EDP) { link = stream->link; - break; } if (link != NULL) {