OSDN Git Service

drm/i915: Refactor marking a request as EIO
authorChris Wilson <chris@chris-wilson.co.uk>
Sat, 9 Jan 2021 16:34:55 +0000 (16:34 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Sat, 9 Jan 2021 18:29:07 +0000 (18:29 +0000)
commitbaa7c2cd99c6326b4d1dece6046479b183533943
treee2b97256fd27e401e19d35ec9cfaf31f26601aa9
parente3aabe31fd7409b7a9a07029e0e18f28a2535ad7
drm/i915: Refactor marking a request as EIO

When wedging the device, we cancel all outstanding requests and mark
them as EIO. Rather than duplicate the small function to do so between
each submission backend, export one.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Andi Shyti <andi.shyti@intel.com>
Reviewed-by: Andi Shyti <andi.shyti@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210109163455.28466-3-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_execlists_submission.c
drivers/gpu/drm/i915/gt/intel_ring_submission.c
drivers/gpu/drm/i915/gt/mock_engine.c
drivers/gpu/drm/i915/i915_request.c
drivers/gpu/drm/i915/i915_request.h