drm/amdgpu: Use dpm_enabled as dpm state flag
authorRex Zhu <Rex.Zhu@amd.com>
Mon, 26 Mar 2018 08:18:34 +0000 (16:18 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 11 Apr 2018 18:07:49 +0000 (13:07 -0500)
commitb13aa1091fb2002a6854e0401df5fc6231fbca58
treef9ef27d92698d885b4699cb8c580d47e393fc7f7
parent64f6db77fcb81493988061587fa478e6612dc45b
drm/amdgpu: Use dpm_enabled as dpm state flag

driver will set dpm_enabled to true only when
module parameter amdgpu_dpm not equal to 0 and
smu hw initialize successfully.

Reviewed-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
drivers/gpu/drm/amd/amdgpu/ci_dpm.c
drivers/gpu/drm/amd/amdgpu/kv_dpm.c
drivers/gpu/drm/amd/amdgpu/si_dpm.c
drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c
drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c