]> git.hungrycats.org Git - linux/commitdiff
drm/radeon/si_dpm: Limit clocks on HD86xx part
authorTom St Denis <tom.stdenis@amd.com>
Thu, 13 Oct 2016 16:38:07 +0000 (12:38 -0400)
committerJiri Slaby <jslaby@suse.cz>
Thu, 24 Nov 2016 15:23:31 +0000 (16:23 +0100)
commit fb9a5b0c1c9893db2e0d18544fd49e19d784a87d upstream.

Limit clocks on a specific HD86xx part to avoid
crashes (while awaiting an appropriate PP fix).

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

index c1281fc3904026ee5017e4a849f2cefee638a6f8..c75e14fdcf54b00970bc1cf8a0a06415e2f81d91 100644 (file)
@@ -3018,6 +3018,12 @@ static void si_apply_state_adjust_rules(struct radeon_device *rdev,
                max_sclk = 75000;
                max_mclk = 80000;
        }
+       /* limit clocks on HD8600 series */
+       if (rdev->pdev->device == 0x6660 &&
+           rdev->pdev->revision == 0x83) {
+               max_sclk = 75000;
+               max_mclk = 80000;
+       }
 
        /* XXX validate the min clocks required for display */