projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4cd05a7
)
drm/amdgpu: check dpm state before pm system fs initialized.
author
Rex Zhu
<Rex.Zhu@amd.com>
Tue, 29 Mar 2016 06:34:51 +0000
(14:34 +0800)
committer
Alex Deucher
<alexander.deucher@amd.com>
Fri, 1 Apr 2016 14:08:30 +0000
(10:08 -0400)
Make sure powerplay initialized properly before enabling
debugfs pm files.
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>
drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c
index 9430a7d0d0d785e8fa2462dbc2da6a78e69b70b0..e9c6ae6ed2f73357d762f9aa75406c010238dd4a 100644
(file)
--- 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);
}