xe_pt_zap_ptes_range(9)
π xe_pt_zap_ptes_range(9) β like, the whole vibe
okay so bestie, welcome to the Kernel API Manual β¨ this one lives in section 9 and it's all about zapping stuff (don't worry, it's a good kind of zapping, zeroing gpu ptes, very main character energy π )
β¨ NAME β¨
xe_pt_zap_ptes_range β zap (zero) gpu ptes of a SVM range π§
Like literally, it zeroes out gpu ptes across a whole SVM range. That's the whole job. Slay.
πΈ SYNOPSIS πΈ
bool xe_pt_zap_ptes_range (struct xe_tile *tile , struct xe_vm *vm ,
struct xe_svm_range *range );
π ARGUMENTS π
tileβ the tile we're zapping for, bestie. that's the one.vmβ the VM we're zapping for. yes, also that one.rangeβ the SVM range we're zapping for. it's giving very consistent, honestly π«Ά
π¦ DESCRIPTION π¦
okay so here's the lore π β SVM invalidation needs to be able to zap the gpu ptes of a given address range. like, it's non-negotiable, it's the whole plot. and to actually pull that off, this function needs access to the shared page-table entries, so it can either clear the leaf PTEs or clear the pointers to lower-level page-tables. those are the two moves it's got, and it ate with both π₯
β οΈ but listen β the caller is required to hold the SVM notifier lock. that's not a suggestion, that's not a vibe, that's a hard requirement. don't come for this function without it, fr fr π
β RETURN β
it returns whether ptes were actually updated and a TLB invalidation is required. so like, a bool that tells you "did I do something and do you need to go flush things now" π useful.
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/xe/xe_pt.c xe_pt_create(9)xe_pt_populate_empty(9)xe_pt_shift(9)xe_pt_destroy(9)xe_pt_clear(9)Pagetable building(9)struct xe_pt_stage_bind_walk(9)xe_pt_stage_bind(9)xe_pt_nonshared_offsets(9)xe_pt_zap_ptes(9)xe_pt_stage_unbind(9)xe_pt_update_ops_prepare(9)xe_pt_update_ops_run(9)xe_pt_update_ops_fini(9)xe_pt_update_ops_abort(9)
and that's the page, bestie π go forth and zap responsibly β¨
this whole thing came to you from ./drivers/gpu/drm/xe, dated October 2026 β mwah, take care, iykyk ππ
π¦ 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