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

Commit 57877b70 authored by Chris Wilson's avatar Chris Wilson
Browse files

drm/i915/execlists: HWACK checking superseded checking port[0].count



The HWACK bit more generically solves the problem of resubmitting ESLP
while the hardware is still processing the current ELSP write. We no
longer need to check port[0].count itself.

References: ba74cb10 ("drm/i915/execlists: Delay writing to ELSP until HW has processed the previous write")
Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Cc: Michel Thierry <michel.thierry@intel.com>
Reviewed-by: default avatarTvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180517115647.17205-1-chris@chris-wilson.co.uk
parent b45a2588
Loading
Loading
Loading
Loading
+0 −2
Original line number Original line Diff line number Diff line
@@ -612,8 +612,6 @@ static bool __execlists_dequeue(struct intel_engine_cs *engine)
		GEM_BUG_ON(!execlists_is_active(execlists,
		GEM_BUG_ON(!execlists_is_active(execlists,
						EXECLISTS_ACTIVE_USER));
						EXECLISTS_ACTIVE_USER));
		GEM_BUG_ON(!port_count(&port[0]));
		GEM_BUG_ON(!port_count(&port[0]));
		if (port_count(&port[0]) > 1)
			return false;


		/*
		/*
		 * If we write to ELSP a second time before the HW has had
		 * If we write to ELSP a second time before the HW has had