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

Commit 80b5bdbd authored by Chris Wilson's avatar Chris Wilson
Browse files

drm/i915: Ignore valid but unknown semaphores



If we find a ring waiting on a semaphore for another assigned but not yet
emitted request, treat it as valid and waiting.

Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: default avatarJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20160909131201.16673-18-chris@chris-wilson.co.uk
parent dadd481b
Loading
Loading
Loading
Loading
+6 −3
Original line number Original line Diff line number Diff line
@@ -2831,10 +2831,10 @@ semaphore_wait_to_signaller_ring(struct intel_engine_cs *engine, u32 ipehr,
		}
		}
	}
	}


	DRM_ERROR("No signaller ring found for ring %i, ipehr 0x%08x, offset 0x%016llx\n",
	DRM_DEBUG_DRIVER("No signaller ring found for ring %i, ipehr 0x%08x, offset 0x%016llx\n",
			 engine->id, ipehr, offset);
			 engine->id, ipehr, offset);


	return NULL;
	return ERR_PTR(-ENODEV);
}
}


static struct intel_engine_cs *
static struct intel_engine_cs *
@@ -2922,6 +2922,9 @@ static int semaphore_passed(struct intel_engine_cs *engine)
	if (signaller == NULL)
	if (signaller == NULL)
		return -1;
		return -1;


	if (IS_ERR(signaller))
		return 0;

	/* Prevent pathological recursion due to driver bugs */
	/* Prevent pathological recursion due to driver bugs */
	if (signaller->hangcheck.deadlock >= I915_NUM_ENGINES)
	if (signaller->hangcheck.deadlock >= I915_NUM_ENGINES)
		return -1;
		return -1;