Lines Matching refs:vm

471 		struct xe_vm *vm = gpuvm_to_vm(vm_bo->vm);
474 if (!xe_vm_in_fault_mode(vm)) {
1056 if (bo->vm && xe_bo_is_user(bo))
1057 xe_vm_put(bo->vm);
1091 if (bo->vm && !xe_vm_in_fault_mode(bo->vm)) {
1362 struct xe_tile *tile, struct xe_vm *vm,
1369 if (vm)
1370 xe_vm_assert_held(vm);
1385 bo = ___xe_bo_create_locked(xe, bo, tile, vm ? xe_vm_resv(vm) : NULL,
1386 vm && !xe_vm_in_fault_mode(vm) &&
1388 &vm->lru_bulk_move : NULL, size,
1396 * will keep a reference to the vm, and avoid circular references
1397 * by having all the vm's bo refereferences released at vm close
1400 if (vm && xe_bo_is_user(bo))
1401 xe_vm_get(vm);
1402 bo->vm = vm;
1431 struct xe_tile *tile, struct xe_vm *vm,
1435 return __xe_bo_create_locked(xe, tile, vm, size, start, end, 0, type, flags);
1439 struct xe_vm *vm, size_t size,
1442 return __xe_bo_create_locked(xe, tile, vm, size, 0, ~0ULL, 0, type, flags);
1446 struct xe_vm *vm, size_t size,
1451 struct xe_bo *bo = __xe_bo_create_locked(xe, tile, vm, size, 0, ~0ULL,
1461 struct xe_vm *vm, size_t size,
1464 struct xe_bo *bo = xe_bo_create_locked(xe, tile, vm, size, type, flags);
1473 struct xe_vm *vm,
1486 bo = xe_bo_create_locked_range(xe, tile, vm, size, start, end, type,
1512 struct xe_vm *vm, size_t size,
1515 return xe_bo_create_pin_map_at(xe, tile, vm, size, ~0ull, type, flags);
1631 xe_assert(xe, !bo->vm);
1730 xe_assert(xe, !bo->vm);
1775 * @vm: Pointer to a the vm the bo shares a locked dma_resv object with, or
1777 * @allow_res_evict: Whether it's allowed to evict bos sharing @vm's
1782 * the @vm's reservation object, they can be evicted iff @allow_res_evict is
1788 int xe_bo_validate(struct xe_bo *bo, struct xe_vm *vm, bool allow_res_evict)
1795 if (vm) {
1796 lockdep_assert_held(&vm->lock);
1797 xe_vm_assert_held(vm);
1800 ctx.resv = xe_vm_resv(vm);
1906 struct xe_vm *vm = NULL;
1969 vm = xe_vm_lookup(xef, args->vm_id);
1970 if (XE_IOCTL_DBG(xe, !vm))
1972 err = xe_vm_lock(vm, true);
1977 bo = xe_bo_create_user(xe, NULL, vm, args->size, args->cpu_caching,
1980 if (vm)
1981 xe_vm_unlock(vm);
1996 if (vm && !xe_vm_in_fault_mode(vm)) {
1997 xe_vm_lock(vm, false);
1999 xe_vm_unlock(vm);
2004 if (vm)
2005 xe_vm_put(vm);