drm/amdgpu/powerplay: fix clock stretcher limits on polaris (v2)
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 30 Nov 2018 00:22:07 +0000 (19:22 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 5 Dec 2018 22:49:50 +0000 (17:49 -0500)
Adjust limits for newer polaris variants.

v2: fix polaris11 kicker (Jerry)

Reviewed-by: Junwei Zhang <Jerry.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c

index 2b2c266169023d44e52bd92dd09ab07e579fe7ac..94898b2da282b85ccd2e1888bbb0abbcbdeb7e76 100644 (file)
@@ -1528,8 +1528,21 @@ static int polaris10_populate_clock_stretcher_data_table(struct pp_hwmgr *hwmgr)
        efuse = efuse >> 24;
 
        if (hwmgr->chip_id == CHIP_POLARIS10) {
-               min = 1000;
-               max = 2300;
+               if (hwmgr->is_kicker) {
+                       min = 1200;
+                       max = 2500;
+               } else {
+                       min = 1000;
+                       max = 2300;
+               }
+       } else if (hwmgr->chip_id == CHIP_POLARIS11) {
+               if (hwmgr->is_kicker) {
+                       min = 900;
+                       max = 2100;
+               } else {
+                       min = 1100;
+                       max = 2100;
+               }
        } else {
                min = 1100;
                max = 2100;