xe_validation_retry_on_oom(9)
π xe_validation_retry_on_oom β the Kernel API Manual, bestie edition β¨
okay so real talk, this one lives in the Kernel API Manual and it's called xe_validation_retry_on_oom(9) and it does exactly one dramatic thing: it gives your transaction a second chance when memory goes poof. π«Ά
πΈ NAME πΈ
xe_validation_retry_on_oom β Retry on oom in an xe_validaton transaction
not me pointing out that "xe_validaton" is their spelling, not mine π i'm just the messenger, i don't edit the lore
β¨ SYNOPSIS β¨
xe_validation_retry_on_oom (_ctx , _ret );
π ARGUMENTS π
_ctxβ Pointer to thexe_validation_ctxπ like, the whole context of your validation situation_retβ The current error value, possibly holding-ENOMEMπ this is the little guy that tells you whether you ran out of memory
π¦ DESCRIPTION π¦
Use this in a way similar to drm_exec_retry_on_contention. π«
So here's the tea: if _ret contains -ENOMEM, the transaction gets restarted once β and it's restarted in a way that blocks other transactions and allows exhastive eviction. π₯
(yes, "exhastive" is exactly how it's written in the original, she's built different, i'm not touching it π)
But β and this is the important part bestie β if the transaction was already restarted once, Just return the -ENOMEM. no third chances, no extra chaos, we're done. π
It may also set _ret to -EINTR if it's not retrying and waits are interruptible. β
π¨ and the big one: this may only be used within a drm_exec_until_all_locked loop. like, that's the rule, that's the vibe check, do not freelance this one π
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/xe/xe_validation.hπ xe_validation_lockdep(9)struct xe_validation_device(9)struct xe_val_flags(9)struct xe_validation_ctx(9)xe_validation_device_init(9)xe_validation_guard(9)
mwah π that's the whole page, go forth and retry responsibly. this icon was brought to you by ./drivers/gpu/drm/xe, dated October 2026 β slay, see you in the next one ππ¦β¨
π¦ 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