drm/amd/powerplay: do not set dpm_enabled flag before VCN/DCN DPM is workable
authorHuang Rui <ray.huang@amd.com>
Thu, 30 May 2019 04:15:54 +0000 (23:15 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 21 Jun 2019 23:59:26 +0000 (18:59 -0500)
This dpm_enabled flag will be recognized as the VCN DPM enabled as well. In fact
VCN/DCN DPM on Navi10 is not good so far, so we cannot enable it for now.

Signed-off-by: Huang Rui <ray.huang@amd.com>
Acked-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c

index fd628fc..71f93f9 100644 (file)
@@ -866,6 +866,9 @@ static int smu_hw_init(void *handle)
                adev->pm.dpm_enabled = false;
        else
                adev->pm.dpm_enabled = true;
+       /* TODO: will set dpm_enabled flag while VCN and DAL DPM is workable */
+       if (adev->asic_type != CHIP_NAVI10)
+               adev->pm.dpm_enabled = true;
 
        pr_info("SMU is initialized successfully!\n");