SET OF UTILITIES TO DYNAMICALLY COLLECT DEPENDENCIES INTO A(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 πŸ‘€


Source/version cutie: ./drivers/gpu/drm/i915 🌸 β€” dated October 2026. That's the tea, bestie; go collect those dependencies πŸ’–

πŸ“¦ where this page comes from