]> git.hungrycats.org Git - linux/commitdiff
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)
committerJiri Slaby <jslaby@suse.cz>
Wed, 20 Apr 2016 06:40:09 +0000 (08:40 +0200)
commit 0e5585dc870af947fab2af96a88c2d8b4270247c upstream.

Higher mclk values are not stable due to a bug somewhere.
Limit them for now.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/gpu/drm/radeon/si_dpm.c

index 34527c050062542b6883a39ab4a29bad8e2c67e0..393217886d98ee38f3959465356c9b2f03784ae2 100644 (file)
@@ -3008,6 +3008,10 @@ static void si_apply_state_adjust_rules(struct radeon_device *rdev,
                                ps->performance_levels[i].sclk = max_sclk;
                }
        }
+       /* limit mclk on all R7 370 parts for stability */
+       if (rdev->pdev->device == 0x6811 &&
+           rdev->pdev->revision == 0x81)
+               max_mclk = 120000;
 
        /* XXX validate the min clocks required for display */