drm/amdgpu: just suspend the hw on pci shutdown
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 6 Dec 2016 15:38:29 +0000 (10:38 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 7 Dec 2016 16:17:21 +0000 (11:17 -0500)
commitfaefba95c9e8ca3a523831c2ec2150f5ea054dae
tree9a22a1a9071737b04cf3b30e32826c4f8203a5d7
parentab7cd8d83e5dba13027de66f1b008b08b30b71a4
drm/amdgpu: just suspend the hw on pci shutdown

We can't just reuse pci_remove as there may be userspace still
doing things.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=98638
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=97980
Reviewed-by: Christian König <christian.koenig@amd.com>
Reported-and-tested-by: Mike Lothian <mike@fireburn.co.uk>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c