diff options
| author | 2018-01-05 11:16:22 +0100 | |
|---|---|---|
| committer | 2018-02-19 14:17:45 -0500 | |
| commit | 4b5f75504975b42377fa198b0672c9a52eb728e0 (patch) | |
| tree | 45494d7c4149ddb3e620c68d1fa541e3712cba97 /drivers/gpu/drm/amd/amdgpu/amdgpu_ids.h | |
| parent | drm/amdgpu: move PD/PT address calculation into backend function (diff) | |
| download | wireguard-linux-4b5f75504975b42377fa198b0672c9a52eb728e0.tar.xz wireguard-linux-4b5f75504975b42377fa198b0672c9a52eb728e0.zip | |
drm/amdgpu: add amdgpu_pasid_free_delayed v2
Free up a pasid after all fences signaled.
v2: also handle the case when we can't allocate a fence array.
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ids.h')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_ids.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ids.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_ids.h index ad931fa570b3..38f37c16fc5e 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ids.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ids.h @@ -69,6 +69,8 @@ struct amdgpu_vmid_mgr { int amdgpu_pasid_alloc(unsigned int bits); void amdgpu_pasid_free(unsigned int pasid); +void amdgpu_pasid_free_delayed(struct reservation_object *resv, + unsigned int pasid); bool amdgpu_vmid_had_gpu_reset(struct amdgpu_device *adev, struct amdgpu_vmid *id); |
