diff options
| author | Alex Deucher <[email protected]> | 2025-02-20 21:31:40 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2025-04-21 14:49:26 +0000 |
| commit | 73e12e98ec0c5657c4a0c99c96bc4c608813365d (patch) | |
| tree | c25c2708c28d0b373eaf2c588463c993651a6cfd /drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.h | |
| parent | drm/amdgpu/userq: properly clean up userq fence driver on failure (diff) | |
| download | kernel-73e12e98ec0c5657c4a0c99c96bc4c608813365d.tar.gz kernel-73e12e98ec0c5657c4a0c99c96bc4c608813365d.zip | |
drm/amdgpu/userq: add suspend and resume helpers
Add helpers to unmap and map user queues on suspend and
resume.
Reviewed-by: Sunil Khatri <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.h')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.h index a0cf6978f2ba..381b9c6f0573 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.h @@ -111,4 +111,7 @@ uint64_t amdgpu_userqueue_get_doorbell_index(struct amdgpu_userq_mgr *uq_mgr, struct amdgpu_db_info *db_info, struct drm_file *filp); +int amdgpu_userq_suspend(struct amdgpu_device *adev); +int amdgpu_userq_resume(struct amdgpu_device *adev); + #endif |
