diff options
author | Rodrigo Siqueira <[email protected]> | 2022-10-18 08:28:15 -0400 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2022-10-24 14:34:27 -0400 |
commit | 03ce7b387e8b0f4a1dc97a878545bdf7c7f23251 (patch) | |
tree | 8a928df5aaf3b667e11753521b79ecb197e3359e | |
parent | 7b5a4d7b9e2952a15c8d2b2391dfacd7ce841a1a (diff) |
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 <[email protected]>
Signed-off-by: Rodrigo Siqueira <[email protected]>
Co-developed-by: Aurabindo Pillai <[email protected]>
Signed-off-by: Aurabindo Pillai <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/core/dc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c index 997ab031f816..7b576bd24cb5 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; |