STRUCT XE_GT_SRIOV_SPARE_CONFIG(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

struct xe_gt_sriov_spare_config β€” the GT-level PF spare configuration data, bestie. It's a struct. It holds numbers. It's lowkey iconic for it.

So like, if you're wondering what manual you just opened β€” welcome to the Kernel API Manual, babes, we're in the GPU driver docs now πŸŽ€


✨ SYNOPSIS ✨

struct xe_gt_sriov_spare_config {
    u64 ggtt_size;
    u64 lmem_size;
    u16 num_ctxs;
    u16 num_dbs;
 };

Look at her. Four members. Not one of them extra. Main character energy fr πŸ’–


🫢 Members 🫢

  • ggtt_size β€” the GGTT size. That's it, that's the member. u64 of pure GGTT realness ✨
  • lmem_size β€” the LMEM size. Also a u64. Also slaying πŸ’œ
  • num_ctxs β€” the number of GuC submission contexts. u16 because apparently that's all the room it needs, and honestly? Respect 🌸
  • num_dbs β€” the number of GuC doorbells. u16 again. Ring ring, it's for you πŸ””

πŸ¦‹ Description πŸ¦‹

Okay so here's the vibe: the PF driver uses this struct to keep track of its own reserved (spare) provisioning data β€” like, the stuff that's specifically not applicable to be tracked in struct xe_gt_sriov_config. Different struct, different job, iykyk πŸ’…

So don't go cramming your spare provisioning data into the wrong struct, bestie, that's not the move. This one is the spare-config struct. That one over there is the regular config struct. They are not the same and we do not mix them ✨


πŸ”₯ SEE ALSO πŸ”₯

  • Kernel file ./drivers/gpu/drm/xe/xe_gt_sriov_pf_config_types.h β€” go read the source, it's giving lore πŸ‘‘
  • struct xe_gt_sriov_config(9) β€” the other struct. The one that does not hold the spare provisioning data. Say hi to her for me 🫢

ngl bestie, if you got this far you're already smarter than half the group chat πŸ’€ go read the header file, it's literally right there 🌈

Okay that's the whole page!! 🌟 Signed, sealed, delivered from ./drivers/gpu/drm/xe, datestamped October 2026, and yes she's still called struct xe_gt_sriov_spare_config β€” periodt πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from