Skip to content

Commit 0157e2a

Browse files
alexdeuchergregkh
authored andcommitted
drm/radeon/ci: disable mclk switching for high refresh rates (v2)
commit ab03d9f upstream. Even if the vblank period would allow it, it still seems to be problematic on some cards. v2: fix logic inversion (Nils) bug: https://bugs.freedesktop.org/show_bug.cgi?id=96868 Acked-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent ad2efae commit 0157e2a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

drivers/gpu/drm/radeon/ci_dpm.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -776,6 +776,12 @@ bool ci_dpm_vblank_too_short(struct radeon_device *rdev)
776776
u32 vblank_time = r600_dpm_get_vblank_time(rdev);
777777
u32 switch_limit = pi->mem_gddr5 ? 450 : 300;
778778

779+
/* disable mclk switching if the refresh is >120Hz, even if the
780+
* blanking period would allow it
781+
*/
782+
if (r600_dpm_get_vrefresh(rdev) > 120)
783+
return true;
784+
779785
/* disable mclk switching if the refresh is >120Hz, even if the
780786
* blanking period would allow it
781787
*/

0 commit comments

Comments
 (0)