]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Immediately process a reset before starting waiting
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 23 Feb 2017 07:44:21 +0000 (07:44 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 23 Feb 2017 14:56:08 +0000 (14:56 +0000)
commitc4c0db73387348ae331d5f595e44e16ca135573e
tree5efdd9c133d0a480ba7ffc8ca066275ce4a074f6
parentcacfdfd7adcb62c9473bdd0cb531bd232ae06565
drm/i915: Immediately process a reset before starting waiting

As we handoff the GPU reset to the waiter, we need to check we don't
miss a wakeup if it has already been sent prior to us starting the wait.

v2: Tweak checking for reset to be clear to the need before sleeping
after changing the task state.

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