aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/si_dpm.c
diff options
context:
space:
mode:
authorRex Zhu <[email protected]>2018-03-26 08:18:34 +0000
committerAlex Deucher <[email protected]>2018-04-11 18:07:49 +0000
commitb13aa1091fb2002a6854e0401df5fc6231fbca58 (patch)
treef9ef27d92698d885b4699cb8c580d47e393fc7f7 /drivers/gpu/drm/amd/amdgpu/si_dpm.c
parentdrm/amd/pp: Use release_firmware directly in powerplay (diff)
downloadkernel-b13aa1091fb2002a6854e0401df5fc6231fbca58.tar.gz
kernel-b13aa1091fb2002a6854e0401df5fc6231fbca58.zip
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 <[email protected]> Reviewed-by: Huang Rui <[email protected]> Signed-off-by: Rex Zhu <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/si_dpm.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/si_dpm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/si_dpm.c b/drivers/gpu/drm/amd/amdgpu/si_dpm.c
index 797d505bf9ee..b12d7c9d42a0 100644
--- a/drivers/gpu/drm/amd/amdgpu/si_dpm.c
+++ b/drivers/gpu/drm/amd/amdgpu/si_dpm.c
@@ -7580,7 +7580,7 @@ static int si_dpm_late_init(void *handle)
int ret;
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
- if (!amdgpu_dpm)
+ if (!adev->pm.dpm_enabled)
return 0;
ret = si_set_temperature_range(adev);