drm/amd/display: Toggle VSR button cause system crash
authorPeikang Zhang <peikang.zhang@amd.com>
Thu, 30 Jan 2020 15:49:46 +0000 (10:49 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 11 Feb 2020 16:50:12 +0000 (11:50 -0500)
commit7ba99b43be6527eb9bdbf137e6829d4ec4b871c6
tree270f01d4088a04617750ba08d2b26f9e0dd2050c
parent945628101be55833a63355510d4b6c934183deab
drm/amd/display: Toggle VSR button cause system crash

[Why]
in dcn10_apply_ctx_for_surface(), if we hit !top_pipe_to_program,
pipe_ctx->update_flags could not get cleared.

[How]
Moved clearing pipe_ctx->update_flags logic before if
(!top_pipe_to_program) to gurantee pipe_ctx->update_flags get cleared.

Signed-off-by: Peikang Zhang <peikang.zhang@amd.com>
Reviewed-by: Aric Cyr <Aric.Cyr@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/dcn10/dcn10_hw_sequencer.c