From 26871b6f90d348950edd33d604761d6337229bdf Mon Sep 17 00:00:00 2001 From: Alex Deucher Date: Tue, 7 Jan 2014 13:51:51 -0500 Subject: [PATCH] drm/radeon/dpm: add quirk for HIS RV770 mclk switching doesn't seem to work reliably on this card. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=73067 Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org --- drivers/gpu/drm/radeon/rv770_dpm.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/gpu/drm/radeon/rv770_dpm.c b/drivers/gpu/drm/radeon/rv770_dpm.c index 4aaeb11..6e4b49d 100644 --- a/drivers/gpu/drm/radeon/rv770_dpm.c +++ b/drivers/gpu/drm/radeon/rv770_dpm.c @@ -2532,6 +2532,12 @@ bool rv770_dpm_vblank_too_short(struct radeon_device *rdev) (rdev->pdev->subsystem_device == 0x1c42)) switch_limit = 200; + /* HIS RV770 */ + if ((rdev->pdev->device == 0x9442) && + (rdev->pdev->subsystem_vendor == 0x1787) && + (rdev->pdev->subsystem_device == 0x2266)) + switch_limit = 0xffffffff; /* disable mclk switching */ + if (vblank_time < switch_limit) return true; else -- 1.8.3.1