drm/amdgpu: Set power ungate state when suspend/fini
authorRex Zhu <Rex.Zhu@amd.com>
Tue, 14 Aug 2018 08:54:15 +0000 (16:54 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 27 Aug 2018 16:11:01 +0000 (11:11 -0500)
commit05df1f01b2924d2e1737deeb63ad115c1df19021
tree130662a1e11852761a597089a7c7415fff8ca603
parent1112a46b48b74766bd957742c853c8a582a81991
drm/amdgpu: Set power ungate state when suspend/fini

Unify to set power ungate state at the begin of suspend/fini.
Remove the workaround code for gfx off feature in
amdgpu_device.c.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c