diff options
| author | Alex Deucher <alexander.deucher@amd.com> | 2017-05-11 13:14:14 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-06-07 12:10:10 +0200 |
| commit | 6b693bbf9cd900e0e94b9b11711a15e61f84022f (patch) | |
| tree | e15d7e2b3cbe8086af7feea91b8e610773bec70a | |
| parent | d6ba1a4407beb8c82d7b2a31b878ff1673cb4a37 (diff) | |
| download | linux-6b693bbf9cd900e0e94b9b11711a15e61f84022f.tar.gz linux-6b693bbf9cd900e0e94b9b11711a15e61f84022f.tar.bz2 linux-6b693bbf9cd900e0e94b9b11711a15e61f84022f.zip | |
drm/radeon/ci: disable mclk switching for high refresh rates (v2)
commit 58d7e3e427db1bd68f33025519a9468140280a75 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 <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
| -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 |
