drm/radeon: add a dpm quirk for all R7 370 parts
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 28 Mar 2016 14:21:20 +0000 (10:21 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 28 Mar 2016 14:21:20 +0000 (10:21 -0400)
Higher mclk values are not stable due to a bug somewhere.
Limit them for now.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/radeon/si_dpm.c

index a280a32..af4df81 100644 (file)
@@ -3010,6 +3010,10 @@ static void si_apply_state_adjust_rules(struct radeon_device *rdev,
                }
                ++p;
        }
+       /* limit mclk on all R7 370 parts for stability */
+       if (rdev->pdev->device == 0x6811 &&
+           rdev->pdev->revision == 0x81)
+               max_mclk = 120000;
 
        if (rps->vce_active) {
                rps->evclk = rdev->pm.dpm.vce_states[rdev->pm.dpm.vce_level].evclk;