drm/i915: Add ourselves to the gpu error waitqueue for the entire wait
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 23 Feb 2017 07:44:11 +0000 (07:44 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 23 Feb 2017 14:49:29 +0000 (14:49 +0000)
commit7de53bf7e6f3f823267f77b1fe19e6db7532000d
treea438bcfdb236d7896d12b87c20cbeaf9f2144323
parent4b36b2e506779008c302784437dc102d1ccc7537
drm/i915: Add ourselves to the gpu error waitqueue for the entire wait

Add ourselves to the gpu error waitqueue earlier on, even before we
determine we have to wait on the seqno. This is so that we can then
share the waitqueue between stages in subsequent patches.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170223074422.4125-6-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_request.c