aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3115-drm-amd-display-Define-remove_stream_from_ctx-resour.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3115-drm-amd-display-Define-remove_stream_from_ctx-resour.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3115-drm-amd-display-Define-remove_stream_from_ctx-resour.patch49
1 files changed, 49 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3115-drm-amd-display-Define-remove_stream_from_ctx-resour.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3115-drm-amd-display-Define-remove_stream_from_ctx-resour.patch
new file mode 100644
index 00000000..fd10c27e
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3115-drm-amd-display-Define-remove_stream_from_ctx-resour.patch
@@ -0,0 +1,49 @@
+From 3af6f3766f578fb1e2e69023e9e2ae6e85926976 Mon Sep 17 00:00:00 2001
+From: Nikola Cornij <nikola.cornij@amd.com>
+Date: Thu, 14 Dec 2017 17:57:56 -0500
+Subject: [PATCH 3115/4131] drm/amd/display: Define remove_stream_from_ctx
+ resource func
+
+This will allow us to clean up resources on a stream as needed.
+
+Signed-off-by: Nikola Cornij <nikola.cornij@amd.com>
+Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
+Acked-by: Harry Wentland <harry.wentland@amd.com>
+---
+ drivers/gpu/drm/amd/display/dc/core/dc_resource.c | 3 +++
+ drivers/gpu/drm/amd/display/dc/inc/core_types.h | 5 +++++
+ 2 files changed, 8 insertions(+)
+
+diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_resource.c b/drivers/gpu/drm/amd/display/dc/core/dc_resource.c
+index 211210c..b0ffa7a 100644
+--- a/drivers/gpu/drm/amd/display/dc/core/dc_resource.c
++++ b/drivers/gpu/drm/amd/display/dc/core/dc_resource.c
+@@ -1554,6 +1554,9 @@ enum dc_status dc_remove_stream_from_ctx(
+ dc->res_pool,
+ del_pipe->clock_source);
+
++ if (dc->res_pool->funcs->remove_stream_from_ctx)
++ dc->res_pool->funcs->remove_stream_from_ctx(dc, new_ctx, stream);
++
+ memset(del_pipe, 0, sizeof(*del_pipe));
+
+ break;
+diff --git a/drivers/gpu/drm/amd/display/dc/inc/core_types.h b/drivers/gpu/drm/amd/display/dc/inc/core_types.h
+index 8dcaf91..59d2699 100644
+--- a/drivers/gpu/drm/amd/display/dc/inc/core_types.h
++++ b/drivers/gpu/drm/amd/display/dc/inc/core_types.h
+@@ -119,6 +119,11 @@ struct resource_funcs {
+ struct dc *dc,
+ struct dc_state *new_ctx,
+ struct dc_stream_state *dc_stream);
++
++ enum dc_status (*remove_stream_from_ctx)(
++ struct dc *dc,
++ struct dc_state *new_ctx,
++ struct dc_stream_state *stream);
+ };
+
+ struct audio_support{
+--
+2.7.4
+