drm/amd/powerplay: enable amdgpu dpm for smu
authorKevin Wang <kevin1.wang@amd.com>
Fri, 25 Jan 2019 09:33:40 +0000 (17:33 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 19 Mar 2019 20:04:01 +0000 (15:04 -0500)
enable amdgpu dpm global flag

Signed-off-by: Kevin Wang <kevin1.wang@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c

index 48b346f95cd679c891fe4862add97a854c9e5da1..ed2f7ccd2fb5ca600ad543719fa2f2d12f5b1089 100644 (file)
@@ -742,6 +742,8 @@ static int smu_hw_init(void *handle)
 
        mutex_unlock(&smu->mutex);
 
+       adev->pm.dpm_enabled = true;
+
        pr_info("SMU is initialized successfully!\n");
 
        return 0;