projects
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
762729d
)
drm/amd/powerplay: send event to notify powerplay all modules are initialized.
author
Rex Zhu
<Rex.Zhu@amd.com>
Thu, 25 Feb 2016 09:32:45 +0000
(17:32 +0800)
committer
Alex Deucher
<alexander.deucher@amd.com>
Wed, 2 Mar 2016 16:01:22 +0000
(11:01 -0500)
with this event, powerplay can adjust current power state if needed.
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Reviewed-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 b9d0d55f6b47df33ab7ebf7024fe7ca6e821892a..3cb6d6c413c71b0207fe1766d26ca190a083e880 100644
(file)
--- a/
drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c
+++ b/
drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c
@@
-143,8
+143,10
@@
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)
{
amdgpu_pm_sysfs_init(adev);
+ amdgpu_dpm_dispatch_task(adev, AMD_PP_EVENT_COMPLETE_INIT, NULL, NULL);
+ }
#endif
return ret;
}