intel_ggtt_restore_fences(9)
π intel_ggtt_restore_fences(9) β from the Kernel API Manual, bestie
okay so picture this: it's giving "put the fences back where you found them" energy. This page lives in the Kernel API Manual and it's about one lil function, intel_ggtt_restore_fences, whose whole personality is restore fence state. iconic, lowkey.
β¨ NAME β¨
intel_ggtt_restore_fences β restore fence state π
π¦ SYNOPSIS π¦
void intel_ggtt_restore_fences (struct i915_ggtt *ggtt );
that's it. that's the whole signature. no cap. β¨
πΈ ARGUMENTS πΈ
ggttβ the Global GTT. that's the one and only thing you hand it. π«Ά
π DESCRIPTION π
so what does it actually do, you ask? it restores the hw fence state so it matches the software tracking again. like, the hardware and the software have to be on the same page, and this function is the one that gets them there. match made in heaven, fr fr. π
when do you call it? two moments, bestie:
- after a GPU reset π₯
- on resume π΄β‘οΈπ³
and here's the caveat you cannot skip: on runtime suspend we only cancel the fences, and they get reacquired by the user later. so do not come for this function on runtime suspend expecting a restore β that is not the vibe. note it, remember it, live by it. π§
π SEE ALSO π
go read these next, iykyk:
- Kernel file
./drivers/gpu/drm/i915/gt/intel_ggtt_fencing.cfence register handling(9) i915_vma_revoke_fence(9)i915_vma_pin_fence(9)i915_reserve_fence(9)i915_unreserve_fence(9)- tiling swizzling details(9)
detect_bit_6_swizzle(9)i915_gem_object_do_bit_17_swizzle(9)i915_gem_object_save_bit_17_swizzle(9)
like literally a whole friend group of fence-related pages. go say hi. π
β reminder for the group chat: this page is about restoring after a GPU reset and on resume, and on runtime suspend it's cancel only β the user reacquires later. don't mix those up, bestie. π
and that's the page!! mwah π this one came from ./drivers/gpu/drm/i915/gt, dated October 2026, and it's still intel_ggtt_restore_fences(9) at the end of the day. slay, periodt. πβ¨π
π¦ 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