aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0344-drm-amd-display-use-full-surface-update-when-stream-.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0344-drm-amd-display-use-full-surface-update-when-stream-.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0344-drm-amd-display-use-full-surface-update-when-stream-.patch49
1 files changed, 49 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0344-drm-amd-display-use-full-surface-update-when-stream-.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0344-drm-amd-display-use-full-surface-update-when-stream-.patch
new file mode 100644
index 00000000..aee4443a
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0344-drm-amd-display-use-full-surface-update-when-stream-.patch
@@ -0,0 +1,49 @@
+From 4c6230b638eacc196ec420dee30a0841b86b81e8 Mon Sep 17 00:00:00 2001
+From: Charlene Liu <charlene.liu@amd.com>
+Date: Tue, 11 Apr 2017 22:24:44 -0400
+Subject: [PATCH 0344/4131] drm/amd/display: use full surface update when
+ stream is NULL
+
+Signed-off-by: Charlene Liu <charlene.liu@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/core/dc.c | 2 +-
+ drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c | 4 ++--
+ 2 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c
+index 70dc02c..6576137 100644
+--- a/drivers/gpu/drm/amd/display/dc/core/dc.c
++++ b/drivers/gpu/drm/amd/display/dc/core/dc.c
+@@ -1155,7 +1155,7 @@ enum surface_update_type dc_check_update_surfaces_for_stream(
+ int i;
+ enum surface_update_type overall_type = UPDATE_TYPE_FAST;
+
+- if (stream_status->surface_count != surface_count)
++ if (stream_status == NULL || stream_status->surface_count != surface_count)
+ return UPDATE_TYPE_FULL;
+
+ if (stream_update)
+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 7430be5..1401331 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
+@@ -1599,11 +1599,11 @@ enum dc_status dce110_apply_ctx_to_hw(
+ apply_min_clocks(dc, context, &clocks_state, true);
+
+ if (context->dispclk_khz
+- > dc->current_context->dispclk_khz)
++ > dc->current_context->dispclk_khz) {
+ context->res_ctx.pool->display_clock->funcs->set_clock(
+ context->res_ctx.pool->display_clock,
+ context->dispclk_khz * 115 / 100);
+-
++ }
+ /* program audio wall clock. use HDMI as clock source if HDMI
+ * audio active. Otherwise, use DP as clock source
+ * first, loop to find any HDMI audio, if not, loop find DP audio
+--
+2.7.4
+