drm/amd/powerplay: enable UMDPSTATE support on raven2 (v2)
authorChengming Gui <Jack.Gui@amd.com>
Mon, 22 Apr 2019 08:35:39 +0000 (16:35 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 23 Apr 2019 17:09:14 +0000 (12:09 -0500)
enable UMDPSTATE support to force performance level for raven2.

v2: squash in warning fix (Alex)

Signed-off-by: Chengming Gui <Jack.Gui@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c

index bbb9b1ecf9e188ec3a73da07d149b3234e9353ec..5f5dec9b97e247964c2f348589b6d360dfb24bc2 100644 (file)
@@ -573,7 +573,6 @@ static int smu10_dpm_force_dpm_level(struct pp_hwmgr *hwmgr,
                                enum amd_dpm_forced_level level)
 {
        struct smu10_hwmgr *data = hwmgr->backend;
-       struct amdgpu_device *adev = hwmgr->adev;
        uint32_t min_sclk = hwmgr->display_config->min_core_set_clock;
        uint32_t min_mclk = hwmgr->display_config->min_mem_set_clock/100;
 
@@ -582,11 +581,6 @@ static int smu10_dpm_force_dpm_level(struct pp_hwmgr *hwmgr,
                return 0;
        }
 
-       /* Disable UMDPSTATE support on rv2 temporarily */
-       if ((adev->asic_type == CHIP_RAVEN) &&
-           (adev->rev_id >= 8))
-               return 0;
-
        if (min_sclk < data->gfx_min_freq_limit)
                min_sclk = data->gfx_min_freq_limit;