aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3063-drm-amd-display-Add-debug-option-to-disable-timing-s.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3063-drm-amd-display-Add-debug-option-to-disable-timing-s.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3063-drm-amd-display-Add-debug-option-to-disable-timing-s.patch48
1 files changed, 48 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3063-drm-amd-display-Add-debug-option-to-disable-timing-s.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3063-drm-amd-display-Add-debug-option-to-disable-timing-s.patch
new file mode 100644
index 00000000..7b7fc4fd
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3063-drm-amd-display-Add-debug-option-to-disable-timing-s.patch
@@ -0,0 +1,48 @@
+From d8e2154aba6dc991ae2852562bca2202dcc56c7b Mon Sep 17 00:00:00 2001
+From: Joshua Aberback <joshua.aberback@amd.com>
+Date: Fri, 17 May 2019 14:43:10 -0400
+Subject: [PATCH 3063/4256] drm/amd/display: Add debug option to disable timing
+ sync
+
+[Why]
+We want a debug option to disable timing sync for testing.
+
+[How]
+New dc debug option that must be false to call program_timing_sync
+
+Signed-off-by: Joshua Aberback <joshua.aberback@amd.com>
+Reviewed-by: Jun Lei <Jun.Lei@amd.com>
+Acked-by: Leo Li <sunpeng.li@amd.com>
+---
+ drivers/gpu/drm/amd/display/dc/core/dc.c | 2 +-
+ drivers/gpu/drm/amd/display/dc/dc.h | 1 +
+ 2 files changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c
+index c1bda186fd40..2503e3308b42 100644
+--- a/drivers/gpu/drm/amd/display/dc/core/dc.c
++++ b/drivers/gpu/drm/amd/display/dc/core/dc.c
+@@ -1072,7 +1072,7 @@ static enum dc_status dc_commit_state_no_check(struct dc *dc, struct dc_state *c
+ if (result != DC_OK)
+ return result;
+
+- if (context->stream_count > 1) {
++ if (context->stream_count > 1 && !dc->debug.disable_timing_sync) {
+ enable_timing_multisync(dc, context);
+ program_timing_sync(dc, context);
+ }
+diff --git a/drivers/gpu/drm/amd/display/dc/dc.h b/drivers/gpu/drm/amd/display/dc/dc.h
+index 441d0c376a9f..6d69fd12e422 100644
+--- a/drivers/gpu/drm/amd/display/dc/dc.h
++++ b/drivers/gpu/drm/amd/display/dc/dc.h
+@@ -381,6 +381,7 @@ struct dc_debug_options {
+ * watermarks are not affected.
+ */
+ unsigned int force_min_dcfclk_mhz;
++ bool disable_timing_sync;
+ };
+
+ struct dc_debug_data {
+--
+2.17.1
+