intel_engine_context_size(9)
π intel_engine_context_size β and yes that's a kernel API manual page, bestie
Okay so picture this: it's a manual page from the Kernel API Manual, the function is intel_engine_context_size, and it does exactly one iconic thing β it tells you how big the context for an engine is. That's it. That's the whole vibe. π
β¨ NAME β¨
intel_engine_context_size β return the size of the context for an engine. literally its whole job, no cap.
π¦ SYNOPSIS π¦
u32 intel_engine_context_size(struct intel_gt *gt, u8 class);
πΈ ARGUMENTS πΈ
gtβ the gt. that's it, that's the description, the docs really said "the gt" and dipped πclassβ the engine class
π DESCRIPTION π
So here's the tea π: each engine class may require a different amount of space for a context image. Different class, different amount of room needed. slay for them, honestly.
π RETURN π
It hands you back the size, in bytes, of an engine class specific context image. π
β NOTE β
Okay bestie, pay attention, this part matters π«Ά β this size includes the HWSP, which is part of the context image in LRC mode. But it does not include the "shared data page" used with GuC submission. So if you're using the GuC, the caller should account for that. not me forgetting the shared data pageβ¦ π
π SEE ALSO π
Kernel file ./drivers/gpu/drm/i915/gt/intel_engine_cs.c
intel_engines_release(9)intel_engines_init_mmio(9)intel_engine_cleanup_common(9)intel_engine_resume(9)intel_engine_is_idle(9)intel_engine_get_busy_time(9)
and that's the page, periodt π§π β brought to you by the fine folks over at ./drivers/gpu/drm/i915/gt, dated October 2026, living in the Kernel API Manual. bye bestie, go read your context sizes responsibly π₯π
π¦ 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