diff options
author | Felix Kuehling <Felix.Kuehling@amd.com> | 2022-03-16 22:21:40 +0100 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2023-11-03 17:18:32 +0100 |
commit | 5a104cb97c4e2bc8918b026a770188313b1d5fb3 (patch) | |
tree | 9f72fa1bd2db5984456575497af23f2d33b2b122 /drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h | |
parent | drm/amd/display: Increase frame warning limit with KASAN or KCSAN in dml2 (diff) | |
download | linux-5a104cb97c4e2bc8918b026a770188313b1d5fb3.tar.xz linux-5a104cb97c4e2bc8918b026a770188313b1d5fb3.zip |
drm/amdkfd: Improve amdgpu_vm_handle_moved
Let amdgpu_vm_handle_moved update all BO VA mappings of BOs reserved by
the caller. This will be useful for handling extra BO VA mappings in
KFD VMs that are managed through the render node API.
v2: rebase against drm_exec changes (Alex)
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h index 9c7b5d33b56e..2cd86d2bf73f 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h @@ -443,7 +443,8 @@ int amdgpu_vm_clear_freed(struct amdgpu_device *adev, struct amdgpu_vm *vm, struct dma_fence **fence); int amdgpu_vm_handle_moved(struct amdgpu_device *adev, - struct amdgpu_vm *vm); + struct amdgpu_vm *vm, + struct ww_acquire_ctx *ticket); void amdgpu_vm_bo_base_init(struct amdgpu_vm_bo_base *base, struct amdgpu_vm *vm, struct amdgpu_bo *bo); int amdgpu_vm_update_range(struct amdgpu_device *adev, struct amdgpu_vm *vm, |