]> asedeno.scripts.mit.edu Git - linux.git/commit
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)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Wed, 16 Oct 2019 17:55:36 +0000 (10:55 -0700)
commit128260a41eeba4dd8d4433eab96aeeb7192392a4
tree4a486390a20b6797c1e6a5e20b88f1c3771551dd
parent4f5cafb5cb8471e54afdc9054d973535614f7675
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
(cherry picked from commit 0d7cf7bc15e75bf79f2f65d61d19f896609f816a)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/i915/gt/intel_lrc.c