aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2014-01-07 13:51:51 -0500
committerAlex Deucher <alexander.deucher@amd.com>2014-01-20 18:20:55 -0500
commit8097d94116d0c17e774ba4c8256e774018dc2a46 (patch)
tree5cc6e04ed8d4265e15fb22638f86319647896f27
parentd526fbdd0fd0e5d78cd2e01a5387ee83431da7fb (diff)
drm/radeon/dpm: disable mclk switching on desktop RV770
Mclk switching doesn't seem to work reliably on these cards. Most RV770 boards specify the same mclk for all performance levels anyway so in most cases, this has no affect. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=73067 Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Cc: stable@vger.kernel.org
-rw-r--r--drivers/gpu/drm/radeon/rv770_dpm.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/rv770_dpm.c b/drivers/gpu/drm/radeon/rv770_dpm.c
index cb730cddfb9a..80c595aba359 100644
--- a/drivers/gpu/drm/radeon/rv770_dpm.c
+++ b/drivers/gpu/drm/radeon/rv770_dpm.c
@@ -2536,6 +2536,12 @@ bool rv770_dpm_vblank_too_short(struct radeon_device *rdev)
2536 (rdev->pdev->subsystem_device == 0x1c42)) 2536 (rdev->pdev->subsystem_device == 0x1c42))
2537 switch_limit = 200; 2537 switch_limit = 200;
2538 2538
2539 /* RV770 */
2540 /* mclk switching doesn't seem to work reliably on desktop RV770s */
2541 if ((rdev->family == CHIP_RV770) &&
2542 !(rdev->flags & RADEON_IS_MOBILITY))
2543 switch_limit = 0xffffffff; /* disable mclk switching */
2544
2539 if (vblank_time < switch_limit) 2545 if (vblank_time < switch_limit)
2540 return true; 2546 return true;
2541 else 2547 else