summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/selftests
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2019-08-18 00:25:11 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2019-08-18 12:38:09 +0100
commitef468849751251864a50576a3b0df43448a960fe (patch)
tree064ee2e5fc17fad4114e59d25e4c4b9095afe5bc /drivers/gpu/drm/i915/selftests
parenta8dc0f6d187bcccc7c1a41f0062badbf3d74e44c (diff)
downloadlinux-ef468849751251864a50576a3b0df43448a960fe.tar.gz
linux-ef468849751251864a50576a3b0df43448a960fe.tar.bz2
linux-ef468849751251864a50576a3b0df43448a960fe.zip
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
Diffstat (limited to 'drivers/gpu/drm/i915/selftests')
-rw-r--r--drivers/gpu/drm/i915/selftests/lib_sw_fence.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/selftests/lib_sw_fence.c b/drivers/gpu/drm/i915/selftests/lib_sw_fence.c
index b976c12817c5..080b90b63d16 100644
--- a/drivers/gpu/drm/i915/selftests/lib_sw_fence.c
+++ b/drivers/gpu/drm/i915/selftests/lib_sw_fence.c
@@ -40,6 +40,7 @@ void __onstack_fence_init(struct i915_sw_fence *fence,
__init_waitqueue_head(&fence->wait, name, key);
atomic_set(&fence->pending, 1);
+ fence->error = 0;
fence->flags = (unsigned long)nop_fence_notify;
}