drm/amd/powerplay: set Arcturus default fclk as bootup value on dpm disabled
authorEvan Quan <evan.quan@amd.com>
Fri, 16 Aug 2019 05:52:26 +0000 (13:52 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 22 Aug 2019 03:17:42 +0000 (22:17 -0500)
On fclk dpm disabled, the default dpm table will be setup with only one
level and clock frequency as bootup value.

Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Kevin Wang <kevin1.wang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/arcturus_ppt.c

index 04a2607..049f36e 100644 (file)
@@ -463,7 +463,8 @@ static int arcturus_set_default_dpm_table(struct smu_context *smu)
                        return ret;
                }
        } else {
-               single_dpm_table->count = 0;
+               single_dpm_table->count = 1;
+               single_dpm_table->dpm_levels[0].value = smu->smu_table.boot_values.fclk / 100;
        }
        arcturus_init_single_dpm_state(&(single_dpm_table->dpm_state));