diff options
author | 2017-05-11 13:14:14 -0400 | |
---|---|---|
committer | 2017-05-24 16:45:03 -0400 | |
commit | 58d7e3e427db1bd68f33025519a9468140280a75 (patch) | |
tree | 1571563279328c6119f42c71d85f9b177435d3bf /drivers/gpu | |
parent | drm/amdgpu/ci: disable mclk switching for high refresh rates (v2) (diff) | |
download | linux-58d7e3e427db1bd68f33025519a9468140280a75.tar.gz linux-58d7e3e427db1bd68f33025519a9468140280a75.tar.bz2 linux-58d7e3e427db1bd68f33025519a9468140280a75.zip |
drm/radeon/ci: disable mclk switching for high refresh rates (v2)
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
Cc: stable@vger.kernel.org
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/radeon/ci_dpm.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/ci_dpm.c b/drivers/gpu/drm/radeon/ci_dpm.c index 7ba450832e6b..ea36dc4dd5d2 100644 --- a/drivers/gpu/drm/radeon/ci_dpm.c +++ b/drivers/gpu/drm/radeon/ci_dpm.c @@ -776,6 +776,12 @@ bool ci_dpm_vblank_too_short(struct radeon_device *rdev) u32 vblank_time = r600_dpm_get_vblank_time(rdev); u32 switch_limit = pi->mem_gddr5 ? 450 : 300; + /* disable mclk switching if the refresh is >120Hz, even if the + * blanking period would allow it + */ + if (r600_dpm_get_vrefresh(rdev) > 120) + return true; + if (vblank_time < switch_limit) return true; else |