aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2017-03-15 21:13:25 -0400
committerAlex Deucher <alexander.deucher@amd.com>2017-03-16 10:06:11 -0400
commite11ddff68a7c455e63c4b46154a3e75c699a7b55 (patch)
treed6ecb4b9e07f8b2ad5818927d22a2ceb7a0f092d
parent66822d815ae61ecb2d9dba9031517e8a8476969d (diff)
drm/amdgpu: reinstate oland workaround for sclk
Higher sclks seem to be unstable on some boards. bug: https://bugs.freedesktop.org/show_bug.cgi?id=100222 Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Cc: stable@vger.kernel.org
-rw-r--r--drivers/gpu/drm/amd/amdgpu/si_dpm.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/si_dpm.c b/drivers/gpu/drm/amd/amdgpu/si_dpm.c
index 33b504bafb88..c5dec210d529 100644
--- a/drivers/gpu/drm/amd/amdgpu/si_dpm.c
+++ b/drivers/gpu/drm/amd/amdgpu/si_dpm.c
@@ -3465,9 +3465,13 @@ static void si_apply_state_adjust_rules(struct amdgpu_device *adev,
3465 max_sclk = 75000; 3465 max_sclk = 75000;
3466 } 3466 }
3467 } else if (adev->asic_type == CHIP_OLAND) { 3467 } else if (adev->asic_type == CHIP_OLAND) {
3468 if ((adev->pdev->device == 0x6604) && 3468 if ((adev->pdev->revision == 0xC7) ||
3469 (adev->pdev->subsystem_vendor == 0x1028) && 3469 (adev->pdev->revision == 0x80) ||
3470 (adev->pdev->subsystem_device == 0x066F)) { 3470 (adev->pdev->revision == 0x81) ||
3471 (adev->pdev->revision == 0x83) ||
3472 (adev->pdev->revision == 0x87) ||
3473 (adev->pdev->device == 0x6604) ||
3474 (adev->pdev->device == 0x6605)) {
3471 max_sclk = 75000; 3475 max_sclk = 75000;
3472 } 3476 }
3473 } 3477 }