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)
committerSasha Levin <sasha.levin@oracle.com>
Mon, 11 Jul 2016 03:06:58 +0000 (23:06 -0400)
[ Upstream commit 0e5585dc870af947fab2af96a88c2d8b4270247c ]

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
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
drivers/gpu/drm/radeon/si_dpm.c

index 27e8bae..f666277 100644 (file)
@@ -2960,6 +2960,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 ((rdev->pm.dpm.new_active_crtc_count > 1) ||
            ni_dpm_vblank_too_short(rdev))