From patchwork Fri Aug 25 17:52:21 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jason Ekstrand X-Patchwork-Id: 9922591 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 69109600C5 for ; Fri, 25 Aug 2017 17:52:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 57BE928420 for ; Fri, 25 Aug 2017 17:52:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4C32C28429; Fri, 25 Aug 2017 17:52:44 +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 1857028420 for ; Fri, 25 Aug 2017 17:52:44 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 07EAA6E8DE; Fri, 25 Aug 2017 17:52:43 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pg0-x241.google.com (mail-pg0-x241.google.com [IPv6:2607:f8b0:400e:c05::241]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8FC326E8E1 for ; Fri, 25 Aug 2017 17:52:40 +0000 (UTC) Received: by mail-pg0-x241.google.com with SMTP id a7so651135pgn.4 for ; Fri, 25 Aug 2017 10:52:40 -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=ERG2W2s/Eda/XZbw+ALSC03Ec4Tf5KuYiv+IuLo5LPc=; b=A2az600gtfhAoi2LFkrCnf7zwQoTflDegAgf7Ji4Mn+33X9YlGq2QTJr8Dkh84JCdq Yjv4ZnG0vHhFCr+WuxIfkjA7YNxTPex1YoKvGFQuGaMSzvDl0KImO5tqZyg5zatVvCIW Yydetox3BK6ZtaWGx2tnarf2VEtjvd5oJSTVXCbukuKASSx8JP4uu+DmlxKFJvtQlBrg Prhd8MtDVPyX/rFUko5JUiR8Nytp5XpprBcJEfXuThRfZwkc1e4/6ge3ZHgD57ZCXhq4 NbjZRJMqZBhAZCFBIoOdWFdKThcVOVgfbvAh7B8qqX1knrTi9NhBiU9m1lDSHq66o6mE 1C+w== 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=ERG2W2s/Eda/XZbw+ALSC03Ec4Tf5KuYiv+IuLo5LPc=; b=GxZhGitq93bbF2/pLGOc6VvX0fMCXtyekGcexpWtbr6/LSGKUi5VyiLdW3sCku0eLD gsFsBKBYE5eBiGaajO8MMX+kNqSOdMF7Cul83bGknBKuum+KbDgxQu2WTfhwky4KmAZV 48zxxZIxt9allTkHXodk/YaeydvPBfOl0Y8jCQeba1HZ8yC4hSnj7tFhoC7tVSEpvQo6 MRaGTk43+hDzz6s4Ihg1bLaF70byhSA1ARbtpb0FgRWdReRxjL+6wW4eVemoQ2VUI2+Y ZKD29WmJSP8AGtOMGEvEwcNBraqK/SZ5CBYCxae+EYXlEtbhY5QhbQXMWpSIWU4yfI7Y 5rWA== X-Gm-Message-State: AHYfb5i/xYA85g3PJOsDzYKHRY8fYbRA5yA7CYgQ3GK2OJATIOEwBZvE FL+78eywkPXkg3HZwzH3Rw== X-Received: by 10.99.113.14 with SMTP id m14mr10596200pgc.185.1503683559765; Fri, 25 Aug 2017 10:52:39 -0700 (PDT) Received: from omlet.jlekstrand.net (static-50-43-41-117.bvtn.or.frontiernet.net. [50.43.41.117]) by smtp.gmail.com with ESMTPSA id z8sm11024919pgs.25.2017.08.25.10.52.38 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 25 Aug 2017 10:52:38 -0700 (PDT) From: Jason Ekstrand X-Google-Original-From: Jason Ekstrand To: dri-devel@lists.freedesktop.org Subject: [PATCH 03/10] i915: Use drm_syncobj_fence_get Date: Fri, 25 Aug 2017 10:52:21 -0700 Message-Id: <1503683548-23548-3-git-send-email-jason.ekstrand@intel.com> X-Mailer: git-send-email 2.5.0.400.gff86faf In-Reply-To: <1503683548-23548-1-git-send-email-jason.ekstrand@intel.com> References: <1503683548-23548-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 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;