diff options
| author | Rex Zhu <[email protected]> | 2016-03-29 06:34:51 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2016-04-01 14:08:30 +0000 |
| commit | 5349ece70600bd574d9a825801c00f900acda3d4 (patch) | |
| tree | 7339717cd2ee669715421e5d0438c1e69e1257ef /drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c | |
| parent | drm/amd/powerplay: notify amdgpu whether dpm is enabled or not. (diff) | |
| download | kernel-5349ece70600bd574d9a825801c00f900acda3d4.tar.gz kernel-5349ece70600bd574d9a825801c00f900acda3d4.zip | |
drm/amdgpu: check dpm state before pm system fs initialized.
Make sure powerplay initialized properly before enabling
debugfs pm files.
Signed-off-by: Rex Zhu <[email protected]>
Reviewed- by: Alex Deucher <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c index 9430a7d0d0d7..e9c6ae6ed2f7 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c @@ -143,7 +143,7 @@ static int amdgpu_pp_late_init(void *handle) adev->powerplay.pp_handle); #ifdef CONFIG_DRM_AMD_POWERPLAY - if (adev->pp_enabled) { + if (adev->pp_enabled && adev->pm.dpm_enabled) { amdgpu_pm_sysfs_init(adev); amdgpu_dpm_dispatch_task(adev, AMD_PP_EVENT_COMPLETE_INIT, NULL, NULL); } |
