xe_page_rec...reate_prl_bo(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 4K BO out of the tile reclaim pool β€” yes, exactly 4K, 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 fence signals β€” 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_suballoc pointer. 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:


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