STRUCT GUC_LIC(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

struct guc_lic β€” the GuC LIC (Log-Init-Config) structure, bestie. That's it, that's the vibe ✨


πŸŽ€ SYNOPSIS πŸŽ€

struct guc_lic {
    u32 magic;
  #define GUC_LIC_MAGIC                   0x8086900D;
    u32 version;
  #define GUC_LIC_VERSION_MASK_MAJOR              GENMASK(31, 16);
  #define GUC_LIC_VERSION_MASK_MINOR              GENMASK(15, 0);
  #define GUC_LIC_VERSION_MAJOR   1u;
  #define GUC_LIC_VERSION_MINOR   0u;
    u32 data_count;
    u32 data[];
 };

Like, copy it exactly, don't freestyle it, i'm literally begging πŸ™


🫢 Members 🫢

  • magic β€” a magic number that GuC sets so you know this structure is holding valid info, no cap. It's magic = GUC_LIC_MAGIC. πŸ”₯
  • version β€” the version of this structure, and the major + minor numbers live as bit fields inside it. Cute little packing moment πŸ’…
  • data_count β€” how many dwords the data array contains. Count 'em.
  • data β€” an array of dwords representing a list of LIC KLVs of type guc_klv_generic, with keys represented by guc_lic_type. Iconic little key-value moment πŸ‘‘

🌸 Description 🌸

So the GUC populates this at log init time, and it's located in the log buffer memory allocation. That's the whole tea β˜• β€” it's GuC's little note-to-self, sitting right there in the allocation. πŸ¦‹


✨ SEE ALSO ✨

  • Kernel file ./drivers/gpu/drm/xe/abi/guc_lic_abi.h
  • enum guc_lic_type(9)

okay that's the whole page, you ate that πŸ’– ngl this one came from ./drivers/gpu/drm/xe/abi and it's dated October 2026 β€” era-defining fr fr, periodt πŸŽ€βœ¨πŸ‘‘

πŸ“¦ where this page comes from