STRUCT XE_GT_IDLE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

struct xe_gt_idle β€” okay so this is literally the struct that holds all the idle properties, and the whole thing is based off gt. That's it, that's the vibe. It's the little home where idle-related info chills. πŸ¦‹


✨ SYNOPSIS ✨

struct xe_gt_idle {
    char name[16];
    u32 powergate_enable;
    u32 residency_multiplier;
    u64 cur_residency;
    u64 prev_residency;
    raw_spinlock_t lock;
    enum xe_gt_idle_state (*idle_status)(struct xe_guc_pc *pc);
    u64 (*idle_residency)(struct xe_guc_pc *pc);
 };

Look at her. Flawless. No notes. 🫢


πŸŽ€ MEMBERS πŸŽ€

  • name β€” it's the name, bestie. That's the whole description. char name[16] and it just... names. Short king behavior.
  • powergate_enable β€” a copy of the powergate enable bits. Copy, not original β€” she's a dupe and she owns it. πŸ’…
  • residency_multiplier β€” the residency multiplier, measured in ns. Nano-seconds, not vibes.
  • cur_residency β€” the raw driver copy of idle residency. Raw as in unfiltered, not raw as in "no cap".
  • prev_residency β€” the previous residency counter. Yes she keeps receipts of the last one. πŸ™ˆ
  • lock β€” a raw_spinlock_t that protects the idle residency counters. She's the bouncer. Nobody touches the counters without her. πŸ”₯
  • idle_status β€” a function pointer that gets the current idle state, typed enum xe_gt_idle_state (*idle_status)(struct xe_guc_pc *pc). It's giving main character energy.
  • idle_residency β€” another function pointer, this one gets the idle residency counter: u64 (*idle_residency)(struct xe_guc_pc *pc). Two function pointers in one struct? We stan a multitalented icon. ✨

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./drivers/gpu/drm/xe/xe_gt_idle_types.h β€” go read her, iykyk πŸ‘‘


And that's the tea, bestie β€” this page lives under ./drivers/gpu/drm/xe, stamped October 2026, and it's literally titled struct xe_gt_idle(9). Periodt. πŸ’–πŸŽ€πŸŒΈ

πŸ“¦ where this page comes from