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: 10506297 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 B9FA6603D7 for ; Wed, 4 Jul 2018 09:29:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ACE8328DAF for ; Wed, 4 Jul 2018 09:29:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A0E4F28DC3; Wed, 4 Jul 2018 09:29:40 +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=-5.2 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=unavailable 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 6F8F928DAF for ; Wed, 4 Jul 2018 09:29:40 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 71BAD6EB2C; Wed, 4 Jul 2018 09:29:24 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-ed1-x542.google.com (mail-ed1-x542.google.com [IPv6:2a00:1450:4864:20::542]) by gabe.freedesktop.org (Postfix) with ESMTPS id 006A86EB23 for ; Wed, 4 Jul 2018 09:29:19 +0000 (UTC) Received: by mail-ed1-x542.google.com with SMTP id t3-v6so3573829eds.3 for ; Wed, 04 Jul 2018 02:29:19 -0700 (PDT) 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=JRW6zwGvZwlhiyzqTvkuK9XRlNxftd+HIktBEnidXTB9UaHe+rAetsy25BKeyg34NY LU9mlCeuDw/zOIrS9NAG26XqQCIXIn4QoFekB555VZWkSXXkTAOJ8mmIpcKLAyY5Um+c J0DNCJaUF2bfYvWaiNfWnoaB2bImVM3agvMjSv27RA6DYcQntK51VunuspYVvqN9ivUn 3b+hJDiQItldEAummqDEyZN1MftEObxjmVKMrNC6Ef/mwlQKRZt/eTBll6q+sn73Fn+4 fVxrHyrHZBToqeXlwbwmfLefUEO9mraRY1lQu7AMBn2kL4iJMnNN+AAzY8dRp5qnYpRw fAwg== X-Gm-Message-State: APt69E1b0JJH5FXAN5LxFgtFisKpUhIJRCeY7yWlA6uwJk0xPDzd0FM4 BQ0v9U71DHj2UiKmbboVUem0IA== 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 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> Subject: [Intel-gfx] [PATCH 2/5] drm/msm: Remove unecessary dma_fence_ops X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Daniel Vetter , Intel Graphics Development , freedreno@lists.freedesktop.org, linux-arm-msm@vger.kernel.org MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" 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 *