]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/amd/display: Fix disable_stutter debug option
authorHarry Wentland <harry.wentland@amd.com>
Thu, 7 May 2020 13:48:06 +0000 (09:48 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 21 May 2020 16:37:19 +0000 (12:37 -0400)
[Why & How]
One call was forcing stutter on instead of looking at the debug option.
Ensure we always check the debug option unless we want to force stutter
off.

Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hubbub.c
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c

index deccab0228d2b648ee5512de90f697df799f2c50..75637c291e75468d8525f48b07af09155396ddd2 100644 (file)
@@ -93,7 +93,6 @@ void hubbub1_wm_read_state(struct hubbub *hubbub,
 void hubbub1_allow_self_refresh_control(struct hubbub *hubbub, bool allow)
 {
        struct dcn10_hubbub *hubbub1 = TO_DCN10_HUBBUB(hubbub);
-
        /*
         * DCHUBBUB_ARB_ALLOW_SELF_REFRESH_FORCE_ENABLE = 1 means do not allow stutter
         * DCHUBBUB_ARB_ALLOW_SELF_REFRESH_FORCE_ENABLE = 0 means allow stutter
index f36d1f57b846e1cca4835610cde3c241fc872710..daf6977b5fb5bbaed425dc3473584ae217085f6c 100644 (file)
@@ -737,7 +737,8 @@ void dcn10_bios_golden_init(struct dc *dc)
        if (dc->res_pool->hubbub->funcs->allow_self_refresh_control)
                if (allow_self_fresh_force_enable == false &&
                                dc->res_pool->hubbub->funcs->is_allow_self_refresh_enabled(dc->res_pool->hubbub))
-                       dc->res_pool->hubbub->funcs->allow_self_refresh_control(dc->res_pool->hubbub, true);
+                       dc->res_pool->hubbub->funcs->allow_self_refresh_control(dc->res_pool->hubbub,
+                                                                               !dc->res_pool->hubbub->ctx->dc->debug.disable_stutter);
 
 }