]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Separate GPU hang waitqueue from advance
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 1 Jul 2016 16:23:14 +0000 (17:23 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 1 Jul 2016 19:42:31 +0000 (20:42 +0100)
commit5d4e887aed25c0c17132a80d5cad9beb6b275b1d
tree004b9856181dabdc5a35dd8dade16c2336704a27
parent12a1c4721a190fca6c88272d03d0649e3529558d
drm/i915: Separate GPU hang waitqueue from advance

Currently __i915_wait_request uses a per-engine wait_queue_t for the dual
purpose of waking after the GPU advances or for waking after an error.
In the future, we may add even more wake sources and require greater
separation, but for now we can conceptually simplify wakeups by separating
the two sources. In particular, this allows us to use different wait-queues
(e.g. one on the engine advancement, a global one for errors and one on
each requests) without any hassle.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1467390209-3576-5-git-send-email-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_irq.c