xe_gt_sriov...ulk_set_ctxs(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… xe_gt_sriov_pf_config_bulk_set_ctxs β€” Kernel API Manual energy ✨

Okay so bestie, picture this: you're the Physical Function and you've got a whole squad of Virtual Functions sitting there with no GuC context IDs and honestly? Tragic. This function is the group-chat invite that hands out context IDs to a whole batch of VFs at once, no cap. πŸŽ€


✨ NAME ✨

xe_gt_sriov_pf_config_bulk_set_ctxs β€” Provision many VFs with GuC context IDs. Like, many many. Bulk mode. Group project but everyone actually shows up. 🫢


🌸 SYNOPSIS 🌸

int xe_gt_sriov_pf_config_bulk_set_ctxs (struct xe_gt *gt , unsigned int
vfid , unsigned int num_vfs , u32 num_ctxs );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • gt β€” the xe_gt. Your Graphics Tile. The main character of this whole situation, lowkey.
  • vfid β€” starting VF identifier. Where the parade begins, bestie. πŸŽ‰
  • num_vfs β€” number of VFs to provision. How many besties are getting a gift in this round.
  • num_ctxs β€” requested number of GuC contexts IDs, and here's the kicker: 0 to release. Zero means "actually, take it back," and that's iconic of it. πŸ’…

πŸ’– DESCRIPTION πŸ’–

This function can only be called on PF. That's the whole rule, fr fr β€” no sneaky VF behavior allowed, this is PF-only territory, periodt.


πŸ”₯ RETURN πŸ”₯

0 on success, or a negative error code on failure. That's it, that's the vibe check. 😭


πŸ‘‘ SEE ALSO πŸ‘‘

The source lives in the Kernel file ./drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c and honestly the rest of the extended universe is gigantic, so buckle up buttercup πŸ’€:

xe_gt_sriov_pf_config_get_ggtt(9), xe_gt_sriov_pf_config_set_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_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)

Like I said. Gigantic. iykyk 🌈


Mwah πŸ’‹ β€” this page came straight out of the Kernel API Manual, from the source tree at ./drivers/gpu/drm/xe, dated October 2026. Go provision those VFs, bestie, you're gonna slay. 🧚⭐

πŸ“¦ where this page comes from