[Intel-gfx] [PATCH v6 07/11] drm/i915: add syncobj timeline support
Chris Wilson
chris at chris-wilson.co.uk
Mon Jul 1 13:18:27 UTC 2019
Quoting Lionel Landwerlin (2019-07-01 12:34:33)
> + /*
> + * For timeline syncobjs we need to preallocate chains for
> + * later signaling.
> + */
> + if (point != 0 && user_fence.flags & I915_EXEC_FENCE_SIGNAL) {
> + fences[n].chain_fence =
> + kmalloc(sizeof(*fences[n].chain_fence),
> + GFP_KERNEL);
> + if (!fences[n].chain_fence) {
> + dma_fence_put(fence);
> + drm_syncobj_put(syncobj);
> + err = -ENOMEM;
> + DRM_DEBUG("Unable to alloc chain_fence\n");
This is like throwing a grenade, waiting for the explosion, and then
saying "bang" under your breath. :)
-Chris
More information about the Intel-gfx
mailing list