diff options
author | Rex Zhu <Rex.Zhu@amd.com> | 2016-10-27 03:29:57 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-11-11 10:20:59 -0500 |
commit | ba5f884cfa3d7fef06b9487679cc8472bf51aa25 (patch) | |
tree | 3a0ce979ac2ced5add7f67e0cf9e867e46d68acc /drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c | |
parent | acd546b9fda695e97473d0fb8e744aba6b274789 (diff) |
drm/amdgpu/powerplay: pp module only enable smu when dpm disabled.
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c index fa6baf31a35d..e2f0507eaac1 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c | |||
@@ -155,9 +155,6 @@ static int amdgpu_pp_sw_init(void *handle) | |||
155 | ret = adev->powerplay.ip_funcs->sw_init( | 155 | ret = adev->powerplay.ip_funcs->sw_init( |
156 | adev->powerplay.pp_handle); | 156 | adev->powerplay.pp_handle); |
157 | 157 | ||
158 | if (adev->pp_enabled) | ||
159 | adev->pm.dpm_enabled = true; | ||
160 | |||
161 | return ret; | 158 | return ret; |
162 | } | 159 | } |
163 | 160 | ||
@@ -187,6 +184,9 @@ static int amdgpu_pp_hw_init(void *handle) | |||
187 | ret = adev->powerplay.ip_funcs->hw_init( | 184 | ret = adev->powerplay.ip_funcs->hw_init( |
188 | adev->powerplay.pp_handle); | 185 | adev->powerplay.pp_handle); |
189 | 186 | ||
187 | if (amdgpu_dpm != 0) | ||
188 | adev->pm.dpm_enabled = true; | ||
189 | |||
190 | return ret; | 190 | return ret; |
191 | } | 191 | } |
192 | 192 | ||