Skip to content

Commit 80797dd

Browse files
Roman Lialexdeucher
authored andcommitted
drm/amd/display: fix counter in wait_for_no_pipes_pending
[Why] Wait counter is not being reset for each pipe. [How] Move counter reset into pipe loop scope. Signed-off-by: Roman Li <[email protected]> Reviewed-by: Zhan Liu <[email protected]> Acked-by: Aurabindo Pillai <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent b95e51e commit 80797dd

File tree

1 file changed

+2
-3
lines changed
  • drivers/gpu/drm/amd/display/dc/core

1 file changed

+2
-3
lines changed

drivers/gpu/drm/amd/display/dc/core/dc.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -834,11 +834,10 @@ static void disable_dangling_plane(struct dc *dc, struct dc_state *context)
834834
static void wait_for_no_pipes_pending(struct dc *dc, struct dc_state *context)
835835
{
836836
int i;
837-
int count = 0;
838-
struct pipe_ctx *pipe;
839837
PERF_TRACE();
840838
for (i = 0; i < MAX_PIPES; i++) {
841-
pipe = &context->res_ctx.pipe_ctx[i];
839+
int count = 0;
840+
struct pipe_ctx *pipe = &context->res_ctx.pipe_ctx[i];
842841

843842
if (!pipe->plane_state)
844843
continue;

0 commit comments

Comments
 (0)