STRUCT __GUC_MMIO_REG_DESCR(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ struct __guc_mmio_reg_descr ✨

okay bestie so we're in the Kernel API Manual rn and this page is literally all about struct __guc_mmio_reg_descr β€” the GuC mmio register descriptor πŸ’… lowkey iconic, highkey niche, and yes we're gonna get through it together 🫢


🌸 NAME 🌸

struct __guc_mmio_reg_descr β€” GuC mmio register descriptor. that's it, that's the name, no notes πŸ’–


πŸŽ€ SYNOPSIS πŸŽ€

struct __guc_mmio_reg_descr {
    struct xe_reg reg;
    enum capture_register_data_type data_type;
    u32 flags;
    u32 mask;
    u32 dss_id;
    const char *regname;
 };

like look at that little guy. six members. baby struct. we love to see it πŸ’œ


πŸ¦‹ Members πŸ¦‹

okay so let's do a vibe check on every single field, no skipping, periodt:

  • reg β€” the register. that's the whole job. it's the register πŸŽ€
  • data_type β€” data type of the register. could be 32 bit, low or hi dword of a 64 bit, see enum capture_register_data_type. so many possibilities, so little time 😭
  • flags β€” Flags for the register. capital F Flags. respect 🫢
  • mask β€” The mask to apply. apply it. slay πŸ’…
  • dss_id β€” Cached index for steered registers ✨ (it's cached, it's steered, it's doing its thing)
  • regname β€” Name of the register. it has a name!! main character energy fr fr πŸ‘‘

🌈 Description 🌈

so here's the tea: the xe_guc_capture module uses these structures to define a register (offsets, names, flags,...) β€” and not just for decoration, bestie. these definitions get used at the ADS registration time as well as during runtime processing and reporting of error-capture states generated by GuC just prior to engine reset events πŸ”₯

so like… GuC generates error-capture states right before engine resets, and these structs are how the module knows what the heck it's looking at. offsets, names, flags, the whole fit. genuinely obsessed with how much work a tiny struct does ngl πŸ’€

notice the ... in "(offsets, names, flags,...)" β€” that's from the original, it's not me being lazy, i promise 😭

🧚 SEE ALSO 🧚

  • Kernel file ./drivers/gpu/drm/xe/xe_guc_capture_types.h
  • struct __guc_mmio_reg_descr_group(9)

go read those next, bestie, iykyk πŸ’–


and that's the whole page!! source/version is ./drivers/gpu/drm/xe, dated October 2026, and it's all about struct __guc_mmio_reg_descr(9) β€” love that for us, bye bestie πŸŒΈπŸ¦‹πŸ’œ

πŸ“¦ where this page comes from