]> git.ipfire.org Git - thirdparty/kernel/stable.git/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)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 23 Feb 2017 03:54:19 +0000 (03:54 +0000)
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: Ben Hutchings <ben@decadent.org.uk>
drivers/gpu/drm/radeon/si_dpm.c

index e6a1abd9dd586da28bc2edccc87fa612180b95c2..0b281e488f0f856b5131b0470804fb657223bbfc 100644 (file)
@@ -3028,6 +3028,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 */