aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0348-drm-amd-display-Remove-unused-scratch_val_ctx.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0348-drm-amd-display-Remove-unused-scratch_val_ctx.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0348-drm-amd-display-Remove-unused-scratch_val_ctx.patch50
1 files changed, 50 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0348-drm-amd-display-Remove-unused-scratch_val_ctx.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0348-drm-amd-display-Remove-unused-scratch_val_ctx.patch
new file mode 100644
index 00000000..62156c98
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0348-drm-amd-display-Remove-unused-scratch_val_ctx.patch
@@ -0,0 +1,50 @@
+From 741edaa25c2dfd2be8ac0b41e96f519eb61a3c99 Mon Sep 17 00:00:00 2001
+From: Harry Wentland <harry.wentland@amd.com>
+Date: Thu, 6 Apr 2017 16:48:48 -0400
+Subject: [PATCH 0348/4131] drm/amd/display: Remove unused scratch_val_ctx
+
+Signed-off-by: Harry Wentland <harry.wentland@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 | 3 ---
+ drivers/gpu/drm/amd/display/dc/inc/core_dc.h | 1 -
+ 2 files changed, 4 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c
+index 6576137..7b0b735 100644
+--- a/drivers/gpu/drm/amd/display/dc/core/dc.c
++++ b/drivers/gpu/drm/amd/display/dc/core/dc.c
+@@ -411,8 +411,6 @@ static void destruct(struct core_dc *dc)
+ dc->current_context = NULL;
+ dm_free(dc->temp_flip_context);
+ dc->temp_flip_context = NULL;
+- dm_free(dc->scratch_val_ctx);
+- dc->scratch_val_ctx = NULL;
+
+ dm_free(dc->ctx);
+ dc->ctx = NULL;
+@@ -432,7 +430,6 @@ static bool construct(struct core_dc *dc,
+
+ dc->current_context = dm_alloc(sizeof(*dc->current_context));
+ dc->temp_flip_context = dm_alloc(sizeof(*dc->temp_flip_context));
+- dc->scratch_val_ctx = dm_alloc(sizeof(*dc->scratch_val_ctx));
+
+ if (!dc->current_context || !dc->temp_flip_context) {
+ dm_error("%s: failed to create validate ctx\n", __func__);
+diff --git a/drivers/gpu/drm/amd/display/dc/inc/core_dc.h b/drivers/gpu/drm/amd/display/dc/inc/core_dc.h
+index 8d87f49..ec3edbe 100644
+--- a/drivers/gpu/drm/amd/display/dc/inc/core_dc.h
++++ b/drivers/gpu/drm/amd/display/dc/inc/core_dc.h
+@@ -23,7 +23,6 @@ struct core_dc {
+
+ struct validate_context *current_context;
+ struct validate_context *temp_flip_context;
+- struct validate_context *scratch_val_ctx;
+ struct resource_pool *res_pool;
+
+ /* Display Engine Clock levels */
+--
+2.7.4
+