drm/i915: Construct a request even if the GPU is currently hung
authorChris Wilson <chris@chris-wilson.co.uk>
Sat, 14 Jan 2017 16:23:33 +0000 (16:23 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 16 Jan 2017 12:21:20 +0000 (12:21 +0000)
commit6ffb7d0756e34427a39f6ffdf861fe93b49fc0e8
tree9ff43b62e496970bc9028bf0a38ee2062d0ad7cd
parent9734ad13c2321e8efc1fab4665d40d88e947c560
drm/i915: Construct a request even if the GPU is currently hung

As we now have the ability to directly reset the GPU from the waiter
(and so do not need to drop the lock in order to let the reset proceed)
and also do not lose requests over a reset, we can now simply queue the
request to occur after the reset rather than roundtripping to userspace
(or worse failing with EIO).

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