All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] dma-fence: Clear fence->status during dma_fence_init()
@ 2017-01-03 11:05 Chris Wilson
  2017-01-03 11:05 ` [PATCH 2/2] drm/i915: Set guilty-flag on fence after detecting a hang Chris Wilson
                   ` (2 more replies)
  0 siblings, 3 replies; 19+ messages in thread
From: Chris Wilson @ 2017-01-03 11:05 UTC (permalink / raw)
  To: dri-devel; +Cc: intel-gfx

As the fence->status is an optional field that may be set before
dma_fence_signal() is called to convey that the fence completed with an
error, we have to ensure that it is always set to zero on initialisation
so that the typical use (i.e. unset) always flags a successful completion.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
---
 drivers/dma-buf/dma-fence.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/dma-buf/dma-fence.c b/drivers/dma-buf/dma-fence.c
index 3444f293ad4a..9130f790ebf3 100644
--- a/drivers/dma-buf/dma-fence.c
+++ b/drivers/dma-buf/dma-fence.c
@@ -534,6 +534,7 @@ dma_fence_init(struct dma_fence *fence, const struct dma_fence_ops *ops,
 	fence->context = context;
 	fence->seqno = seqno;
 	fence->flags = 0UL;
+	fence->status = 0;
 
 	trace_dma_fence_init(fence);
 }
-- 
2.11.0

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply related	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2017-01-04 11:31 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-03 11:05 [PATCH 1/2] dma-fence: Clear fence->status during dma_fence_init() Chris Wilson
2017-01-03 11:05 ` [PATCH 2/2] drm/i915: Set guilty-flag on fence after detecting a hang Chris Wilson
2017-01-03 11:34   ` Tvrtko Ursulin
2017-01-03 11:46     ` [Intel-gfx] " Chris Wilson
2017-01-03 11:57       ` Tvrtko Ursulin
2017-01-03 12:13         ` Chris Wilson
2017-01-03 12:34           ` [Intel-gfx] " Tvrtko Ursulin
2017-01-03 12:38             ` Chris Wilson
2017-01-03 13:17               ` Tvrtko Ursulin
2017-01-03 13:25                 ` Chris Wilson
2017-01-03 11:53 ` ✗ Fi.CI.BAT: failure for series starting with [1/2] dma-fence: Clear fence->status during dma_fence_init() Patchwork
2017-01-03 14:04 ` [PATCH 1/2] " Tvrtko Ursulin
2017-01-04  9:15   ` [Intel-gfx] " Daniel Vetter
2017-01-04  9:24     ` Chris Wilson
2017-01-04  9:37       ` [Intel-gfx] " Daniel Vetter
2017-01-04  9:43         ` Chris Wilson
2017-01-04 10:18           ` Daniel Vetter
2017-01-04 10:26             ` Chris Wilson
2017-01-04 11:31               ` [Intel-gfx] " Daniel Vetter

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.