drm/i915: Flush execution tasklets before checking request status
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 5 Feb 2020 09:54:40 +0000 (09:54 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 5 Feb 2020 18:51:52 +0000 (18:51 +0000)
commit602ddb410dff397e791b7caafa2b2d40e5e52a29
tree33c789257b4fa77400dc78cf583888d47a9cabd2
parentaae970d8454bb9b6b15f385250027af4c454d4f4
drm/i915: Flush execution tasklets before checking request status

Rather than flushing the submission tasklets just before we sleep, flush
before we check the request status. Ideally this gives us a moment to
process the tasklets after sleeping just before we timeout.

v2: Compromise by pushing the flush prior to the timeout, but after the
check on completion so that we do not further delay the ready client.

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/20200205095441.1769599-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_request.c