drm/amd/powerplay: enable populate DPM clocks table for swSMU APU
authorPrike Liang <Prike.Liang@amd.com>
Fri, 16 Aug 2019 03:22:13 +0000 (11:22 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 29 Aug 2019 20:52:32 +0000 (15:52 -0500)
Should populate DPM clocks tables during hw init,otherwise will
suffer from invalidate table.

Signed-off-by: Prike Liang <Prike.Liang@amd.com>
Reviewed-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Aaron Liu <aaron.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c

index ffbe4d881e480fe080ed5d1f6fa5597c7f93b29e..5340556a34c5e51c0f7e59990466b21929acf5d7 100644 (file)
@@ -1042,9 +1042,6 @@ static int smu_smc_table_hw_init(struct smu_context *smu,
        struct amdgpu_device *adev = smu->adev;
        int ret;
 
-       if (adev->flags & AMD_IS_APU)
-               return 0;
-
        if (smu_is_dpm_running(smu) && adev->in_suspend) {
                pr_info("dpm has been enabled\n");
                return 0;