xe_lmtt_populate_pages(9)
π xe_lmtt_populate_pages(9) β like, the whole kernel API manual but make it make sense
okay bestie, welcome to another episode of "kernel devs wrote a manual page and we're gonna make it cute." This one is xe_lmtt_populate_pages(9) from the Kernel API Manual, and yes it's a function, yes it takes four args, and no we're not skipping any of them π
β¨ NAME β¨
xe_lmtt_populate_pages β literally just: update the VF's LMTT Page Table Entries. That's the whole vibe check π
πΈ SYNOPSIS πΈ
int xe_lmtt_populate_pages (struct xe_lmtt *lmtt , unsigned int vfid ,
struct xe_bo *bo , u64 offset );
she returns an int, she takes four things, that's her whole personality β¨
π¦ ARGUMENTS π¦
lmttβ thestruct xe_lmtt *we're gonna update. the main character, honestly πvfidβ the VF identifier, and heads up it's 1-based so don't come at her with a 0 πboβ the buffer object with an LMEM allocation that's getting mapped. she's the backstore, she's booked and busy πoffsetβ the offset whereboshould be mapped. like, where she sits. assigned seating fr fr πͺ
π DESCRIPTION π
so what does she actually do? This function updates the VF's LMTT entries so they use the given buffer object as a backstore. That's it, that's the flex. She's wiring up the translation table to point at your buffer object, and she does it with main character energy β¨
π NOTES π
the one rule, bestie: this function shall be called only after a successful preparation of the VF's LMTT Page Tables. no shortcuts, no "close enough", no vibes-based timing π
See xe_lmtt_prepare for the prep step β do that first or you're gonna have a bad time π
β RETURN β
0 on success, or a negative error code on failure. that's it. no in-between, no "it's complicated" π
π 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_prepare_pages(9)xe_lmtt_drop_pages(9)xe_lmtt_estimate_pt_size(9)
like, read the whole family, they're all iconic in their own way π«Ά
and that's the page!! sign-off time: this little beauty lives out of ./drivers/gpu/drm/xe, stamped October 2026, and she's officially xe_lmtt_populate_pages(9). iykyk π§π no cap, go map some pages π
π¦ 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