aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3501-Revert-drm-amd-display-Fix-underscan-not-using-prope.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3501-Revert-drm-amd-display-Fix-underscan-not-using-prope.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3501-Revert-drm-amd-display-Fix-underscan-not-using-prope.patch54
1 files changed, 54 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3501-Revert-drm-amd-display-Fix-underscan-not-using-prope.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3501-Revert-drm-amd-display-Fix-underscan-not-using-prope.patch
new file mode 100644
index 00000000..1f720f20
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3501-Revert-drm-amd-display-Fix-underscan-not-using-prope.patch
@@ -0,0 +1,54 @@
+From 8a4a80171174b42ef9414e56a2a1698d225fc344 Mon Sep 17 00:00:00 2001
+From: David Francis <David.Francis@amd.com>
+Date: Thu, 23 May 2019 14:25:35 -0400
+Subject: [PATCH 3501/4256] Revert "drm/amd/display: Fix underscan not using
+ proper scaling"
+
+This reverts commit 80e80ec817f161560b4159608fb41bd289abede3.
+
+This commit fixed an issue with underscan commits not updating all
+needed timing values, but through various refactors it is no longer
+necessary. It causes corruption on odm combine by
+overwriting the halved h_active in the stream timing
+
+Signed-off-by: David Francis <David.Francis@amd.com>
+Reviewed-by: Roman Li <Roman.Li@amd.com>
+Reviewed-by: Harry Wentland <harry.wentland@amd.com>
+Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
+---
+ drivers/gpu/drm/amd/display/dc/core/dc.c | 12 +-----------
+ 1 file changed, 1 insertion(+), 11 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c
+index 541c94fba481..af2586b5c238 100644
+--- a/drivers/gpu/drm/amd/display/dc/core/dc.c
++++ b/drivers/gpu/drm/amd/display/dc/core/dc.c
+@@ -2138,7 +2138,7 @@ void dc_commit_updates_for_stream(struct dc *dc,
+ enum surface_update_type update_type;
+ struct dc_state *context;
+ struct dc_context *dc_ctx = dc->ctx;
+- int i, j;
++ int i;
+
+ stream_status = dc_stream_get_status(stream);
+ context = dc->current_state;
+@@ -2176,16 +2176,6 @@ void dc_commit_updates_for_stream(struct dc *dc,
+
+ copy_surface_update_to_plane(surface, &srf_updates[i]);
+
+- if (update_type >= UPDATE_TYPE_MED) {
+- for (j = 0; j < dc->res_pool->pipe_count; j++) {
+- struct pipe_ctx *pipe_ctx = &context->res_ctx.pipe_ctx[j];
+-
+- if (pipe_ctx->plane_state != surface)
+- continue;
+-
+- resource_build_scaling_params(pipe_ctx);
+- }
+- }
+ }
+
+ copy_stream_update_to_stream(dc, context, stream, stream_update);
+--
+2.17.1
+