From: Dmytro Laktyushkin <dmytro.laktyush...@amd.com>

Fix for a bug where we would try to timing sync 2 odm halves.

Acked-by: Rodrigo Siqueira <rodrigo.sique...@amd.com>
Signed-off-by: Dmytro Laktyushkin <dmytro.laktyush...@amd.com>
---
 drivers/gpu/drm/amd/display/dc/core/dc.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c 
b/drivers/gpu/drm/amd/display/dc/core/dc.c
index 40848eda44d9..795766cb27dd 100644
--- a/drivers/gpu/drm/amd/display/dc/core/dc.c
+++ b/drivers/gpu/drm/amd/display/dc/core/dc.c
@@ -1333,7 +1333,9 @@ static void program_timing_sync(
        struct pipe_ctx *unsynced_pipes[MAX_PIPES] = { NULL };
 
        for (i = 0; i < pipe_count; i++) {
-               if (!ctx->res_ctx.pipe_ctx[i].stream || 
ctx->res_ctx.pipe_ctx[i].top_pipe)
+               if (!ctx->res_ctx.pipe_ctx[i].stream
+                               || ctx->res_ctx.pipe_ctx[i].top_pipe
+                               || ctx->res_ctx.pipe_ctx[i].prev_odm_pipe)
                        continue;
 
                unsynced_pipes[i] = &ctx->res_ctx.pipe_ctx[i];
-- 
2.25.1

Reply via email to