]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drm/radeon: reinstate oland workaround for sclk
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 16 Mar 2017 01:11:46 +0000 (21:11 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 16 Mar 2017 14:06:11 +0000 (10:06 -0400)
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
drivers/gpu/drm/radeon/si_dpm.c

index 72e1588580a1187f8ba0c05fe62fbaf1cde550d1..c7af9fdd20c729184654222dfc8b4bc6a870c066 100644 (file)
@@ -2985,9 +2985,13 @@ static void si_apply_state_adjust_rules(struct radeon_device *rdev,
                        max_sclk = 75000;
                }
        } else if (rdev->family == CHIP_OLAND) {
-               if ((rdev->pdev->device == 0x6604) &&
-                   (rdev->pdev->subsystem_vendor == 0x1028) &&
-                   (rdev->pdev->subsystem_device == 0x066F)) {
+               if ((rdev->pdev->revision == 0xC7) ||
+                   (rdev->pdev->revision == 0x80) ||
+                   (rdev->pdev->revision == 0x81) ||
+                   (rdev->pdev->revision == 0x83) ||
+                   (rdev->pdev->revision == 0x87) ||
+                   (rdev->pdev->device == 0x6604) ||
+                   (rdev->pdev->device == 0x6605)) {
                        max_sclk = 75000;
                }
        }