commit | faefba95c9e8ca3a523831c2ec2150f5ea054dae | [log] [tgz] |
---|---|---|
author | Alex Deucher <alexander.deucher@amd.com> | Tue Dec 06 10:38:29 2016 -0500 |
committer | Alex Deucher <alexander.deucher@amd.com> | Wed Dec 07 11:17:21 2016 -0500 |
tree | 9a22a1a9071737b04cf3b30e32826c4f8203a5d7 | |
parent | ab7cd8d83e5dba13027de66f1b008b08b30b71a4 [diff] [blame] |
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>
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index 3161d77..e41d4ba 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
@@ -1493,7 +1493,7 @@ static int amdgpu_fini(struct amdgpu_device *adev) return 0; } -static int amdgpu_suspend(struct amdgpu_device *adev) +int amdgpu_suspend(struct amdgpu_device *adev) { int i, r;