drm/i915: Propagate fence errors
authorChris Wilson <chris@chris-wilson.co.uk>
Sat, 17 Aug 2019 23:25:11 +0000 (00:25 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Sun, 18 Aug 2019 11:38:09 +0000 (12:38 +0100)
commitef468849751251864a50576a3b0df43448a960fe
tree064ee2e5fc17fad4114e59d25e4c4b9095afe5bc
parenta8dc0f6d187bcccc7c1a41f0062badbf3d74e44c
drm/i915: Propagate fence errors

Errors spread like wildfire, and must eventually be returned to the
user. They need to be captured and passed along the flow of fences,
infecting each in turn with the existing error, until finally they fall
out of a user visible result.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190817232511.11391-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_request.c
drivers/gpu/drm/i915/i915_sw_fence.c
drivers/gpu/drm/i915/i915_sw_fence.h
drivers/gpu/drm/i915/selftests/lib_sw_fence.c