Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fe537d00 authored by Christian König's avatar Christian König Committed by Alex Deucher
Browse files

drm/amdgpu: ignore scheduler fences from the same entity



We are going to submit them before the job anyway.

Signed-off-by: default avatarChristian König <christian.koenig@amd.com>
Reviewed-by: default avatarChunming Zhou <david1.zhou@amd.com>
parent 6bd53c41
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -222,6 +222,12 @@ amd_sched_entity_pop_job(struct amd_sched_entity *entity)

	while ((entity->dependency = sched->ops->dependency(sched_job))) {

		if (entity->dependency->context == entity->fence_context) {
			/* We can ignore fences from ourself */
			fence_put(entity->dependency);
			continue;
		}

		if (fence_add_callback(entity->dependency, &entity->cb,
				       amd_sched_entity_wakeup))
			fence_put(entity->dependency);