drm/amd/display: Fix GSL acquire
authorAric Cyr <aric.cyr@amd.com>
Sat, 18 Jan 2020 19:03:55 +0000 (14:03 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 6 Feb 2020 20:04:37 +0000 (15:04 -0500)
[Why]
After locking refactor GSL is not acquired properly
resulting in immediate flip issues.

[How]
Do not copy old GSL state anymore since GSL is acquired
earlier now.

Signed-off-by: Aric Cyr <aric.cyr@amd.com>
Reviewed-by: Anthony Koo <Anthony.Koo@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c

index 129a91e8f25002dd552f0ee567191b6520853c75..9713f452debfc6b80df61a75c7f5b2efa83fd33d 100644 (file)
@@ -1562,12 +1562,6 @@ void dcn20_program_front_end_for_ctx(
                }
        }
 
-       /* Carry over GSL groups in case the context is changing. */
-       for (i = 0; i < dc->res_pool->pipe_count; i++)
-               if (context->res_ctx.pipe_ctx[i].stream == dc->current_state->res_ctx.pipe_ctx[i].stream)
-                       context->res_ctx.pipe_ctx[i].stream_res.gsl_group =
-                               dc->current_state->res_ctx.pipe_ctx[i].stream_res.gsl_group;
-
        /* Set pipe update flags and lock pipes */
        for (i = 0; i < dc->res_pool->pipe_count; i++)
                dcn20_detect_pipe_changes(&dc->current_state->res_ctx.pipe_ctx[i],