From patchwork Wed Jul 4 09:29:06 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Vetter X-Patchwork-Id: 10506293 X-Patchwork-Delegate: agross@codeaurora.org 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 351FD601D7 for ; Wed, 4 Jul 2018 09:29:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2980228DAF for ; Wed, 4 Jul 2018 09:29:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1DD2528DC3; Wed, 4 Jul 2018 09:29:33 +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=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C821228DAF for ; Wed, 4 Jul 2018 09:29:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753279AbeGDJ3V (ORCPT ); Wed, 4 Jul 2018 05:29:21 -0400 Received: from mail-ed1-f67.google.com ([209.85.208.67]:35309 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753086AbeGDJ3T (ORCPT ); Wed, 4 Jul 2018 05:29:19 -0400 Received: by mail-ed1-f67.google.com with SMTP id b10-v6so3573064edi.2 for ; Wed, 04 Jul 2018 02:29:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Pk+nUMyrPOS4olpNRQfICcNX8S/Lx77dkQ/Io0SAYXc=; b=kFoOniLqN6ULzR6DcSy15uA8XvyCHfz0nbbCVoQVAxjG6mlnmqLpSl3CfytwrFwFc/ YVOAus7iLCS+ye74CBmVSn4gkBnWW9I4aJeYokQQxfU0Uk0G9w6wte5x5jawjF+111Ss kdiSRGJz67GOrDKnny2JGygrhvZCcwBl8ddVo= 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=Pk+nUMyrPOS4olpNRQfICcNX8S/Lx77dkQ/Io0SAYXc=; b=iN7pOsWTZ8btftiM/E2coq8RQZOr8z00ch1a3eZ/9o+Igborc6zpYU8OFwobRnHwEN icKB32+qxropVQgs4rCmT7fO/hROFGdMR9Yvo6yDcuxbvSxxbsd4R65bKrnsU2Dz/4rO iTpgQ2Ncmhl0gCYP3cwZnLK2aXalrW1lfjdaf/mSUBj8k3R2QVYnvTwjY/jRYv93dElq mfGmIHjAZSxp6HpuZV+qPzTQIstGTwP9XXf9nU7A3O+pmsSisIbiCzSvA3B4X+jzi8se E8YySMzaTnbAACt+e8mD2upLbwUGN5TpvTgTlxIvjWtaeju9Ih4fN18RltpUeK1heO3G Nm8g== X-Gm-Message-State: APt69E0NuFVWvAyeF+HC1GuFh8eDiQU4zklZ/KQUKM7BhvZSODesTtub CAXZAnW7Z5Y7wCLhF8d+clWQ6g== X-Google-Smtp-Source: AAOMgpeoCoMPYTbk1OZe2ID705i1EYTcD4x/EHeyqSSUJ3VXxxNm9Nl2+zx6u4EBeCxCJQbd7imtrw== X-Received: by 2002:a50:b38a:: with SMTP id s10-v6mr1844848edd.28.1530696558727; Wed, 04 Jul 2018 02:29:18 -0700 (PDT) Received: from phenom.ffwll.local ([2a02:168:5628:0:496f:7dc5:66d7:a057]) by smtp.gmail.com with ESMTPSA id r3-v6sm1773800edh.9.2018.07.04.02.29.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Jul 2018 02:29:18 -0700 (PDT) From: Daniel Vetter To: DRI Development Cc: Intel Graphics Development , Daniel Vetter , Rob Clark , linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org Subject: [PATCH 2/5] drm/msm: Remove unecessary dma_fence_ops Date: Wed, 4 Jul 2018 11:29:06 +0200 Message-Id: <20180704092909.6599-3-daniel.vetter@ffwll.ch> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180704092909.6599-1-daniel.vetter@ffwll.ch> References: <20180704092909.6599-1-daniel.vetter@ffwll.ch> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP dma_fence_default_wait is the default now, same for the trivial enable_signaling implementation. v2: Also remove the relase hook, dma_fence_free is the default. Signed-off-by: Daniel Vetter Cc: Rob Clark Cc: linux-arm-msm@vger.kernel.org Cc: freedreno@lists.freedesktop.org --- drivers/gpu/drm/msm/msm_fence.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/drivers/gpu/drm/msm/msm_fence.c b/drivers/gpu/drm/msm/msm_fence.c index 349c12f670eb..77263cf97b20 100644 --- a/drivers/gpu/drm/msm/msm_fence.c +++ b/drivers/gpu/drm/msm/msm_fence.c @@ -119,11 +119,6 @@ static const char *msm_fence_get_timeline_name(struct dma_fence *fence) return f->fctx->name; } -static bool msm_fence_enable_signaling(struct dma_fence *fence) -{ - return true; -} - static bool msm_fence_signaled(struct dma_fence *fence) { struct msm_fence *f = to_msm_fence(fence); @@ -133,10 +128,7 @@ static bool msm_fence_signaled(struct dma_fence *fence) static const struct dma_fence_ops msm_fence_ops = { .get_driver_name = msm_fence_get_driver_name, .get_timeline_name = msm_fence_get_timeline_name, - .enable_signaling = msm_fence_enable_signaling, .signaled = msm_fence_signaled, - .wait = dma_fence_default_wait, - .release = dma_fence_free, }; struct dma_fence *