xe_page_rec...reate_prl_bo(9)
π xe_page_reclaim_create_prl_bo(9) β like, the Kernel API Manual bestie β¨
okay so this is a page out of the Kernel API Manual and it's genuinely iconic β it's all about backing a PRL with a suballocated GGTT BO. yes I said GGTT BO. stay with me, we're gonna slay this π
πΈ NAME πΈ
xe_page_reclaim_create_prl_bo β the one that backs a PRL with a suballocated GGTT BO. that's the whole vibe, no cap π
β¨ SYNOPSIS β¨
struct drm_suballoc * xe_page_reclaim_create_prl_bo (struct xe_tlb_inval
*tlb_inval , struct xe_page_reclaim_list *prl , struct
xe_tlb_inval_fence *fence );
yeah she's a little wide, that's just how the signature eats π copy it exactly, don't come for me about the line breaks.
π«Ά ARGUMENTS π«Ά
tlb_invalβ the TLB invalidation frontend that's associated with the request. like, this is the frontend the request is vibing with.prlβ the page reclaim list data that the bo will copy from. it's giving source material πfenceβ the tlb invalidation fence that the page reclaim action is paired to. they're linked, they're a duo, they're main character energy together π¦
π₯ DESCRIPTION π₯
okay so here's the tea β β what it does is:
- Suballocates a
4KBO out of the tile reclaim pool β yes, exactly4K, not a byte more, she's precise. - copies the PRL CPU copy into the BO β the CPU copy literally moves in, keys and all π
- and queues the buffer for release when
fencesignals β so the buffer waits, patiently, and the second that fence signals it's out. bye bestie π
periodt. that's the whole operation.
β RETURN β
- On success β you get a
struct drm_suballocpointer. slay, we love a win π - On failure β you get
ERR_PTR. sad girl hours, check it with your error-checking macros π
π SEE ALSO π
go read the actual kernel file, iykyk:
- Kernel file
./drivers/gpu/drm/xe/xe_page_reclaim.c
and the whole friend group:
xe_page_reclaim_skip(9)xe_page_reclaim_list_invalidate(9)xe_page_reclaim_list_init(9)xe_page_reclaim_list_alloc_entries(9)xe_guc_page_reclaim_done_handler(9)
and that's the page!! shoutout to the source, ./drivers/gpu/drm/xe, and the date stamp, October 2026 β write it in your journal, bestie πβ¨π
π¦ 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