aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0186-drm-amd-display-Change-power-gating-off-sequence-to-.patch
diff options
context:
space:
mode:
authorArsalan H. Awan <Arsalan_Awan@mentor.com>2019-08-28 14:52:21 +0500
committerArsalan H. Awan <Arsalan_Awan@mentor.com>2019-08-28 15:24:40 +0500
commitcc5953c3a2f348543ed44492244627ee0de76239 (patch)
tree23430cd57f73086e7176e8be4375e5ad3b4079c0 /meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0186-drm-amd-display-Change-power-gating-off-sequence-to-.patch
parent4149413febf799293758015e230e0ce865ed9cb5 (diff)
downloadmeta-amd-cc5953c3a2f348543ed44492244627ee0de76239.tar.gz
meta-amd-cc5953c3a2f348543ed44492244627ee0de76239.tar.bz2
meta-amd-cc5953c3a2f348543ed44492244627ee0de76239.zip
common: rename to meta-amd-bsp
This renames common layers to meta-amd-bsp as it is going to hold all the bsps in it in the following commits. This also changes the layer title in layer.conf from "amd" to "amd-bsp" Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0186-drm-amd-display-Change-power-gating-off-sequence-to-.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0186-drm-amd-display-Change-power-gating-off-sequence-to-.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0186-drm-amd-display-Change-power-gating-off-sequence-to-.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0186-drm-amd-display-Change-power-gating-off-sequence-to-.patch
new file mode 100644
index 00000000..f99a7ac7
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0186-drm-amd-display-Change-power-gating-off-sequence-to-.patch
@@ -0,0 +1,40 @@
+From c688110b0cca5748e72f0aecc2fce3c603b15000 Mon Sep 17 00:00:00 2001
+From: Yongqiang Sun <yongqiang.sun@amd.com>
+Date: Fri, 27 Jan 2017 10:29:01 -0500
+Subject: [PATCH 0186/4131] drm/amd/display: Change power gating off sequence
+ to fix hang
+
+Power off plane clear all the reg values includes cursor.
+When OS call set cursor position, cursor address reg is cleared,
+results in system hard hang.
+
+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/core/dc.c | 7 +++++--
+ 1 file changed, 5 insertions(+), 2 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c
+index 7571815..474c2d4 100644
+--- a/drivers/gpu/drm/amd/display/dc/core/dc.c
++++ b/drivers/gpu/drm/amd/display/dc/core/dc.c
+@@ -1254,9 +1254,12 @@ bool dc_post_update_surfaces_to_stream(struct dc *dc)
+ post_surface_trace(dc);
+
+ for (i = 0; i < core_dc->current_context->res_ctx.pool->pipe_count; i++)
+- if (core_dc->current_context->res_ctx.pipe_ctx[i].stream == NULL)
++ if (core_dc->current_context->res_ctx.pipe_ctx[i].stream == NULL) {
++ core_dc->current_context->res_ctx.pipe_ctx[i].pipe_idx = i;
+ core_dc->hwss.power_down_front_end(
+- core_dc, &core_dc->current_context->res_ctx.pipe_ctx[i]);
++ core_dc, &core_dc->current_context->res_ctx.pipe_ctx[i]);
++ }
++
+
+ if (core_dc->res_pool->funcs->validate_bandwidth(core_dc, core_dc->current_context)
+ != DC_OK) {
+--
+2.7.4
+