xe_vm_validate_rebind(9)
π xe_vm_validate_rebind(9) π
Okay bestie, welcome to the Kernel API Manual β this one is lowkey iconic: it validates buffer objects and rebinds vmas, and it wants you to understand every single detail. No skimming, fr fr. π«Ά
πΈ NAME πΈ
xe_vm_validate_rebind β validate buffer objects and rebind vmas. Thatβs the whole vibe check. β¨
β¨ SYNOPSIS β¨
int xe_vm_validate_rebind (struct xe_vm *vm , struct drm_exec *exec ,
unsigned int num_fences );
π ARGUMENTS π
vmβ the vm for which we are rebinding. Main character energy, honestly. πexecβ thestruct drm_execwith the locked GEM objects. Locked and loaded, iykyk. π₯num_fencesβ the number of fences to reserve for the operation, and that is not counting rebinds and validations. Periodt. π
π¦ DESCRIPTION π¦
So basically: this validates all evicted gem objects and rebinds their vmas. Slay. π
Heads up though β rebindings may cause evictions, which means the validation-rebind sequence is rerun until there are no more objects to validate. Itβs giving βkeep going until the vibe is immaculate.β π¦
β RETURN β
0 on success, negative error code on error. No cap. π
In particular, it may return -EINTR or -ERESTARTSYS if interrupted, and -EDEADLK if the drm_exec transaction needs to be restarted. Big βtry again, bestieβ energy. π
π SEE ALSO π
- Kernel file:
./drivers/gpu/drm/xe/xe_vm.c xe_vm_drm_exec_lock(9)xe_vm_remove_compute_exec_queue(9)xe_vm_kill(9)xe_vm_bump_lru(9)xe_vm_resume_rebind_worker(9)xe_vm_add_fault_entry_pf(9)xe_vm_range_rebind(9)xe_vm_range_unbind(9)xe_vma_mem_attr_copy(9)xe_vm_lock_vma(9)xe_vm_create_scratch(9)xe_vm_find_vma_by_addr(9)xe_vma_has_default_mem_attrs(9)struct xe_vma_lock_and_validate_flags(9)xe_vm_bind_kernel_bo(9)xe_vm_lock(9)xe_vm_unlock(9)xe_vm_invalidate_vma_submit(9)xe_vm_invalidate_vma(9)xe_vma_need_vram_for_atomic(9)xe_vm_alloc_madvise_vma(9)xe_vm_find_cpu_addr_mirror_vma_range(9)xe_vm_alloc_cpu_addr_mirror_vma(9)xe_vm_add_exec_queue(9)xe_vm_remove_exec_queue(9)
Mwah π β source: ./drivers/gpu/drm/xe, dated October 2026, and the page is xe_vm_validate_rebind(9). Bye bestie, go validate and rebind responsibly π«Άβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms