From: Rodrigo Siqueira Date: Tue, 18 Oct 2022 12:28:15 +0000 (-0400) Subject: drm/amd/display: Check if link state is valid X-Git-Tag: v6.6.7~3824^2~24^2~131 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=03ce7b387e8b0f4a1dc97a878545bdf7c7f23251;p=platform%2Fkernel%2Flinux-starfive.git drm/amd/display: Check if link state is valid The link state is set to false if there is no link and local sink. Even though the stream state may not change, it is desirable to commit the new stream when HPD goes low to high. Reviewed-by: Harry Wentland Signed-off-by: Rodrigo Siqueira Co-developed-by: Aurabindo Pillai Signed-off-by: Aurabindo Pillai 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 997ab03..7b576bd 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc.c @@ -1500,6 +1500,8 @@ static bool context_changed( for (i = 0; i < dc->current_state->stream_count; i++) { if (dc->current_state->streams[i] != context->streams[i]) return true; + if (!context->streams[i]->link->link_state_valid) + return true; } return false;