xe_gt_sriov_pf_policy_init(9)
β¨ xe_gt_sriov_pf_policy_init(9) β¨
okay bestie, welcome to the Kernel API Manual π
β yes, that's the whole vibe, we're in the Kernel API Manual today and this page is literally called xe_gt_sriov_pf_policy_init(9). Buckle up, it's a short one and honestly kind of iconic for it π
πΈ NAME πΈ
xe_gt_sriov_pf_policy_init β Initializes the SW state of the PF policies. that's it. that's the whole job. slay π
ngl the name is a mouthful, but it's giving exactly what it says on the tin: it's the init for the PF policy SW state, on a gt. iykyk π¦
β SYNOPSIS β
void xe_gt_sriov_pf_policy_init (struct xe_gt *gt );
like, no return value, no nonsense. it takes one gt and it goes β¨ void β¨ β it's giving "I do my thing and I don't report back" main character energy π
π§ ARGUMENTS π§
gtβ thexe_gtπ«Ά (yes queen, that's the argument. that's the whole argument. we love a one-parameter function fr fr)
π₯ DESCRIPTION π₯
okay so here's the tea β β this function can only be called on PF. not PF-adjacent, not "if you feel like it", PF only. periodt π
and the other thing? this function does not touch the HW at all β zero hardware contact, it's purely vibing in software-land π¦ but! and this is the important part bestie β it must be called after the engines have been initialized. so like, don't come at it early, it needs the engines already set up or it's gonna be awkward π
β οΈ tiny but mighty caveats: PF only, no HW interaction, call it after engine init. no cap, those three things are the entire personality of this function π
π SEE ALSO π
first up, the source file where all this lives β go look, she's right there:
- Kernel file
./drivers/gpu/drm/xe/xe_gt_sriov_pf_policy.c
and then the whole friend group π«Ά β literally all the related calls, no gatekeeping:
xe_gt_sriov_pf_policy_set_sched_if_idle_locked(9)xe_gt_sriov_pf_policy_set_sched_if_idle(9)xe_gt_sriov_pf_policy_get_sched_if_idle_locked(9)xe_gt_sriov_pf_policy_get_sched_if_idle(9)xe_gt_sriov_pf_policy_set_reset_engine(9)xe_gt_sriov_pf_policy_get_reset_engine(9)xe_gt_sriov_pf_policy_set_sample_period(9)xe_gt_sriov_pf_policy_get_sample_period(9)xe_sriov_gt_pf_policy_has_sched_groups_support(9)xe_sriov_gt_pf_policy_has_multi_group_modes(9)xe_sriov_gt_pf_policy_has_sched_group_mode(9)xe_gt_sriov_pf_policy_set_sched_groups_mode(9)xe_gt_sriov_pf_policy_sched_groups_enabled(9)xe_gt_sriov_pf_policy_sanitize(9)xe_gt_sriov_pf_policy_restart(9)xe_gt_sriov_pf_policy_print(9)
like, the whole setter/getter cinematic universe π go read them, they're all right there, I'm not doing your homework for you bestie π
and that's the page!! mwah π this gem comes to you from ./drivers/gpu/drm/xe, dated October 2026 β so mark your calendars, screenshot it, frame it, whatever π bye bestie, go init some PF policy SW state responsibly π¦π
π¦ 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