Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amd/powerplay/smu7: disable mclk switching for high refresh rates

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>

+2 -1
+2 -1
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c
··· 2793 2793 2794 2794 disable_mclk_switching = ((1 < info.display_count) || 2795 2795 disable_mclk_switching_for_frame_lock || 2796 - smu7_vblank_too_short(hwmgr, mode_info.vblank_time_us)); 2796 + smu7_vblank_too_short(hwmgr, mode_info.vblank_time_us) || 2797 + (mode_info.refresh_rate > 120)); 2797 2798 2798 2799 sclk = smu7_ps->performance_levels[0].engine_clock; 2799 2800 mclk = smu7_ps->performance_levels[0].memory_clock;