[PATCH 4/4] await
Chris Wilson
chris at chris-wilson.co.uk
Thu Mar 4 16:06:41 UTC 2021
---
drivers/gpu/drm/i915/i915_request.c | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/i915/i915_request.c b/drivers/gpu/drm/i915/i915_request.c
index e7b4c4bc41a6..30720a63cc44 100644
--- a/drivers/gpu/drm/i915/i915_request.c
+++ b/drivers/gpu/drm/i915/i915_request.c
@@ -1313,7 +1313,7 @@ i915_request_await_dma_fence(struct i915_request *rq, struct dma_fence *fence)
{
struct dma_fence **child = &fence;
unsigned int nchild = 1;
- int ret;
+ int ret = 0;
/*
* Note that if the fence-array was created in signal-on-any mode,
@@ -1333,10 +1333,6 @@ i915_request_await_dma_fence(struct i915_request *rq, struct dma_fence *fence)
do {
fence = *child++;
- if (test_bit(DMA_FENCE_FLAG_SIGNALED_BIT, &fence->flags)) {
- i915_sw_fence_set_error_once(&rq->submit, fence->error);
- continue;
- }
/*
* Requests on the same timeline are explicitly ordered, along
@@ -1352,7 +1348,9 @@ i915_request_await_dma_fence(struct i915_request *rq, struct dma_fence *fence)
fence))
continue;
- if (dma_fence_is_i915(fence))
+ if (test_bit(DMA_FENCE_FLAG_SIGNALED_BIT, &fence->flags))
+ i915_sw_fence_set_error_once(&rq->submit, fence->error);
+ else if (dma_fence_is_i915(fence))
ret = i915_request_await_request(rq, to_request(fence));
else
ret = i915_request_await_external(rq, fence);
--
2.20.1
More information about the Intel-gfx-trybot
mailing list