Displaying 1 result from an estimated 1 matches for "fence_flag_user_bit".
Did you mean:
fence_flag_user_bits
2016 Sep 07
1
[PATCH] drm/nouveau: Skip fence context seqno check if notifies are enabled
...e_is_signaled(struct fence *f)
struct nouveau_channel *chan;
bool ret = false;
+ /* If the notify is already active, we can rely on
+ * FENCE_FLAG_SIGNALED_BIT being accurate and skip checking the
+ * current seqno as fctx->read() requires an expensive uncached read.
+ */
+ if (test_bit(FENCE_FLAG_USER_BITS, &fence->base.flags))
+ return false;
+
+ if (READ_ONCE(fctx->notify_ref))
+ return false;
+
rcu_read_lock();
chan = rcu_dereference(fence->channel);
if (chan)
--
2.9.3