xe_ggtt_read_pte(9)
π xe_ggtt_read_pte β a Kernel API Manual moment (section 9, bestie)
okay so we're in the kernel API manual, section 9, and today's main character is xe_ggtt_read_pte. she reads a PTE out of the GGTT. that's it. that's the whole vibe. and honestly? iconic. π
β¨ NAME β¨
xe_ggtt_read_pte β literally just reads a PTE from the GGTT, no cap π
π¦ SYNOPSIS π¦
u64 xe_ggtt_read_pte (struct xe_ggtt *ggtt , u64 offset );
that's her signature. u64 in, u64 out, one struct xe_ggtt *, one u64 offset. copy it exactly, don't freestyle it, i'm begging π«Ά
πΈ ARGUMENTS πΈ
ggttβ thexe_ggttin question. yes, the struct. the whole point. β¨offsetβ the offset you wanna read the mapping for. like, which one. be specific. π
π₯ DESCRIPTION π₯
so the way that this works is: it reads a PTE from the GGTT. that's the whole job, and she does it flawlessly.
who's using it? two whole situations, and they're both valid:
- testcases β the testing girlies. they need to peek at a PTE and this is the function for it. π§ͺ
- display β reading out an inherited bios FB. yep, inheriting an FB from the bios and needing to actually see what's in there. display said "i'll take it from here" and here we are. π₯οΈ
ngl this is a short one β but short and correct ate, and that's on periodt. don't add behaviour that isn't here, i'm watching π
β SEE ALSO β
the whole friend group, and yes you need to know all of them, i don't make the rules π
- the kernel file
./drivers/gpu/drm/xe/xe_ggtt.cβ where she lives π - Global Graphics Translation Table (GGTT)(9)
struct xe_ggtt_node(9)struct xe_ggtt_pt_ops(9)struct xe_ggtt(9)xe_ggtt_start(9)xe_ggtt_size(9)xe_ggtt_alloc(9)xe_ggtt_init_early(9)xe_ggtt_node_remove(9)xe_ggtt_init(9)xe_ggtt_shift_nodes(9)xe_ggtt_insert_node(9)xe_ggtt_node_pt_size(9)xe_ggtt_map_bo(9)xe_ggtt_map_bo_unlocked(9)xe_ggtt_insert_node_transform(9)xe_ggtt_insert_bo_at(9)xe_ggtt_insert_bo(9)xe_ggtt_remove_bo(9)xe_ggtt_largest_hole(9)xe_ggtt_assign(9)xe_ggtt_node_save(9)xe_ggtt_node_load(9)xe_ggtt_dump(9)xe_ggtt_print_holes(9)xe_ggtt_encode_pte_flags(9)xe_ggtt_node_addr(9)xe_ggtt_node_size(9)
π reminder bestie: this page is from./drivers/gpu/drm/xe, dated October 2026, and it'sxe_ggtt_read_pte(9) β that's the source, the date, and the page name all in one cute little sign-off. screenshot it, memorize it, slay. ππβ¨
π¦ 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