aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2535-drm-amd-display-reject-3D-mode-based-on-static-debug.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2535-drm-amd-display-reject-3D-mode-based-on-static-debug.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2535-drm-amd-display-reject-3D-mode-based-on-static-debug.patch57
1 files changed, 57 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2535-drm-amd-display-reject-3D-mode-based-on-static-debug.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2535-drm-amd-display-reject-3D-mode-based-on-static-debug.patch
new file mode 100644
index 00000000..56c58249
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2535-drm-amd-display-reject-3D-mode-based-on-static-debug.patch
@@ -0,0 +1,57 @@
+From 7f7e6156af242313edaee2233a744d28a47340ed Mon Sep 17 00:00:00 2001
+From: Charlene Liu <charlene.liu@amd.com>
+Date: Mon, 2 Oct 2017 18:01:36 -0400
+Subject: [PATCH 2535/4131] drm/amd/display: reject 3D mode based on static
+ debug flag.
+
+Signed-off-by: Charlene Liu <charlene.liu@amd.com>
+Reviewed-by: Krunoslav Kovac <Krunoslav.Kovac@amd.com>
+Acked-by: Harry Wentland <Harry.Wentland@amd.com>
+---
+ drivers/gpu/drm/amd/display/dc/dc.h | 2 +-
+ drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c | 1 +
+ drivers/gpu/drm/amd/display/dc/dcn10/dcn10_timing_generator.c | 3 +++
+ 3 files changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/drivers/gpu/drm/amd/display/dc/dc.h b/drivers/gpu/drm/amd/display/dc/dc.h
+index a703a2d..c06c8aa 100644
+--- a/drivers/gpu/drm/amd/display/dc/dc.h
++++ b/drivers/gpu/drm/amd/display/dc/dc.h
+@@ -217,7 +217,7 @@ struct dc_debug {
+ bool force_abm_enable;
+ bool disable_hbup_pg;
+ bool disable_dpp_pg;
+- bool stereo_support;
++ bool disable_stereo_support;
+ bool vsr_support;
+ };
+ struct dc_state;
+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 6bce7c4..cd70d0e 100644
+--- a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c
++++ b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c
+@@ -428,6 +428,7 @@ static const struct dc_debug debug_defaults_drv = {
+ .pipe_split_policy = MPC_SPLIT_AVOID_MULT_DISP,
+ .disable_dcc = DCC_ENABLE,
+ .voltage_align_fclk = true,
++ .disable_stereo_support = true,
+ .vsr_support = true,
+ };
+
+diff --git a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_timing_generator.c b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_timing_generator.c
+index 178dadd..1994865 100644
+--- a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_timing_generator.c
++++ b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_timing_generator.c
+@@ -499,6 +499,9 @@ static bool tgn10_validate_timing(
+ timing->timing_3d_format != TIMING_3D_FORMAT_INBAND_FA)
+ return false;
+
++ if (timing->timing_3d_format != TIMING_3D_FORMAT_NONE &&
++ tg->ctx->dc->debug.disable_stereo_support)
++ return false;
+ /* Temporarily blocking interlacing mode until it's supported */
+ if (timing->flags.INTERLACE == 1)
+ return false;
+--
+2.7.4
+