aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2537-drm-amd-display-block-video-planes-4k-on-dcn10.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2537-drm-amd-display-block-video-planes-4k-on-dcn10.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2537-drm-amd-display-block-video-planes-4k-on-dcn10.patch42
1 files changed, 42 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2537-drm-amd-display-block-video-planes-4k-on-dcn10.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2537-drm-amd-display-block-video-planes-4k-on-dcn10.patch
new file mode 100644
index 00000000..e80d2e5d
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2537-drm-amd-display-block-video-planes-4k-on-dcn10.patch
@@ -0,0 +1,42 @@
+From 87c05feafb23eb148d6ca9e109047da536461e21 Mon Sep 17 00:00:00 2001
+From: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
+Date: Tue, 3 Oct 2017 11:11:28 -0400
+Subject: [PATCH 2537/4131] drm/amd/display: block video planes >4k on dcn10
+
+Signed-off-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
+Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
+Acked-by: Harry Wentland <Harry.Wentland@amd.com>
+---
+ drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c | 9 +++++++++
+ 1 file changed, 9 insertions(+)
+
+diff --git a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c
+index cd70d0e..1af591f 100644
+--- a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c
++++ b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c
+@@ -1163,6 +1163,14 @@ static void dcn10_destroy_resource_pool(struct resource_pool **pool)
+ *pool = NULL;
+ }
+
++enum dc_status dcn10_validate_plane(const struct dc_plane_state *plane_state)
++{
++ if (plane_state->format >= SURFACE_PIXEL_FORMAT_VIDEO_BEGIN
++ && plane_state->src_rect.width > 3840)
++ return DC_FAIL_SURFACE_VALIDATE;
++
++ return DC_OK;
++}
+
+ static struct dc_cap_funcs cap_funcs = {
+ .get_dcc_compression_cap = get_dcc_compression_cap
+@@ -1174,6 +1182,7 @@ static struct resource_funcs dcn10_res_pool_funcs = {
+ .validate_guaranteed = dcn10_validate_guaranteed,
+ .validate_bandwidth = dcn_validate_bandwidth,
+ .acquire_idle_pipe_for_layer = dcn10_acquire_idle_pipe_for_layer,
++ .validate_plane = dcn10_validate_plane,
+ .add_stream_to_ctx = dcn10_add_stream_to_ctx
+ };
+
+--
+2.7.4
+