From patchwork Wed Aug 16 04:13:51 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jason Ekstrand X-Patchwork-Id: 9902863 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C22A360231 for ; Wed, 16 Aug 2017 04:14:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AF10E288C3 for ; Wed, 16 Aug 2017 04:14:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A0F6528985; Wed, 16 Aug 2017 04:14:48 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 40C2A288C3 for ; Wed, 16 Aug 2017 04:14:48 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id EF2246E05C; Wed, 16 Aug 2017 04:14:11 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pf0-x243.google.com (mail-pf0-x243.google.com [IPv6:2607:f8b0:400e:c00::243]) by gabe.freedesktop.org (Postfix) with ESMTPS id A136F6E1B7 for ; Wed, 16 Aug 2017 04:14:09 +0000 (UTC) Received: by mail-pf0-x243.google.com with SMTP id j68so275124pfc.2 for ; Tue, 15 Aug 2017 21:14:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jlekstrand-net.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=TEz7kQVfG//rapzHrSAEnM7Ul4dxXLqc1Z05PGwO+B0=; b=zRdC9Yb8J2MsGMyl/Grz6YO5IpKyy2tB0nnJNMkrijKpQ9GvQg5SZtjvrAzC1GWj5h /EghVROCtSlOpTeuQR/xRTfsNIzzo5/9kTFFQM5PjV4FjqUzABjoX4/hdepACeszdY6X FDDZVIG2zs0iCi8ENQGDZ9AW6n9IG5xNQJGuLUbu+1UIJCmZ3EDGurzeZVfbnR8ICvbh 1TNS4tbvImiMaoWNGEotsBmOQJLgBfgwpQ6VyyctDI5/BNmZNlsFdvDBGMwy3qGdbKLj WSP/TB3kqqjGuc28x/XNApZile+I1+1FWu7ra+t0cC3qeJd5WGzylHr0j8TOSiqf21rx kGQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=TEz7kQVfG//rapzHrSAEnM7Ul4dxXLqc1Z05PGwO+B0=; b=FubpNnwPAYoAM6gah9M0l36m/PLkJspsjpmcpi/lXA7dCZLp8Vh1tQaoZtDjYEoBIw 0XKXFlH6wmtN1ZCpDRoLPZ7zrkfgdXrsLKLbU568O4bSjOer5joXDeEvk2NSOkIEir8f J2D5c0ZYkmlPzJejMs5VbN+stoptge0IGiUbEDULmEL91E6RPn4c6fQQV9kJ4D+Frd4H Oc0m0IBfK+k2l9Ehp24liE7/tKlY79dVYZuzvjfbNGmV4hPfyr0Jk8ltoNV/GAW42f85 3G0pYloiohc3xlm/xPgmPiscrqxU7Y4P8q9j18pA8VzuvctPgCKXTE4C8uEUobPy2FUA wpug== X-Gm-Message-State: AHYfb5hoikd+QaVv+ocfiANbHHBKhOPOY0RHYhY3IFYtr0+dr4GBT9JS cxZEZuMEdDWzTSfjMtikPA== X-Received: by 10.98.2.151 with SMTP id 145mr363565pfc.153.1502856848675; Tue, 15 Aug 2017 21:14:08 -0700 (PDT) Received: from omlet.jf.intel.com ([192.55.54.40]) by smtp.gmail.com with ESMTPSA id f88sm19684595pff.74.2017.08.15.21.14.07 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 15 Aug 2017 21:14:07 -0700 (PDT) From: Jason Ekstrand X-Google-Original-From: Jason Ekstrand To: dri-devel@lists.freedesktop.org Subject: [PATCH 3/7] i915: Use drm_syncobj_fence_get Date: Tue, 15 Aug 2017 21:13:51 -0700 Message-Id: <1502856835-9433-4-git-send-email-jason.ekstrand@intel.com> X-Mailer: git-send-email 2.5.0.400.gff86faf In-Reply-To: <1502856835-9433-1-git-send-email-jason.ekstrand@intel.com> References: <1502856835-9433-1-git-send-email-jason.ekstrand@intel.com> Cc: Jason Ekstrand , Jason Ekstrand X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Jason Ekstrand --- 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 8e8bc7a..0a85e32 100644 --- a/drivers/gpu/drm/i915/i915_gem_execbuffer.c +++ b/drivers/gpu/drm/i915/i915_gem_execbuffer.c @@ -2215,9 +2215,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;