drm/amdgpu: move gpu reset out of amdgpu_device_suspend
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 4 Oct 2019 19:57:21 +0000 (14:57 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 Oct 2019 19:51:39 +0000 (15:51 -0400)
commit897483d8a0e0896b214bda374e67373ee01166a6
treeb767f65f79d37806d574bac10601fcdd5cacd395
parent803cc26d5cb6a3c93eab9124c1e218dc93066a6c
drm/amdgpu: move gpu reset out of amdgpu_device_suspend

Move it into the caller.  There are cases were we don't
want it.  We need it for hibernation, but we don't need
it for runtime pm, so drop it for runtime pm.

Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c