drm/amd/display: Add same check as reset pipes for programing backend regs.
authorYongqiang Sun <yongqiang.sun@amd.com>
Thu, 6 Apr 2017 20:21:58 +0000 (16:21 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 21:23:25 +0000 (17:23 -0400)
Signed-off-by: Yongqiang Sun <yongqiang.sun@amd.com>
Acked-by: Harry Wentland <Harry.Wentland@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c

index 839c34409c633018dc822f892f7ae82ac3ef08ad..7430be502efdd19cc66e7bfb90b583b06c6b61fe 100644 (file)
@@ -1689,6 +1689,10 @@ enum dc_status dce110_apply_ctx_to_hw(
                if (pipe_ctx->stream == pipe_ctx_old->stream)
                        continue;
 
+               if (pipe_ctx->stream && pipe_ctx_old->stream
+                               && !pipe_need_reprogram(pipe_ctx_old, pipe_ctx))
+                       continue;
+
                if (pipe_ctx->top_pipe)
                        continue;