diff options
author | Thomas Hellström <thomas.hellstrom@linux.intel.com> | 2023-09-08 11:17:12 +0200 |
---|---|---|
committer | Rodrigo Vivi <rodrigo.vivi@intel.com> | 2023-12-21 11:41:07 -0500 |
commit | d00e9cc28e1e42108618e7a146969a26679170a2 (patch) | |
tree | 8a2c8a9e74ab0ad9dec8308f164e8e624ef94f6a /drivers/gpu/drm/xe/xe_vm.h | |
parent | 08a4f00e62bc96eabf7d876933f84600a3dc5e69 (diff) |
drm/xe/vm: Simplify and document xe_vm_lock()
The xe_vm_lock() function was unnecessarily using ttm_eu_reserve_buffers().
Simplify and document the interface.
v4:
- Improve on xe_vm_lock() documentation (Matthew Brost)
v5:
- Rebase conflict.
Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230908091716.36984-3-thomas.hellstrom@linux.intel.com
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'drivers/gpu/drm/xe/xe_vm.h')
-rw-r--r-- | drivers/gpu/drm/xe/xe_vm.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/gpu/drm/xe/xe_vm.h b/drivers/gpu/drm/xe/xe_vm.h index 805236578140..dd20e5c8106f 100644 --- a/drivers/gpu/drm/xe/xe_vm.h +++ b/drivers/gpu/drm/xe/xe_vm.h @@ -38,10 +38,9 @@ static inline void xe_vm_put(struct xe_vm *vm) drm_gpuvm_put(&vm->gpuvm); } -int xe_vm_lock(struct xe_vm *vm, struct ww_acquire_ctx *ww, - int num_resv, bool intr); +int xe_vm_lock(struct xe_vm *vm, bool intr); -void xe_vm_unlock(struct xe_vm *vm, struct ww_acquire_ctx *ww); +void xe_vm_unlock(struct xe_vm *vm); static inline bool xe_vm_is_closed(struct xe_vm *vm) { |