]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Hold a reference on the request for its fence chain
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 25 Nov 2016 13:17:17 +0000 (13:17 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 25 Nov 2016 13:49:25 +0000 (13:49 +0000)
commit7da374491e43d192575cf0460ff2512997d47e31
tree18fefde58ca7ab9554f20fa72023d5620841bd67
parentd8291da36b29e6d66b7d5667e51768b1081d217f
drm/i915: Hold a reference on the request for its fence chain

Currently, we have an active reference for the request until it is
retired. Though it cannot be retired before it has been executed by
hardware, the request may be completed before we have finished
processing the execute fence, i.e. we may continue to process that fence
as we free the request.

Fixes: 9c127218a996 ("drm/i915: Drive request submission through fence callbacks")
Fixes: 6c9a36b1fb69 ("drm/i915: Split request submit/execute phase into two")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20161125131718.20978-3-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_request.c
drivers/gpu/drm/i915/i915_sw_fence.h