diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2025-02-20 16:31:40 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2025-04-21 10:49:26 -0400 |
commit | 73e12e98ec0c5657c4a0c99c96bc4c608813365d (patch) | |
tree | c25c2708c28d0b373eaf2c588463c993651a6cfd /drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.h | |
parent | c0bbf64870e71eb8d6f6e2bcef3d84ba86baf32c (diff) |
drm/amdgpu/userq: add suspend and resume helpers
Add helpers to unmap and map user queues on suspend and
resume.
Reviewed-by: Sunil Khatri <sunil.khatri@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
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 |