xe_gt_sriov_...fig_set_ggtt(9)
β¨ xe_gt_sriov_pf_config_set_ggtt β¨
Okay bestie, so this is a page from the Kernel API Manual β the xe_gt_sriov_pf_config_set_ggtt(9) one β and honestly? It's a little baddie of a function that hands out GGTT space to your VFs. Let's get into it π
πΈ NAME πΈ
xe_gt_sriov_pf_config_set_ggtt β Provision VF with GGTT space.
Like, it's the function that gives a virtual function its own slice of GGTT. That's the whole vibe. π
β SYNOPSIS β
int xe_gt_sriov_pf_config_set_ggtt (struct xe_gt *gt , unsigned int vfid
, u64 size );
π¦ ARGUMENTS π¦
gtβ thexe_gt(can't be media) π ββοΈ like, that's a hard no, it literally cannot be media, okay?vfidβ the VF identifier, aka which virtual function we're blessing with config β¨sizeβ requested GGTT size, the amount of GGTT you're asking for, no cap
π DESCRIPTION π
So here's the tea π: if vfid represents PF, then the function will change PF's spare GGTT config. That's it, that's the behavior β PF's spare GGTT config gets changed, periodt.
Heads up bestie π«Ά this function can only be called on PF. Not PF-adjacent, not "well technically," no β PF only. The vibe check is strict here π
π₯ RETURN π₯
0 on success or a negative error code on failure. That's the classic Unix deal β zero means slay, negative means it's giving problems π
π SEE ALSO π
All the siblings, the whole friend group, the entire group chat β every single one of them π§ββοΈ:
- Kernel file
./drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c xe_gt_sriov_pf_config_get_ggtt(9)xe_gt_sriov_pf_config_bulk_set_ggtt(9)xe_gt_sriov_pf_config_set_fair_ggtt(9)xe_gt_sriov_pf_config_ggtt_save(9)xe_gt_sriov_pf_config_ggtt_restore(9)xe_gt_sriov_pf_config_get_ctxs(9)xe_gt_sriov_pf_config_set_ctxs(9)xe_gt_sriov_pf_config_bulk_set_ctxs(9)xe_gt_sriov_pf_config_set_fair_ctxs(9)xe_gt_sriov_pf_config_get_dbs(9)xe_gt_sriov_pf_config_set_dbs(9)xe_gt_sriov_pf_config_bulk_set_dbs(9)xe_gt_sriov_pf_config_set_fair_dbs(9)xe_gt_sriov_pf_config_get_lmem(9)xe_gt_sriov_pf_config_set_lmem(9)xe_gt_sriov_pf_config_bulk_set_lmem_locked(9)xe_gt_sriov_pf_config_bulk_set_lmem(9)xe_gt_sriov_pf_config_get_lmem_locked(9)xe_gt_sriov_pf_config_set_lmem_locked(9)xe_gt_sriov_pf_config_get_lmem_obj(9)xe_gt_sriov_pf_config_set_fair_lmem(9)xe_gt_sriov_pf_config_set_fair(9)xe_gt_sriov_pf_config_set_exec_quantum_locked(9)xe_gt_sriov_pf_config_set_exec_quantum(9)xe_gt_sriov_pf_config_get_exec_quantum_locked(9)xe_gt_sriov_pf_config_get_exec_quantum(9)xe_gt_sriov_pf_config_bulk_set_exec_quantum_locked(9)xe_gt_sriov_pf_config_set_groups_exec_quantums(9)xe_gt_sriov_pf_config_get_groups_exec_quantums(9)xe_gt_sriov_pf_config_set_preempt_timeout_locked(9)xe_gt_sriov_pf_config_set_preempt_timeout(9)xe_gt_sriov_pf_config_get_preempt_timeout_locked(9)xe_gt_sriov_pf_config_get_preempt_timeout(9)xe_gt_sriov_pf_config_bulk_set_preempt_timeout_locked(9)xe_gt_sriov_pf_config_set_groups_preempt_timeouts(9)xe_gt_sriov_pf_config_get_groups_preempt_timeouts(9)xe_gt_sriov_pf_config_set_sched_priority(9)xe_gt_sriov_pf_config_get_sched_priority(9)xe_gt_sriov_pf_config_force_sched_priority_locked(9)xe_gt_sriov_pf_config_set_fair_sched(9)xe_gt_sriov_pf_config_set_threshold(9)xe_gt_sriov_pf_config_get_threshold(9)xe_gt_sriov_pf_config_release(9)xe_gt_sriov_pf_config_sanitize(9)xe_gt_sriov_pf_config_push(9)xe_gt_sriov_pf_config_is_empty(9)xe_gt_sriov_pf_config_save(9)xe_gt_sriov_pf_config_restore(9)xe_gt_sriov_pf_config_init(9)xe_gt_sriov_pf_config_restart(9)xe_gt_sriov_pf_config_print_ggtt(9)xe_gt_sriov_pf_config_print_ctxs(9)xe_gt_sriov_pf_config_print_dbs(9)xe_gt_sriov_pf_config_print_lmem(9)xe_gt_sriov_pf_config_print_available_ggtt(9)
βΏ k bye ily, go provision some GGTT βΏ
This iconic little number lives in <pink>./drivers/gpu/drm/xe</pink> and is dated <cyan>October 2026</cyan> β same date on the tippy-top header and the footer, so it's giving consistency π And yes, both the top and bottom of the original read xe_gt_sriov_...fig_set_ggtt(9)`, which is just the page being extra about itself ππ«Ά
π¦ 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