[PATCH 1/2] cmpxchg
Chris Wilson
chris at chris-wilson.co.uk
Mon Jul 4 20:49:37 UTC 2016
---
drivers/gpu/drm/i915/i915_drv.h | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
index 594ddbba3a64..65bffc4c5c4e 100644
--- a/drivers/gpu/drm/i915/i915_drv.h
+++ b/drivers/gpu/drm/i915/i915_drv.h
@@ -3983,8 +3983,7 @@ static inline bool __i915_request_irq_complete(struct drm_i915_gem_request *req)
* but it is easier and safer to do it every time the waiter
* is woken.
*/
- if (engine->irq_seqno_barrier &&
- cmpxchg_relaxed(&engine->irq_posted, 1, 0)) {
+ if (engine->irq_seqno_barrier && cmpxchg(&engine->irq_posted, 1, 0)) {
/* The ordering of irq_posted versus applying the barrier
* is crucial. The clearing of the current irq_posted must
* be visible before we perform the barrier operation,
--
2.8.1
More information about the Intel-gfx-trybot
mailing list