drm/amd/powerplay/smu7: disable mclk switching for high refresh rates
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 11 May 2017 17:57:41 +0000 (13:57 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 May 2017 20:46:01 +0000 (16:46 -0400)
Even if the vblank period would allow it, it still seems to
be problematic on some cards.

bug: https://bugs.freedesktop.org/show_bug.cgi?id=96868

Cc: stable@vger.kernel.org
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c

index 1445c51b6d053de87a31099aaa093d5c8b5b5aea..102eb6d029faeb27887215ada8aeccf93d4039b0 100644 (file)
@@ -2793,7 +2793,8 @@ static int smu7_apply_state_adjust_rules(struct pp_hwmgr *hwmgr,
 
        disable_mclk_switching = ((1 < info.display_count) ||
                                  disable_mclk_switching_for_frame_lock ||
-                                 smu7_vblank_too_short(hwmgr, mode_info.vblank_time_us));
+                                 smu7_vblank_too_short(hwmgr, mode_info.vblank_time_us) ||
+                                 (mode_info.refresh_rate > 120));
 
        sclk = smu7_ps->performance_levels[0].engine_clock;
        mclk = smu7_ps->performance_levels[0].memory_clock;