STRUCT __GUC_MMIO_REG_DESCR(9)
β¨ 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, seeenum 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
- 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