aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0301-drm-amd-display-Power-on-front-end-during-set-mode.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0301-drm-amd-display-Power-on-front-end-during-set-mode.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0301-drm-amd-display-Power-on-front-end-during-set-mode.patch48
1 files changed, 48 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0301-drm-amd-display-Power-on-front-end-during-set-mode.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0301-drm-amd-display-Power-on-front-end-during-set-mode.patch
new file mode 100644
index 00000000..0e747a04
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0301-drm-amd-display-Power-on-front-end-during-set-mode.patch
@@ -0,0 +1,48 @@
+From a85ef60753553a8e3da611043e7ff9ab56386076 Mon Sep 17 00:00:00 2001
+From: Yongqiang Sun <yongqiang.sun@amd.com>
+Date: Thu, 23 Mar 2017 10:34:06 -0400
+Subject: [PATCH 0301/4131] drm/amd/display: Power on front end during set
+ mode.
+
+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 | 3 +++
+ drivers/gpu/drm/amd/display/dc/inc/hw_sequencer.h | 5 +++++
+ 2 files changed, 8 insertions(+)
+
+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 e5e52c7..2a3a39e 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 bcb2672..077dc75 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);
+--
+2.7.4
+