STRUCT GUC_SUBMIT_PARALLEL_SCRATCH(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct guc_submit_parallel_scratch(9)

okay so bestie, welcome to the Kernel API Manual ✨ β€” this one's a struct page, and honestly? she's giving "shared memory but make it organized." let's get into it πŸŽ€


🌸 NAME 🌸

struct guc_submit_parallel_scratch β€” literally just a scratch, shared, mapped buffer 🫢 that's her whole job. a communal lil whiteboard for the kernel to scribble on, no cap.


✨ SYNOPSIS ✨

struct guc_submit_parallel_scratch {
    struct guc_sched_wq_desc wq_desc;
    struct sync_semaphore go;
    struct sync_semaphore join[XE_HW_ENGINE_MAX_INSTANCE];
    u8 unused[WQ_OFFSET - sizeof(struct guc_sched_wq_desc) -
sizeof(struct sync_semaphore) * (XE_HW_ENGINE_MAX_INSTANCE + 1)];
    u32 wq[WQ_SIZE / sizeof(u32)];
};

look at her. the layout. the intentional padding. the unused field doing absolutely nothing but holding space like a true icon πŸ’€πŸ‘‘


πŸ¦‹ Members πŸ¦‹

  • wq_desc β€” the Guc scheduler workqueue descriptor πŸ’– the bouncer at the door of the workqueue, basically.
  • go β€” the Go Semaphore πŸ”₯ (yes that's her name, yes she's iconic) β€” the lil green light that says "okay go bestie".
  • join β€” the joined semaphore for the relevant hw engine instances 🌈 she's an array, one per hw engine instance, up to XE_HW_ENGINE_MAX_INSTANCE of them. group chat, but make it semaphores.
  • unused β€” Unused/Reserved memory space πŸ™ˆ she is padding. she is filler. she is the "brb" of struct fields. respect her anyway ✨
  • wq β€” Workqueue info ⭐ stored as u32s, WQ_SIZE / sizeof(u32) of them. the actual receipts, the actual data.
ngl, that unused array is doing math to figure out its own size β€” WQ_OFFSET minus the descriptor minus all those semaphores. don't touch it, don't resize it, just let her vibe. it's alignment business, iykyk 🧚

πŸ‘‘ SEE ALSO πŸ‘‘

  • Kernel file ./drivers/gpu/drm/xe/xe_guc_submit_types.h πŸ“ β€” go read the source, bestie, she's right there
  • struct xe_guc_submit_exec_queue_snapshot(9) β€” the related page, definitely worth a peek πŸ’œ

okay that's the whole page, fr fr πŸ’– this lil beauty lives in ./drivers/gpu/drm/xe, dated October 2026 β€” so yeah, she's from the future, main character energy only 🌟 bye bestie, go read some headers πŸŽ€πŸ’…

πŸ“¦ where this page comes from