diff options
| author | Alex Deucher <[email protected]> | 2016-12-06 15:38:29 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2016-12-07 16:17:21 +0000 |
| commit | faefba95c9e8ca3a523831c2ec2150f5ea054dae (patch) | |
| tree | 9a22a1a9071737b04cf3b30e32826c4f8203a5d7 /drivers/gpu/drm/amd/amdgpu/amdgpu.h | |
| parent | Merge tag 'drm-intel-fixes-2016-12-01' of git://anongit.freedesktop.org/git/d... (diff) | |
| download | kernel-faefba95c9e8ca3a523831c2ec2150f5ea054dae.tar.gz kernel-faefba95c9e8ca3a523831c2ec2150f5ea054dae.zip | |
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 <[email protected]>
Reported-and-tested-by: Mike Lothian <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu.h')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h index 496f72b134eb..05c2850c04b0 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h @@ -2472,6 +2472,7 @@ void amdgpu_driver_postclose_kms(struct drm_device *dev, struct drm_file *file_priv); void amdgpu_driver_preclose_kms(struct drm_device *dev, struct drm_file *file_priv); +int amdgpu_suspend(struct amdgpu_device *adev); int amdgpu_device_suspend(struct drm_device *dev, bool suspend, bool fbcon); int amdgpu_device_resume(struct drm_device *dev, bool resume, bool fbcon); u32 amdgpu_get_vblank_counter_kms(struct drm_device *dev, unsigned int pipe); |
