xe_vm_clear_validating(9)
β¨ xe_vm_clear_validating(9) β¨
okay so bestie, welcome to the Kernel API Manual π
this one's a little kernel function called xe_vm_clear_validating(9) and it's giving "small function, big responsibilities" energy, ngl.
π NAME π
xe_vm_clear_validating β unregister this task as currently making bos resident π«Ά
πΈ SYNOPSIS πΈ
void xe_vm_clear_validating (struct xe_vm *vm , bool allow_res_evict );
π¦ ARGUMENTS π¦
vmβ pointer to the vm, orNULL(yes,NULLis allowed, she's flexible like that πββοΈ)allow_res_evictβ eviction from vm was allowed. Must be set to the same value as forxe_vm_set_validation. like, must must, no cap, don't be out here freelancing with a different value π₯
π DESCRIPTION π
So the DESCRIPTION says: register this task as currently making bos resident for the vm β¨. It's intended to avoid eviction by the same task of shared bos bound to the vm β basically it's the "hey, this is my stuff, don't touch it" note you leave for yourself so you don't accidentally evict your own things π.
And the crucial bit: call with the vm's resv lock held π periodt. If you're not holding it, you're not doing it right, and that's the whole vibe check.
π tiny heads-up bestie: the NAME section up there says unregister, and the DESCRIPTION says register. I'm not gonna smooth that over for you β that's literally what the page says, I'm just the messenger π read it however the source does, iykyk.
π SEE ALSO π
Kernel file ./drivers/gpu/drm/xe/xe_vm.h and honestly the whole friend group:
MAX_FAULTS_SAVED_PER_VM(9)πxe_vm_has_scratch(9)gpuvm_to_vm(9)Provide accessors for vma members to facilitate easy change of(9)(yes that's the whole name, iconic honestly π)to_userptr_vma(9)xe_vm_reactivate_rebind(9)xe_vm_resv(9)xe_vm_assert_held(9)xe_vm_set_validating(9)xe_vm_is_validating(9)xe_vm_set_validation_exec(9)xe_vm_validation_exec(9)xe_vm_has_valid_gpu_mapping(9)
aaaand that's the page!! π she lives in ./drivers/gpu/drm/xe, dated October 2026, and goes by xe_vm_clear_validating(9) β go forth and clear those validatings responsibly bestie, lock held, matching allow_res_evict value, slay πβ¨
π¦ 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