drm/i915: Propagate errors on awaiting already signaled dma-fences
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 6 Dec 2019 16:04:28 +0000 (16:04 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 6 Dec 2019 19:09:46 +0000 (19:09 +0000)
commitcbab8d87f7865d09d93e4a6d6db0b799ba0c3407
tree347e1638404401c34d83e96c8b62db32399bdf9d
parent9e31c1fe45d555a948ff66f1f0e3fe1f83ca63f7
drm/i915: Propagate errors on awaiting already signaled dma-fences

If we see an already signaled dma-fence that we want to await on, we skip
adding to the i915_sw_fence. However, we should pay attention to whether
there was an error on that fence and if so propagate it for our future
request.

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/20191206160428.1503343-3-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_sw_fence.c