drm/amd/display: Check hubp in pipe_ctx not in res_pool.
authorYongqiang Sun <yongqiang.sun@amd.com>
Thu, 18 Jan 2018 19:51:28 +0000 (14:51 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 19 Feb 2018 19:19:27 +0000 (14:19 -0500)
When disable plane, check power gate flag in hubp with pipe_ctx,
not with res_pool.

Signed-off-by: Yongqiang Sun <yongqiang.sun@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c

index 8ce9a4e..a3f84dc 100644 (file)
@@ -656,7 +656,7 @@ static void plane_atomic_disable(struct dc *dc, struct pipe_ctx *pipe_ctx)
 
 static void dcn10_disable_plane(struct dc *dc, struct pipe_ctx *pipe_ctx)
 {
-       if (dc->res_pool->hubps[pipe_ctx->pipe_idx]->power_gated)
+       if (!pipe_ctx->plane_res.hubp || pipe_ctx->plane_res.hubp->power_gated)
                return;
 
        plane_atomic_disable(dc, pipe_ctx);