From 268cadbd653d3d9172975a46c79f458475f82cb5 Mon Sep 17 00:00:00 2001 From: Yongqiang Sun Date: Mon, 6 Mar 2017 14:58:59 -0500 Subject: [PATCH] drm/amd/display: Do not copy bottom pipe when map resource. Signed-off-by: Yongqiang Sun Acked-by: Harry Wentland Reviewed-by: Tony Cheng Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/display/dc/core/dc_resource.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_resource.c b/drivers/gpu/drm/amd/display/dc/core/dc_resource.c index f1b1dae5399e..c38f71e45381 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc_resource.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc_resource.c @@ -1134,6 +1134,9 @@ enum dc_status resource_map_pool_resources( if (!are_stream_backends_same(old_pipe_ctx->stream, stream)) continue; + if (old_pipe_ctx->top_pipe) + continue; + pipe_ctx->stream = stream; copy_pipe_ctx(old_pipe_ctx, pipe_ctx); -- 2.30.2