/** * xe_pt_create() - Create a page-table. * @vm: The vm to create for. * @tile: The tile to create for. * @level: The page-table level. * * Allocate and initialize a single struct xe_pt metadata structure. Also * create the corresponding page-table bo, but don't initialize it. If the * level is grater than zero, then it's assumed to be a directory page- * table and the directory structure is also allocated and initialized to * NULL pointers. * * Return: A valid struct xe_pt pointer on success, Pointer error code on * error.
*/ struct xe_pt *xe_pt_create(struct xe_vm *vm, struct xe_tile *tile, unsignedint level)
{ struct xe_pt *pt; struct xe_bo *bo;
u32 bo_flags; int err;
if (level) { struct xe_pt_dir *dir = kzalloc(sizeof(*dir), GFP_KERNEL);
/** * xe_pt_populate_empty() - Populate a page-table bo with scratch- or zero * entries. * @tile: The tile the scratch pagetable of which to use. * @vm: The vm we populate for. * @pt: The pagetable the bo of which to initialize. * * Populate the page-table bo of @pt with entries pointing into the tile's * scratch page-table tree if any. Otherwise populate with zeros.
*/ void xe_pt_populate_empty(struct xe_tile *tile, struct xe_vm *vm, struct xe_pt *pt)
{ struct iosys_map *map = &pt->bo->vmap;
u64 empty; int i;
if (!xe_vm_has_scratch(vm)) { /* * FIXME: Some memory is allocated already allocated to zero? * Find out which memory that is and avoid this memset...
*/
xe_map_memset(vm->xe, map, 0, 0, SZ_4K);
} else {
empty = __xe_pt_empty_pte(tile, vm, pt->level); for (i = 0; i < XE_PDES; i++)
xe_pt_write(vm->xe, map, i, empty);
}
}
/** * xe_pt_shift() - Return the ilog2 value of the size of the address range of * a page-table at a certain level. * @level: The level. * * Return: The ilog2 value of the size of the address range of a page-table * at level @level.
*/ unsignedint xe_pt_shift(unsignedint level)
{ return XE_PTE_SHIFT + XE_PDE_SHIFT * level;
}
/** * xe_pt_destroy() - Destroy a page-table tree. * @pt: The root of the page-table tree to destroy. * @flags: vm flags. Currently unused. * @deferred: List head of lockless list for deferred putting. NULL for * immediate putting. * * Puts the page-table bo, recursively calls xe_pt_destroy on all children * and finally frees @pt. TODO: Can we remove the @flags argument?
*/ void xe_pt_destroy(struct xe_pt *pt, u32 flags, struct llist_head *deferred)
{ int i;
for (i = 0; i < XE_PDES; i++) { if (xe_pt_entry_staging(pt_dir, i))
xe_pt_destroy(xe_pt_entry_staging(pt_dir, i), flags,
deferred);
}
}
xe_pt_free(pt);
}
/** * xe_pt_clear() - Clear a page-table. * @xe: xe device. * @pt: The page-table. * * Clears page-table by setting to zero.
*/ void xe_pt_clear(struct xe_device *xe, struct xe_pt *pt)
{ struct iosys_map *map = &pt->bo->vmap;
xe_map_memset(xe, map, 0, 0, SZ_4K);
}
/** * DOC: Pagetable building * * Below we use the term "page-table" for both page-directories, containing * pointers to lower level page-directories or page-tables, and level 0 * page-tables that contain only page-table-entries pointing to memory pages. * * When inserting an address range in an already existing page-table tree * there will typically be a set of page-tables that are shared with other * address ranges, and a set that are private to this address range. * The set of shared page-tables can be at most two per level, * and those can't be updated immediately because the entries of those * page-tables may still be in use by the gpu for other mappings. Therefore * when inserting entries into those, we instead stage those insertions by * adding insertion data into struct xe_vm_pgtable_update structures. This * data, (subtrees for the cpu and page-table-entries for the gpu) is then * added in a separate commit step. CPU-data is committed while still under the * vm lock, the object lock and for userptr, the notifier lock in read mode. * The GPU async data is committed either by the GPU or CPU after fulfilling * relevant dependencies. * For non-shared page-tables (and, in fact, for shared ones that aren't * existing at the time of staging), we add the data in-place without the * special update structures. This private part of the page-table tree will * remain disconnected from the vm page-table tree until data is committed to * the shared page tables of the vm tree in the commit phase.
*/
struct xe_pt_update { /** @update: The update structure we're building for this parent. */ struct xe_vm_pgtable_update *update; /** @parent: The parent. Used to detect a parent change. */ struct xe_pt *parent; /** @preexisting: Whether the parent was pre-existing or allocated */ bool preexisting;
};
/** * struct xe_pt_stage_bind_walk - Walk state for the stage_bind walk.
*/ struct xe_pt_stage_bind_walk { /** @base: The base class. */ struct xe_pt_walk base;
/* Input parameters for the walk */ /** @vm: The vm we're building for. */ struct xe_vm *vm; /** @tile: The tile we're building for. */ struct xe_tile *tile; /** @default_vram_pte: PTE flag only template for VRAM. No address is associated */
u64 default_vram_pte; /** @default_system_pte: PTE flag only template for System. No address is associated */
u64 default_system_pte; /** @dma_offset: DMA offset to add to the PTE. */
u64 dma_offset; /** * @needs_64K: This address range enforces 64K alignment and * granularity on VRAM.
*/ bool needs_64K; /** @clear_pt: clear page table entries during the bind walk */ bool clear_pt; /** * @vma: VMA being mapped
*/ struct xe_vma *vma;
/* Also input, but is updated during the walk*/ /** @curs: The DMA address cursor. */ struct xe_res_cursor *curs; /** @va_curs_start: The Virtual address corresponding to @curs->start */
u64 va_curs_start;
/* Output */ /** @wupd: Walk output data for page-table updates. */ struct xe_walk_update { /** @wupd.entries: Caller provided storage. */ struct xe_vm_pgtable_update *entries; /** @wupd.num_used_entries: Number of update @entries used. */ unsignedint num_used_entries; /** @wupd.updates: Tracks the update entry at a given level */ struct xe_pt_update updates[XE_VM_MAX_LEVEL + 1];
} wupd;
/* Walk state */ /** * @l0_end_addr: The end address of the current l0 leaf. Used for * 64K granularity detection.
*/
u64 l0_end_addr; /** @addr_64K: The start address of the current 64K chunk. */
u64 addr_64K; /** @found_64K: Whether @add_64K actually points to a 64K chunk. */ bool found_64K;
};
/* * For *each level*, we could only have one active * struct xt_pt_update at any one time. Once we move on to a * new parent and page-directory, the old one is complete, and * updates are either already stored in the build tree or in * @wupd->entries
*/ if (likely(upd->parent == parent)) return 0;
upd->parent = parent;
upd->preexisting = true;
if (wupd->num_used_entries == XE_VM_MAX_LEVEL * 2 + 1) return -EINVAL;
if (alloc_entries) {
entry->pt_entries = kmalloc_array(XE_PDES, sizeof(*entry->pt_entries),
GFP_KERNEL); if (!entry->pt_entries) return -ENOMEM;
}
return 0;
}
/* * NOTE: This is a very frequently called function so we allow ourselves * to annotate (using branch prediction hints) the fastpath of updating a * non-pre-existing pagetable with leaf ptes.
*/ staticint
xe_pt_insert_entry(struct xe_pt_stage_bind_walk *xe_walk, struct xe_pt *parent,
pgoff_t offset, struct xe_pt *xe_child, u64 pte)
{ struct xe_pt_update *upd = &xe_walk->wupd.updates[parent->level]; struct xe_pt_update *child_upd = xe_child ?
&xe_walk->wupd.updates[xe_child->level] : NULL; int ret;
ret = xe_pt_new_shared(&xe_walk->wupd, parent, offset, true); if (unlikely(ret)) return ret;
/* * Register this new pagetable so that it won't be recognized as * a shared pagetable by a subsequent insertion.
*/ if (unlikely(child_upd)) {
child_upd->update = NULL;
child_upd->parent = xe_child;
child_upd->preexisting = false;
}
if (likely(!upd->preexisting)) { /* Continue building a non-connected subtree. */ struct iosys_map *map = &parent->bo->vmap;
if (unlikely(xe_child)) {
parent->base.children[offset] = &xe_child->base;
parent->base.staging[offset] = &xe_child->base;
}
/* Does the virtual range requested cover a huge pte? */ if (!xe_pt_covers(addr, next, level, &xe_walk->base)) returnfalse;
/* Does the DMA segment cover the whole pte? */ if (next - xe_walk->va_curs_start > xe_walk->curs->size) returnfalse;
/* null VMA's do not have dma addresses */ if (xe_vma_is_null(xe_walk->vma)) returntrue;
/* if we are clearing page table, no dma addresses*/ if (xe_walk->clear_pt) returntrue;
/* Is the DMA address huge PTE size aligned? */
size = next - addr;
dma = addr - xe_walk->va_curs_start + xe_res_dma(xe_walk->curs);
return IS_ALIGNED(dma, size);
}
/* * Scan the requested mapping to check whether it can be done entirely * with 64K PTEs.
*/ staticbool
xe_pt_scan_64K(u64 addr, u64 next, struct xe_pt_stage_bind_walk *xe_walk)
{ struct xe_res_cursor curs = *xe_walk->curs;
if (!IS_ALIGNED(addr, SZ_64K)) returnfalse;
if (next > xe_walk->l0_end_addr) returnfalse;
/* null VMA's do not have dma addresses */ if (xe_vma_is_null(xe_walk->vma)) returntrue;
/* * For non-compact "normal" 4K level-0 pagetables, we want to try to group * addresses together in 64K-contigous regions to add a 64K TLB hint for the * device to the PTE. * This function determines whether the address is part of such a * segment. For VRAM in normal pagetables, this is strictly necessary on * some devices.
*/ staticbool
xe_pt_is_pte_ps64K(u64 addr, u64 next, struct xe_pt_stage_bind_walk *xe_walk)
{ /* Address is within an already found 64k region */ if (xe_walk->found_64K && addr - xe_walk->addr_64K < SZ_64K) returntrue;
/* * Set the XE_PTE_PS64 hint if possible, otherwise if * this device *requires* 64K PTE size for VRAM, fail.
*/ if (level == 0 && !xe_parent->is_compact) { if (xe_pt_is_pte_ps64K(addr, next, xe_walk)) {
xe_walk->vma->gpuva.flags |=
XE_VMA_PTE_64K;
pte |= XE_PTE_PS64;
} elseif (XE_WARN_ON(xe_walk->needs_64K &&
is_vram)) { return -EINVAL;
}
}
}
ret = xe_pt_insert_entry(xe_walk, xe_parent, offset, NULL, pte); if (unlikely(ret)) return ret;
if (!is_null && !xe_walk->clear_pt)
xe_res_next(curs, next - addr);
xe_walk->va_curs_start = next;
xe_walk->vma->gpuva.flags |= (XE_VMA_PTE_4K << level);
*action = ACTION_CONTINUE;
return ret;
}
/* * Descending to lower level. Determine if we need to allocate a * new page table or -directory, which we do if there is no * previous one or there is one we can completely replace.
*/ if (level == 1) {
walk->shifts = xe_normal_pt_shifts;
xe_walk->l0_end_addr = next;
}
if (!covers)
xe_pt_populate_empty(xe_walk->tile, xe_walk->vm, xe_child);
*child = &xe_child->base;
/* * Prefer the compact pagetable layout for L0 if possible. Only * possible if VMA covers entire 2MB region as compact 64k and * 4k pages cannot be mixed within a 2MB region. * TODO: Suballocate the pt bo to avoid wasting a lot of * memory.
*/ if (GRAPHICS_VERx100(tile_to_xe(xe_walk->tile)) >= 1250 && level == 1 &&
covers && xe_pt_scan_64K(addr, next, xe_walk)) {
walk->shifts = xe_compact_pt_shifts;
xe_walk->vma->gpuva.flags |= XE_VMA_PTE_COMPACT;
flags |= XE_PDE_64K;
xe_child->is_compact = true;
}
/* * Default atomic expectations for different allocation scenarios are as follows: * * 1. Traditional API: When the VM is not in LR mode: * - Device atomics are expected to function with all allocations. * * 2. Compute/SVM API: When the VM is in LR mode: * - Device atomics are the default behavior when the bo is placed in a single region. * - In all other cases device atomics will be disabled with AE=0 until an application * request differently using a ioctl like madvise.
*/ staticbool xe_atomic_for_vram(struct xe_vm *vm)
{ returntrue;
}
if (!xe->info.has_device_atomics_on_smem) returnfalse;
/* * If a SMEM+LMEM allocation is backed by SMEM, a device * atomics will cause a gpu page fault and which then * gets migrated to LMEM, bind such allocations with * device atomics enabled. * * TODO: Revisit this. Perhaps add something like a * fault_on_atomics_in_system UAPI flag. * Note that this also prohibits GPU atomics in LR mode for * userptr and system memory on DGFX.
*/ return (!IS_DGFX(xe) || (!xe_vm_in_lr_mode(vm) ||
(bo && xe_bo_has_single_placement(bo))));
}
/** * xe_pt_stage_bind() - Build a disconnected page-table tree for a given address * range. * @tile: The tile we're building for. * @vma: The vma indicating the address range. * @range: The range indicating the address range. * @entries: Storage for the update entries used for connecting the tree to * the main tree at commit time. * @num_entries: On output contains the number of @entries used. * @clear_pt: Clear the page table entries. * * This function builds a disconnected page-table tree for a given address * range. The tree is connected to the main vm tree for the gpu using * xe_migrate_update_pgtables() and for the cpu using xe_pt_commit_bind(). * The function builds xe_vm_pgtable_update structures for already existing * shared page-tables, and non-existing shared and non-shared page-tables * are built and populated directly. * * Return 0 on success, negative error code on error.
*/ staticint
xe_pt_stage_bind(struct xe_tile *tile, struct xe_vma *vma, struct xe_svm_range *range, struct xe_vm_pgtable_update *entries,
u32 *num_entries, bool clear_pt)
{ struct xe_device *xe = tile_to_xe(tile); struct xe_bo *bo = xe_vma_bo(vma); struct xe_res_cursor curs; struct xe_vm *vm = xe_vma_vm(vma); struct xe_pt_stage_bind_walk xe_walk = {
.base = {
.ops = &xe_pt_stage_bind_ops,
.shifts = xe_normal_pt_shifts,
.max_level = XE_PT_HIGHEST_LEVEL,
.staging = true,
},
.vm = vm,
.tile = tile,
.curs = &curs,
.va_curs_start = range ? range->base.itree.start :
xe_vma_start(vma),
.vma = vma,
.wupd.entries = entries,
.clear_pt = clear_pt,
}; struct xe_pt *pt = vm->pt_root[tile->id]; int ret;
if (range) { /* Move this entire thing to xe_svm.c? */
xe_svm_notifier_lock(vm); if (!xe_svm_range_pages_valid(range)) {
xe_svm_range_debug(range, "BIND PREPARE - RETRY");
xe_svm_notifier_unlock(vm); return -EAGAIN;
} if (xe_svm_range_has_dma_mapping(range)) {
xe_res_first_dma(range->base.dma_addr, 0,
range->base.itree.last + 1 - range->base.itree.start,
&curs);
xe_svm_range_debug(range, "BIND PREPARE - MIXED");
} else {
xe_assert(xe, false);
} /* * Note, when unlocking the resource cursor dma addresses may become * stale, but the bind will be aborted anyway at commit time.
*/
xe_svm_notifier_unlock(vm);
}
xe_walk.needs_64K = (vm->flags & XE_VM_FLAG_64K); if (clear_pt) goto walk_pt;
/** * xe_pt_nonshared_offsets() - Determine the non-shared entry offsets of a * shared pagetable. * @addr: The start address within the non-shared pagetable. * @end: The end address within the non-shared pagetable. * @level: The level of the non-shared pagetable. * @walk: Walk info. The function adjusts the walk action. * @action: next action to perform (see enum page_walk_action) * @offset: Ignored on input, First non-shared entry on output. * @end_offset: Ignored on input, Last non-shared entry + 1 on output. * * A non-shared page-table has some entries that belong to the address range * and others that don't. This function determines the entries that belong * fully to the address range. Depending on level, some entries may * partially belong to the address range (that can't happen at level 0). * The function detects that and adjust those offsets to not include those * partial entries. Iff it does detect partial entries, we know that there must * be shared page tables also at lower levels, so it adjusts the walk action * accordingly. * * Return: true if there were non-shared entries, false otherwise.
*/ staticbool xe_pt_nonshared_offsets(u64 addr, u64 end, unsignedint level, struct xe_pt_walk *walk, enum page_walk_action *action,
pgoff_t *offset, pgoff_t *end_offset)
{
u64 size = 1ull << walk->shifts[level];
/* * If addr or next are not size aligned, there are shared pts at lower * level, so in that case traverse down the subtree
*/
*action = ACTION_CONTINUE; if (!IS_ALIGNED(addr, size)) {
*action = ACTION_SUBTREE;
(*offset)++;
}
if (!IS_ALIGNED(end, size)) {
*action = ACTION_SUBTREE;
(*end_offset)--;
}
return *end_offset > *offset;
}
struct xe_pt_zap_ptes_walk { /** @base: The walk base-class */ struct xe_pt_walk base;
/* Input parameters for the walk */ /** @tile: The tile we're building for */ struct xe_tile *tile;
/* Output */ /** @needs_invalidate: Whether we need to invalidate TLB*/ bool needs_invalidate;
};
/* * Note that we're called from an entry callback, and we're dealing * with the child of that entry rather than the parent, so need to * adjust level down.
*/ if (xe_pt_nonshared_offsets(addr, next, --level, walk, action, &offset,
&end_offset)) {
xe_map_memset(tile_to_xe(xe_walk->tile), &xe_child->bo->vmap,
offset * sizeof(u64), 0,
(end_offset - offset) * sizeof(u64));
xe_walk->needs_invalidate = true;
}
/** * xe_pt_zap_ptes() - Zap (zero) gpu ptes of an address range * @tile: The tile we're zapping for. * @vma: GPU VMA detailing address range. * * Eviction and Userptr invalidation needs to be able to zap the * gpu ptes of a given address range in pagefaulting mode. * In order to be able to do that, that function needs access to the shared * page-table entrieaso it can either clear the leaf PTEs or * clear the pointers to lower-level page-tables. The caller is required * to hold the necessary locks to ensure neither the page-table connectivity * nor the page-table entries of the range is updated from under us. * * Return: Whether ptes were actually updated and a TLB invalidation is * required.
*/ bool xe_pt_zap_ptes(struct xe_tile *tile, struct xe_vma *vma)
{ struct xe_pt_zap_ptes_walk xe_walk = {
.base = {
.ops = &xe_pt_zap_ptes_ops,
.shifts = xe_normal_pt_shifts,
.max_level = XE_PT_HIGHEST_LEVEL,
},
.tile = tile,
}; struct xe_pt *pt = xe_vma_vm(vma)->pt_root[tile->id];
u8 pt_mask = (vma->tile_present & ~vma->tile_invalidated);
if (xe_vma_bo(vma))
xe_bo_assert_held(xe_vma_bo(vma)); elseif (xe_vma_is_userptr(vma))
lockdep_assert_held(&xe_vma_vm(vma)->userptr.notifier_lock);
/** * xe_pt_zap_ptes_range() - Zap (zero) gpu ptes of a SVM range * @tile: The tile we're zapping for. * @vm: The VM we're zapping for. * @range: The SVM range we're zapping for. * * SVM invalidation needs to be able to zap the gpu ptes of a given address * range. In order to be able to do that, that function needs access to the * shared page-table entries so it can either clear the leaf PTEs or * clear the pointers to lower-level page-tables. The caller is required * to hold the SVM notifier lock. * * Return: Whether ptes were actually updated and a TLB invalidation is * required.
*/ bool xe_pt_zap_ptes_range(struct xe_tile *tile, struct xe_vm *vm, struct xe_svm_range *range)
{ struct xe_pt_zap_ptes_walk xe_walk = {
.base = {
.ops = &xe_pt_zap_ptes_ops,
.shifts = xe_normal_pt_shifts,
.max_level = XE_PT_HIGHEST_LEVEL,
},
.tile = tile,
}; struct xe_pt *pt = vm->pt_root[tile->id];
u8 pt_mask = (range->tile_present & ~range->tile_invalidated);
/* Input parameters for the walk */ /** @tile: The tile we're unbinding from. */ struct xe_tile *tile;
/** * @modified_start: Walk range start, modified to include any * shared pagetables that we're the only user of and can thus * treat as private.
*/
u64 modified_start; /** @modified_end: Walk range start, modified like @modified_start. */
u64 modified_end;
/* Output */ /* @wupd: Structure to track the page-table updates we're building */ struct xe_walk_update wupd;
};
/* * Check whether this range is the only one populating this pagetable, * and in that case, update the walk range checks so that higher levels don't * view us as a shared pagetable.
*/ staticbool xe_pt_check_kill(u64 addr, u64 next, unsignedint level, conststruct xe_pt *child, enum page_walk_action *action, struct xe_pt_walk *walk)
{ struct xe_pt_stage_unbind_walk *xe_walk =
container_of(walk, typeof(*xe_walk), base); unsignedint shift = walk->shifts[level];
u64 size = 1ull << shift;
/** * xe_pt_stage_unbind() - Build page-table update structures for an unbind * operation * @tile: The tile we're unbinding for. * @vm: The vm * @vma: The vma we're unbinding. * @range: The range we're unbinding. * @entries: Caller-provided storage for the update structures. * * Builds page-table update structures for an unbind operation. The function * will attempt to remove all page-tables that we're the only user * of, and for that to work, the unbind operation must be committed in the * same critical section that blocks racing binds to the same page-table tree. * * Return: The number of entries used.
*/ staticunsignedint xe_pt_stage_unbind(struct xe_tile *tile, struct xe_vm *vm, struct xe_vma *vma, struct xe_svm_range *range, struct xe_vm_pgtable_update *entries)
{
u64 start = range ? range->base.itree.start : xe_vma_start(vma);
u64 end = range ? range->base.itree.last + 1 : xe_vma_end(vma); struct xe_pt_stage_unbind_walk xe_walk = {
.base = {
.ops = &xe_pt_stage_unbind_ops,
.shifts = xe_normal_pt_shifts,
.max_level = XE_PT_HIGHEST_LEVEL,
.staging = true,
},
.tile = tile,
.modified_start = start,
.modified_end = end,
.wupd.entries = entries,
}; struct xe_pt *pt = vm->pt_root[tile->id];
/* * If rebind, we have to invalidate TLB on !LR vms to invalidate * cached PTEs point to freed memory. On LR vms this is done * automatically when the context is re-enabled by the rebind worker, * or in fault mode it was invalidated on PTE zapping. * * If !rebind, and scratch enabled VMs, there is a chance the scratch * PTE is already cached in the TLB so it needs to be invalidated. * On !LR VMs this is done in the ring ops preceding a batch, but on * LR, in particular on user-space batch buffer chaining, it needs to * be done here.
*/ if ((!pt_op->rebind && xe_vm_has_scratch(vm) &&
xe_vm_in_lr_mode(vm)))
pt_update_ops->needs_invalidation = true; elseif (pt_op->rebind && !xe_vm_in_lr_mode(vm)) /* We bump also if batch_invalidate_tlb is true */
vm->tlb_flush_seqno++;
/* * We can't skip the invalidation if we are removing PTEs that span more * than the range, do some checks to ensure we are removing PTEs that * are invalid.
*/
if (pt_op->num_entries > 1) returnfalse;
if (update->pt->level == 0) returntrue;
if (update->pt->level == 1) return xe_svm_range_size(range) >= SZ_2M;
if (!xe_vma_has_no_bo(vma) && !xe_vma_bo(vma)->vm) {
dma_resv_add_fence(xe_vma_bo(vma)->ttm.base.resv, fence,
pt_update_ops->wait_vm_bookkeep ?
DMA_RESV_USAGE_KERNEL :
DMA_RESV_USAGE_BOOKKEEP); if (fence2)
dma_resv_add_fence(xe_vma_bo(vma)->ttm.base.resv, fence2,
pt_update_ops->wait_vm_bookkeep ?
DMA_RESV_USAGE_KERNEL :
DMA_RESV_USAGE_BOOKKEEP);
} /* All WRITE_ONCE pair with READ_ONCE in xe_vm_has_valid_gpu_mapping() */
WRITE_ONCE(vma->tile_present, vma->tile_present | BIT(tile->id)); if (invalidate_on_bind)
WRITE_ONCE(vma->tile_invalidated,
vma->tile_invalidated | BIT(tile->id)); else
WRITE_ONCE(vma->tile_invalidated,
vma->tile_invalidated & ~BIT(tile->id));
vma->tile_staged &= ~BIT(tile->id); if (xe_vma_is_userptr(vma)) {
lockdep_assert_held_read(&vm->userptr.notifier_lock);
to_userptr_vma(vma)->userptr.initial_bind = true;
}
/* * Kick rebind worker if this bind triggers preempt fences and not in * the rebind worker
*/ if (pt_update_ops->wait_vm_bookkeep &&
xe_vm_in_preempt_fence_mode(vm) &&
!current->mm)
xe_vm_queue_rebind_worker(vm);
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.