From: Yongqiang Sun Date: Thu, 23 Mar 2017 14:34:06 +0000 (-0400) Subject: drm/amd/display: Power on front end during set mode. X-Git-Tag: v4.15-rc1~56^2~23^2~618 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=18f7a1e4083a5be0ce02df736d3f9a82246dd89b;p=linux.git drm/amd/display: Power on front end during set mode. Signed-off-by: Yongqiang Sun Acked-by: Harry Wentland Reviewed-by: Tony Cheng Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c b/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c index e5e52c705954..2a3a39e31717 100644 --- a/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c +++ b/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c @@ -1722,6 +1722,9 @@ enum dc_status dce110_apply_ctx_to_hw( context, dc); + if (dc->hwss.power_on_front_end) + dc->hwss.power_on_front_end(dc, pipe_ctx, context); + if (DC_OK != status) return status; } diff --git a/drivers/gpu/drm/amd/display/dc/inc/hw_sequencer.h b/drivers/gpu/drm/amd/display/dc/inc/hw_sequencer.h index bcb267295cb9..077dc7573c52 100644 --- a/drivers/gpu/drm/amd/display/dc/inc/hw_sequencer.h +++ b/drivers/gpu/drm/amd/display/dc/inc/hw_sequencer.h @@ -104,6 +104,11 @@ struct hw_sequencer_funcs { enum pipe_gating_control power_gating); void (*power_down_front_end)(struct core_dc *dc, struct pipe_ctx *pipe); + + void (*power_on_front_end)(struct core_dc *dc, + struct pipe_ctx *pipe, + struct validate_context *context); + void (*update_info_frame)(struct pipe_ctx *pipe_ctx); void (*enable_stream)(struct pipe_ctx *pipe_ctx);