drm/amd/display: skip phantom pipes when checking for pending flip
authorAurabindo Pillai <aurabindo.pillai@amd.com>
Tue, 13 Sep 2022 18:08:05 +0000 (14:08 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 29 Sep 2022 13:41:45 +0000 (09:41 -0400)
[Why&How]
Phantom pipes are not programmed fully to hardware and hence we should
not expect a flip completion.

Reviewed-by: Alvin Lee <alvin.lee2@amd.com>
Acked-by: Jasdeep Dhillon <jdhillon@amd.com>
Signed-off-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc.c

index cfe207ed43ce1bb23ced331e49aa632196635bc7..0962291b478295c77e48d5d364e0126fcd1126f3 100644 (file)
@@ -1201,7 +1201,7 @@ static void wait_for_no_pipes_pending(struct dc *dc, struct dc_state *context)
                int count = 0;
                struct pipe_ctx *pipe = &context->res_ctx.pipe_ctx[i];
 
-               if (!pipe->plane_state)
+               if (!pipe->plane_state || pipe->stream->mall_stream_config.type == SUBVP_PHANTOM)
                        continue;
 
                /* Timeout 100 ms */