drm/i915/execlists: Refactor -EIO markup of hung requests
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 23 Sep 2019 11:00:56 +0000 (12:00 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 23 Sep 2019 15:21:38 +0000 (16:21 +0100)
commit0d7cf7bc15e75bf79f2f65d61d19f896609f816a
treefe52c2f269bb33725bda90976b360003bed83d42
parentc0bb487dc19fc45dbeede7dcf8f513df51a3cd33
drm/i915/execlists: Refactor -EIO markup of hung requests

Pull setting -EIO on the hung requests into its own utility function.
Having allowed ourselves to short-circuit submission of completed
requests, we can now do the mark_eio() prior to submission and avoid
some redundant operations.

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/20190923110056.15176-4-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_lrc.c