SET OF UTILITIES TO DYNAMICALLY COLLECT DEPENDENCIES INTO A(9)
π Set of util...ncies into a(9) π
Filed under the Kernel API Manual, bestie β this is the page for the set of utilities to dynamically collect dependencies into a structure which is fed into the GT migration code. β¨
Okay so here's the lore: once we can do async unbinding, this is also needed to coalesce the migration fence with the unbind fences if these are coalesced post-migration. π§ No cap, that's the whole fence situation.
While collecting the individual dependencies, we store the refcounted struct dma_fence pointers in a realloc-managed pointer array, since that can be easily fed into a dma_fence_array. π₯ Other options are available, like for example an xarray for similarity with drm/sched. Can be changed easily if needed. π
A struct i915_deps need to be initialized using i915_deps_init. π«Ά If i915_deps_add_dependency or i915_deps_add_resv return an error code they will internally call i915_deps_fini, which frees all internal references and allocations. π
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/i915/i915_deps.c i915_deps_init(9)i915_deps_fini(9)i915_deps_sync(9)i915_deps_add_dependency(9)i915_deps_add_resv(9)
Source/version cutie: ./drivers/gpu/drm/i915 πΈ β dated October 2026. That's the tea, bestie; go collect those dependencies π
π¦ 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