]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Execute signal callbacks from no-op i915_request_wait
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 14 Jun 2019 11:10:53 +0000 (12:10 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 14 Jun 2019 11:16:32 +0000 (12:16 +0100)
commit439c1080b02d1df6602bc5c006100f7a42dc9f0f
tree469ebba127480fbac6cc4bc08de64fa4a9cea64f
parent2e552d379d84fe8c65f2dc1b1cbd0153c1e98cc3
drm/i915: Execute signal callbacks from no-op i915_request_wait

If we enter i915_request_wait() with an already completed request, but
unsignaled dma-fence, signal the fence before returning. This allows us
to execute any of the signal callbacks at the earliest opportunity.

v2: Also signal after busyspin success

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