xe_validation_exec_lock(9)
π xe_validation_exec_lock(9) π
ok so bestie, welcome to the Kernel API Manual β today's episode of "functions that exist and you should know about" is xe_validation_exec_lock, and honestly? she's a little helper with main character energy. let's get into it π«Ά
β¨ NAME β¨
xe_validation_exec_lock β literally just here to do a drm_gpuvm_exec_lock inside a validation transaction. that's the whole gig, no cap π
β¨ SYNOPSIS β¨
int xe_validation_exec_lock (struct xe_validation_ctx *ctx , struct
drm_gpuvm_exec *vm_exec , struct xe_validation_device *val );
look at her go π a whole int return type and everything.
β¨ ARGUMENTS β¨
ctxβ an uninitializedxe_validation_ctx. yes bestie, uninitialized on purpose, the function handles the init itself, don't come in here pre-initialized πvm_execβ an initializedstruct vm_exec. this one does need to be ready to go, so get her set up first πvalβ the validation domain. that's the vibe check zone for this whole operation π¦
β¨ DESCRIPTION β¨
okay so here's the tea β β drm_gpuvm_exec_lock initializes its own drm_exec transaction internally as part of doing its thing. which is adorable, but it means it doesn't really, like, lend itself to being used with xe_validation_ctx_init. mismatched energy, you know? π
so the fix is this helper: you hand it an uninitialized xe_validation_ctx, and it calls drm_gpuvm_exec_lock for you, with OOM retry. that's the whole point of her existence, and she ate π₯
β¨ RETURN β¨
0on success β slay, we love a clean return π- a negative error code on failure β not slay, but at least you know what happened π₯²
β¨ SEE ALSO β¨
- Kernel file
./drivers/gpu/drm/xe/xe_validation.cβ go read the source, iykyk π xe_validation_assert_exec(9)xe_validation_ctx_init(9)xe_validation_ctx_fini(9)xe_validation_should_retry(9)
the whole validation friend group, fr fr π«Άβ¨
and that's the page, bestie! π this little icon was brought to you by the good people over in ./drivers/gpu/drm/xe, dated October 2026 β write that down, periodt ππ
π¦ 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