From patchwork Fri May 4 14:09:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Vetter X-Patchwork-Id: 10380667 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 2E0E760353 for ; Fri, 4 May 2018 14:09:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0F27129478 for ; Fri, 4 May 2018 14:09:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 036212947C; Fri, 4 May 2018 14:09:39 +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 9A8F529478 for ; Fri, 4 May 2018 14:09:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751326AbeEDOJh (ORCPT ); Fri, 4 May 2018 10:09:37 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:51821 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751262AbeEDOJh (ORCPT ); Fri, 4 May 2018 10:09:37 -0400 Received: by mail-wm0-f65.google.com with SMTP id j4so4280137wme.1 for ; Fri, 04 May 2018 07:09:36 -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=greSDlI7qAEKNdKrtSRUXcI1gGzDsToYiMcem8jYiFA=; b=MbjxZT1URkZM58lxTW613PV9lBvJGNVUQ7KQHdLv7sE33SdS0NDXjqq4La+zwgn/m3 0PnXXp5SCXX3Jdwaa5xIvRaysyQ0Df64hoEM3lvVTMFu0CK7T+6OFINBS0n7GT3GMYcp 1nWhmZKI9v49QXh0hdIN5rJAgtaBgLl/IiE9w= 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=greSDlI7qAEKNdKrtSRUXcI1gGzDsToYiMcem8jYiFA=; b=Q3S9IvYyID4cAzaaiXKR70AmksTHAbs/Y/BZ52oUfa3M9Ik0OWbkhxopP6svgIl02B /916687j0OkmoXDYfXdqg9GNeiedFCTfJrR4KlosZePY2auyDRKJPzzUPK3/sgvUL9cc nM6aFB9cFZY9JAJbzuVqQdsKXGM0pkgyQtJenJ9oBfTfdjy9uJqsw477y30lwX71fMeu 8Iym8Pgu1aFxNKMj+cO09TPgSj7J3ikdtDTNblDwxf2FDsXe7W8p7D/0a/wF00n7Sh+t CbwevTkXnNOfFv4pDNH0OHF3n4ghK1FeF1TQoMc5Nl1KBFUqVE5xRRMpFmFAJL/z6els J//g== X-Gm-Message-State: ALQs6tD/J6jkR4KhgoWoDrfO136wBwiqeH3kvrk/JOnJ2KP6dHO9m1B+ 5gOoTiHhecngWdboz6PBEkVtRQ== X-Google-Smtp-Source: AB8JxZq4uThF1/TU0yogH/UDugFXlxoSoenNYuixtczRVui6dAJL53eDfI3EfrfB86yXdtM/1itaRg== X-Received: by 2002:aa7:d751:: with SMTP id a17-v6mr36465229eds.220.1525442976281; Fri, 04 May 2018 07:09:36 -0700 (PDT) Received: from phenom.ffwll.local ([2a02:168:5635:0:39d2:f87e:2033:9f6]) by smtp.gmail.com with ESMTPSA id u5-v6sm9325345edi.79.2018.05.04.07.09.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 04 May 2018 07:09:35 -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] drm/msm: Remove unecessary dma_fence_ops Date: Fri, 4 May 2018 16:09:30 +0200 Message-Id: <20180504140930.27557-1-daniel.vetter@ffwll.ch> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180503142603.28513-10-daniel.vetter@ffwll.ch> References: <20180503142603.28513-10-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 *