+ * + * Return: + * 0 on success, or an error on failing to expand the array. + */ +int drm_sched_job_prealloc_dependency_slots(struct drm_sched_job *job, + unsigned int num_deps) +{ + struct dma_fence *fence; + u32 id = 0; + int ret; + + while (num_deps--) { + fence = dma_fence_get_stub(); + ret = xa_alloc(&job->dependencies, &id, fence, xa_limit_32b, + GFP_KERNEL);So this would fill the xarr with already signaled fences which then later will be replaced with unsignaled fences?
Help me out here: would it also work to add NULL instead of that stub- fence?