OSDN Git Service

drm/i915: Flush the execution-callbacks on retiring
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 18 Jun 2019 07:41:31 +0000 (08:41 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 19 Jun 2019 16:09:25 +0000 (17:09 +0100)
commitb87b6c0dfce7d6c9df7f2c4c0ebacfc71bf58b89
tree99384c294a2d43a7a28cfeaabbade11fa952b4de
parentce94bef9354e15b99a329e7c5a451ea0ffd59fb1
drm/i915: Flush the execution-callbacks on retiring

In the unlikely case the request completes while we regard it as not even
executing on the GPU (see the next patch!), we have to flush any pending
execution callbacks at retirement and ensure that we do not add any
more.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190618074153.16055-4-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_request.c