drm/i915/guc: Skip port assign on first iteration of GuC dequeue
authorMichał Winiarski <michal.winiarski@intel.com>
Tue, 23 May 2017 10:23:59 +0000 (12:23 +0200)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 23 May 2017 10:54:06 +0000 (11:54 +0100)
commitf63078abff0d2927c2f58f22b1082520def70865
treea63f79a4ea37d078894cd540985a49ef5db3c543
parent1d5fd00313c49f7972e3356ac58e0ad7934e1948
drm/i915/guc: Skip port assign on first iteration of GuC dequeue

If port[0] is occupied and we're trying to dequeue request from
different context, we will inevitably hit BUG_ON in port_assign.
Let's skip it - similar to what we're doing in execlists counterpart.

Fixes: 77f0d0e925e8a0 ("drm/i915/execlists: Pack the count into the low bits of the port.request")
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Michał Wajdeczko <michal.wajdeczko@intel.com>
Cc: Mika Kuoppala <mika.kuoppala@intel.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Signed-off-by: Michał Winiarski <michal.winiarski@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/20170523102400.9614-2-michal.winiarski@intel.com
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/i915_guc_submission.c