drm/amd/display: disable stream if pixel clock changed with link active
authorChiawen Huang <chiawen.huang@amd.com>
Fri, 25 Sep 2020 14:54:55 +0000 (10:54 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 29 Sep 2020 20:11:13 +0000 (16:11 -0400)
commit8353d30e747f4e5cdd867c6b054dbb85cdcc76a9
treeafbd17e93b61d7b721808454e45d536a8ab37885
parentd9beecfc79b71498e7f0bc40c550155f4e6b3c98
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 <chiawen.huang@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc.c