OSDN Git Service

drm/amd/powerplay: add suspend and resume function for smu
authorLikun Gao <Likun.Gao@amd.com>
Thu, 14 Feb 2019 10:35:14 +0000 (18:35 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 19 Mar 2019 20:04:01 +0000 (15:04 -0500)
commit4733cc7244c2f18292dbb78ba88dfee35b73ff67
tree326f0ee3c9b32edd0530e6498d9aa26c5c67acda
parent9ebbc1bb02c0ed03db9113d5b63011041e5870b3
drm/amd/powerplay: add suspend and resume function for smu

Functional the function of smu suspend and resume.
Modified the function of smu_smc_table_hw_init to make it useful for smu
resume.

Signed-off-by: Likun Gao <Likun.Gao@amd.com>
Reviewed-by: Kenneth Feng <kenneth.feng@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h
drivers/gpu/drm/amd/powerplay/smu_v11_0.c