STRUCT GUC_SUBMIT_PARALLEL_SCRATCH(9)
π 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 toXE_HW_ENGINE_MAX_INSTANCEof 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 asu32s,WQ_SIZE / sizeof(u32)of them. the actual receipts, the actual data.
ngl, thatunusedarray is doing math to figure out its own size βWQ_OFFSETminus 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
- 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