dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Jason Ekstrand <jason@jlekstrand.net>
To: dri-devel@lists.freedesktop.org
Cc: Jason Ekstrand <jason.ekstrand@intel.com>,
	Jason Ekstrand <jason@jlekstrand.net>
Subject: [PATCH 03/10] i915: Use drm_syncobj_fence_get
Date: Fri, 25 Aug 2017 10:52:21 -0700	[thread overview]
Message-ID: <1503683548-23548-3-git-send-email-jason.ekstrand@intel.com> (raw)
In-Reply-To: <1503683548-23548-1-git-send-email-jason.ekstrand@intel.com>

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
---
 drivers/gpu/drm/i915/i915_gem_execbuffer.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/gpu/drm/i915/i915_gem_execbuffer.c b/drivers/gpu/drm/i915/i915_gem_execbuffer.c
index 3d74f3a..4c20162 100644
--- a/drivers/gpu/drm/i915/i915_gem_execbuffer.c
+++ b/drivers/gpu/drm/i915/i915_gem_execbuffer.c
@@ -2129,9 +2129,7 @@ await_fence_array(struct i915_execbuffer *eb,
 		if (!(flags & I915_EXEC_FENCE_WAIT))
 			continue;
 
-		rcu_read_lock();
-		fence = dma_fence_get_rcu_safe(&syncobj->fence);
-		rcu_read_unlock();
+		fence = drm_syncobj_fence_get(syncobj);
 		if (!fence)
 			return -EINVAL;
 
-- 
2.5.0.400.gff86faf

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

  parent reply	other threads:[~2017-08-25 17:52 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-25 17:52 [PATCH 01/10] drm/syncobj: Rename fence_get to find_fence Jason Ekstrand
2017-08-25 17:52 ` [PATCH 02/10] drm/syncobj: Add a race-free drm_syncobj_fence_get helper (v2) Jason Ekstrand
2017-08-25 17:52 ` Jason Ekstrand [this message]
2017-08-25 17:52 ` [PATCH 04/10] drm/syncobj: add sync obj wait interface. (v8) Jason Ekstrand
2017-08-25 17:52 ` [PATCH 05/10] drm/syncobj: Add a callback mechanism for replace_fence (v2) Jason Ekstrand
2017-08-27 19:34   ` kbuild test robot
2017-08-28 14:39   ` [PATCH 5/10] drm/syncobj: Add a callback mechanism for replace_fence (v3) Jason Ekstrand
2017-08-25 17:52 ` [PATCH 06/10] drm/syncobj: Allow wait for submit and signal behavior (v5) Jason Ekstrand
2017-08-25 17:52 ` [PATCH 07/10] drm/syncobj: Add a CREATE_SIGNALED flag Jason Ekstrand
2017-08-25 17:52 ` [PATCH 08/10] drm/syncobj: Add a syncobj_array_find helper Jason Ekstrand
2017-08-25 17:52 ` [PATCH 09/10] drm/syncobj: Add a reset ioctl (v2) Jason Ekstrand
2017-08-25 17:52 ` [PATCH 10/10] drm/syncobj: Add a signal " Jason Ekstrand

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1503683548-23548-3-git-send-email-jason.ekstrand@intel.com \
    --to=jason@jlekstrand.net \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=jason.ekstrand@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox