drm/amd/display: Add debug param to force dio disable
authorWesley Chalmers <Wesley.Chalmers@amd.com>
Fri, 25 Sep 2020 14:54:52 +0000 (10:54 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 29 Sep 2020 20:08:59 +0000 (16:08 -0400)
[WHY]
At the moment, some tests are failing because cur_link_settings is
invalid. As a workaround, add an option to force dio disable.

Signed-off-by: Wesley Chalmers <Wesley.Chalmers@amd.com>
Reviewed-by: Martin Leung <Martin.Leung@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@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 9fabe26..dc90d26 100644 (file)
@@ -735,6 +735,8 @@ static bool dc_construct(struct dc *dc,
        dc->clk_mgr->force_smu_not_present = init_params->force_smu_not_present;
 #endif
 
+       dc->debug.force_ignore_link_settings = init_params->force_ignore_link_settings;
+
        if (dc->res_pool->funcs->update_bw_bounding_box)
                dc->res_pool->funcs->update_bw_bounding_box(dc, dc->clk_mgr->bw_params);
 
index 061ca15..82fe0ab 100644 (file)
@@ -503,6 +503,7 @@ struct dc_debug_options {
        bool usbc_combo_phy_reset_wa;
        bool disable_dsc;
        bool enable_dram_clock_change_one_display_vactive;
+       bool force_ignore_link_settings;
 };
 
 struct dc_debug_data {
@@ -660,6 +661,7 @@ struct dc_init_data {
 #if defined(CONFIG_DRM_AMD_DC_DCN3_0)
        bool force_smu_not_present;
 #endif
+       bool force_ignore_link_settings;
 };
 
 struct dc_callback_init {