aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0339-drm-amd-display-Add-same-check-as-reset-pipes-for-pr.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0339-drm-amd-display-Add-same-check-as-reset-pipes-for-pr.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0339-drm-amd-display-Add-same-check-as-reset-pipes-for-pr.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0339-drm-amd-display-Add-same-check-as-reset-pipes-for-pr.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0339-drm-amd-display-Add-same-check-as-reset-pipes-for-pr.patch
new file mode 100644
index 00000000..7b61f10b
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0339-drm-amd-display-Add-same-check-as-reset-pipes-for-pr.patch
@@ -0,0 +1,32 @@
+From 361719279f865630a1db1f167dd01c385543f4e9 Mon Sep 17 00:00:00 2001
+From: Yongqiang Sun <yongqiang.sun@amd.com>
+Date: Thu, 6 Apr 2017 16:21:58 -0400
+Subject: [PATCH 0339/4131] drm/amd/display: Add same check as reset pipes for
+ programing backend regs.
+
+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 | 4 ++++
+ 1 file changed, 4 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 839c344..7430be5 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
+@@ -1689,6 +1689,10 @@ enum dc_status dce110_apply_ctx_to_hw(
+ if (pipe_ctx->stream == pipe_ctx_old->stream)
+ continue;
+
++ if (pipe_ctx->stream && pipe_ctx_old->stream
++ && !pipe_need_reprogram(pipe_ctx_old, pipe_ctx))
++ continue;
++
+ if (pipe_ctx->top_pipe)
+ continue;
+
+--
+2.7.4
+