drm/amd/display: Add debug option to disable timing sync
authorJoshua Aberback <joshua.aberback@amd.com>
Fri, 17 May 2019 18:43:10 +0000 (14:43 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 18 Jul 2019 19:27:25 +0000 (14:27 -0500)
[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>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc.c
drivers/gpu/drm/amd/display/dc/dc.h

index 4ef4dc63e221e65c88a040ae799732fe2eddcc0d..32fd9184ef224a5e6e3c90a8c6ee2f1e43cd60b3 100644 (file)
@@ -1062,7 +1062,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);
        }
index 14664bed8c84729425f16dac234a7a56b01477f1..786f61eb381db10e5f712685f31aa062a9dd8b62 100644 (file)
@@ -378,6 +378,7 @@ struct dc_debug_options {
         * watermarks are not affected.
         */
        unsigned int force_min_dcfclk_mhz;
+       bool disable_timing_sync;
 };
 
 struct dc_debug_data {