]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
drm/amd/display: Power on front end during set mode.
authorYongqiang Sun <yongqiang.sun@amd.com>
Thu, 23 Mar 2017 14:34:06 +0000 (10:34 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 21:20:58 +0000 (17:20 -0400)
Signed-off-by: Yongqiang Sun <yongqiang.sun@amd.com>
Acked-by: Harry Wentland <Harry.Wentland@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c
drivers/gpu/drm/amd/display/dc/inc/hw_sequencer.h

index e5e52c7059548fe6f3e2f9d03fd9b69ae7fed282..2a3a39e3171796bc11e76980c2faca91ba2a5ecb 100644 (file)
@@ -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;
        }
index bcb267295cb9f15f2b4956ea5d2358ab44ccf473..077dc7573c529a9f39fb9053cefd40dc90e3b365 100644 (file)
@@ -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);