aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-yocto-4.14.71/0177-drm-amd-display-Fixed-4K-black-issue-by-refactor-upd.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.14.71/0177-drm-amd-display-Fixed-4K-black-issue-by-refactor-upd.patch')
-rw-r--r--common/recipes-kernel/linux/linux-yocto-4.14.71/0177-drm-amd-display-Fixed-4K-black-issue-by-refactor-upd.patch66
1 files changed, 66 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.14.71/0177-drm-amd-display-Fixed-4K-black-issue-by-refactor-upd.patch b/common/recipes-kernel/linux/linux-yocto-4.14.71/0177-drm-amd-display-Fixed-4K-black-issue-by-refactor-upd.patch
new file mode 100644
index 00000000..a3c12a3b
--- /dev/null
+++ b/common/recipes-kernel/linux/linux-yocto-4.14.71/0177-drm-amd-display-Fixed-4K-black-issue-by-refactor-upd.patch
@@ -0,0 +1,66 @@
+From 15d96024e4110f3d980a7c0add7d3c93305edad7 Mon Sep 17 00:00:00 2001
+From: Yongqiang Sun <yongqiang.sun@amd.com>
+Date: Mon, 23 Jan 2017 17:10:04 -0500
+Subject: [PATCH 0177/4131] drm/amd/display: Fixed 4K black issue by refactor
+ update surface.
+
+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 | 28 ++++++++++++++++------------
+ 1 file changed, 16 insertions(+), 12 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c
+index 170936b..01d6147 100644
+--- a/drivers/gpu/drm/amd/display/dc/core/dc.c
++++ b/drivers/gpu/drm/amd/display/dc/core/dc.c
+@@ -1482,17 +1482,19 @@ void dc_update_surfaces_for_stream(struct dc *dc,
+ }
+
+ /* not sure if we still need this */
+- for (j = 0; j < context->res_ctx.pool->pipe_count; j++) {
+- struct pipe_ctx *pipe_ctx = &context->res_ctx.pipe_ctx[j];
+- struct core_stream *stream = pipe_ctx->stream;
++ if (update_type == UPDATE_TYPE_FULL) {
++ for (j = 0; j < context->res_ctx.pool->pipe_count; j++) {
++ struct pipe_ctx *pipe_ctx = &context->res_ctx.pipe_ctx[j];
++ struct core_stream *stream = pipe_ctx->stream;
+
+- if (pipe_ctx->surface != surface)
+- continue;
++ if (pipe_ctx->surface != surface)
++ continue;
+
+- resource_build_scaling_params(updates[i].surface, pipe_ctx);
+- if (dc->debug.surface_visual_confirm) {
+- pipe_ctx->scl_data.recout.height -= 2;
+- pipe_ctx->scl_data.recout.width -= 2;
++ resource_build_scaling_params(updates[i].surface, pipe_ctx);
++ if (dc->debug.surface_visual_confirm) {
++ pipe_ctx->scl_data.recout.height -= 2;
++ pipe_ctx->scl_data.recout.width -= 2;
++ }
+ }
+ }
+
+@@ -1563,10 +1565,12 @@ void dc_update_surfaces_for_stream(struct dc *dc,
+ }
+
+ if (update_type == UPDATE_TYPE_FULL) {
+- core_dc->hwss.apply_ctx_for_surface(core_dc, surface, context);
+- } else if (updates[i].flip_addr) {
++ /* only apply for top pipe */
++ if (!pipe_ctx->top_pipe)
++ core_dc->hwss.apply_ctx_for_surface(core_dc,
++ surface, context);
++ } else if (updates[i].flip_addr)
+ core_dc->hwss.update_plane_addr(core_dc, pipe_ctx);
+- }
+
+ if (update_type == UPDATE_TYPE_FAST)
+ continue;
+--
+2.7.4
+