xe_exec_queu...st_fence_set(9)
π xe_exec_queu...st_fence_set β Kernel API Manual β¨
okay so bestie, welcome to the kernel API manual for xe_exec_queu...st_fence_set(9) π yes the title is truncated, no that's not a typo, that's just how the manpage gods roll, iykyk π
πΈ NAME πΈ
xe_exec_queue_tlb_inval_last_fence_set β literally sets the last fence for TLB invalidation, that's the whole vibe π¦
β¨ SYNOPSIS β¨
void xe_exec_queue_tlb_inval_last_fence_set (struct xe_exec_queue *q ,
struct xe_vm *vm , struct dma_fence *fence , unsigned int type );
return type is void, so likeβ¦ she doesn't return anything, she just does it, main character energy π
π ARGUMENTS π
qβ the exec queue π« like, the queue we're doing this tovmβ the VM that the engine does a bind for πfenceβ the fence π«Ά yes. that one.typeβ either primary or media GT β pick one, bestie, those are the options
π DESCRIPTION π
so what she does is: set the last fence for the tlb invalidation type on the queue π₯ that's it, that's the job.
important part, don't skip this π β it increases the reference count for fence, which means when you're closing the queue you gotta call xe_exec_queue_tlb_inval_last_fence_put. not optional, not a suggestion, that's the cleanup rule, periodt π
fr fr: set it β refcount goes up β put it when the queue closes. that's the contract π§
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/xe/xe_exec_queue.cπ Execution Queue(9)Multi Queue Group(9)xe_exec_queue_get_lrc(9)xe_exec_queue_lrc(9)xe_exec_queue_create(9)xe_exec_queue_create_class(9)xe_exec_queue_create_bind(9)xe_exec_queue_destroy(9)xe_exec_queue_fini(9)xe_exec_queue_assign_name(9)xe_exec_queue_lookup(9)xe_exec_queue_device_get_max_priority(9)xe_exec_queue_set_property_ioctl(9)xe_exec_queue_create_ioctl(9)xe_exec_queue_get_property_ioctl(9)xe_exec_queue_is_lr(9)xe_exec_queue_is_idle(9)xe_exec_queue_update_run_ticks(9)xe_exec_queue_kill(9)xe_exec_queue_destroy_ioctl(9)xe_exec_queue_last_fence_put(9)xe_exec_queue_last_fence_put_unlocked(9)xe_exec_queue_last_fence_get(9)xe_exec_queue_last_fence_get_for_resume(9)xe_exec_queue_last_fence_set(9)xe_exec_queue_tlb_inval_last_fence_put(9)xe_exec_queue_tlb_inval_last_fence_put_unlocked(9)xe_exec_queue_tlb_inval_last_fence_get(9)xe_exec_queue_contexts_hwsp_rebase(9)
and that's the whole page, bestie πΈ no cap, you now know more about TLB invalidation last fences than most people ever will π
π from the ./drivers/gpu/drm/xe girlies, dated October 2026, signed off as xe_exec_queu...st_fence_set(9) ππ
β¨
π¦ 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