xe_ggtt_init_early(9)
π
xe_ggtt_init_early (9) β from the Kernel API Manual, bestie π
okay so like, the manual name is literally right there in the title: Kernel API Manual, section 9. we're in the kernel docs now, put your hair up, we're getting technical. β¨
πΈ NAME πΈ
xe_ggtt_init_early β Early GGTT initialization, no cap π
β¨ SYNOPSIS β¨
int xe_ggtt_init_early (struct xe_ggtt *ggtt );
that's it. one function, one argument, it's giving "small but mighty" π¦
π ARGUMENTS π
ggttβ thestruct xe_ggttthat's about to get initialized. that's the one, that's the whole argument, icl it's very low-maintenance π
π DESCRIPTION π
okay so the whole vibe here is: this lets you create new mappings usable by the GuC. GuC bestie gets access, she's thriving, she's slay. π
but β and this is the part you cannot skip β those mappings are not usable by the HW engines. nope. not yet. not today. because it doesn't have scratch and there's no initial clear done to it yet. π that's the whole thing, that's the situation.
that stuff β the scratch, the initial clear β happens later, in the regular, non-early GGTT initialization. so like, this is the trailer, not the movie. the appetizer, not the entrΓ©e. the early one. iykyk π§
β RETURN β
0on success π- a negative error code on failure π
that's it. classic kernel binary. no notes. π«Ά
π¦ SEE ALSO π¦
the whole friend group, gathered in one place, fr fr:
- Kernel file
./drivers/gpu/drm/xe/xe_ggtt.c 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_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_read_pte(9)xe_ggtt_node_addr(9)xe_ggtt_node_size(9)
like i said. the whole group chat. π
ok real talk β this one's an early init. if you're expecting the HW engines to be able to touch those mappings, they can't, not yet. no scratch, no initial clear. read the DESCRIPTION again bestie, i'm serious π
and that's a wrap!! π this came out of ./drivers/gpu/drm/xe, dated October 2026, and it's the xe_ggtt_init_early(9) page from the Kernel API Manual β bye, love u, go read xe_ggtt_init(9) next ππ
π¦ 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