xe_lmtt_prepare_pages(9)
π xe_lmtt_prepare_pages(9) β Kernel API Manual π
okay so bestie, this is the xe_lmtt_prepare_pages page from the Kernel API Manual, and it's literally giving βletβs make some LMTT page tables for a VFβ energy. no cap.
β¨ NAME β¨
xe_lmtt_prepare_pages β Create VF's LMTT Page Tables.
πΈ SYNOPSIS πΈ
int xe_lmtt_prepare_pages (struct xe_lmtt *lmtt , unsigned int vfid ,
u64 range );
π ARGUMENTS π
lmttβ thexe_lmttto update. thatβs the main character struct, periodt.vfidβ the VF identifier (1-based). yes, weβre counting from 1, bestie.rangeβ top range of LMEM offset to be supported. itβs the ceiling, the limit, the βhow far are we goingβ vibes.
π¦ DESCRIPTION π¦
okay so what this function does is create empty LMTT page tables for the given VF, so it can support up to maximum #range LMEM offset. itβs giving βsetting up the scaffoldingβ energy, fr fr.
the LMTT page tables created by this function must be released using the xe_lmtt_drop_pages function. like, do not just leave them lying around β thatβs not the vibe.
π NOTES π
π¨ vibe check: this function shall be called only after successful LMTT initialization. See xe_lmtt_init.
β RETURN β
0 on success or a negative error code on failure. slay when it works, negative error code when it doesnβt. π
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/xe/xe_lmtt.cβ Local Memory Translation Table(9) xe_lmtt_page_size(9)xe_lmtt_init(9)xe_lmtt_init_hw(9)xe_lmtt_invalidate_hw(9)xe_lmtt_populate_pages(9)xe_lmtt_drop_pages(9)xe_lmtt_estimate_pt_size(9)
made with π from source/version ./drivers/gpu/drm/xe, dated October 2026, and the page is xe_lmtt_prepare_pages(9) β byeee, go build those page tables responsibly π§β¨
π¦ 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