From patchwork Fri May 4 14:09:01 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Vetter X-Patchwork-Id: 10380661 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 2B9AD60353 for ; Fri, 4 May 2018 14:09:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0C34C29478 for ; Fri, 4 May 2018 14:09:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 00E2E2947C; Fri, 4 May 2018 14:09:11 +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.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,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 6DFF029478 for ; Fri, 4 May 2018 14:09:11 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 96E8D6E86E; Fri, 4 May 2018 14:09:10 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-wm0-x242.google.com (mail-wm0-x242.google.com [IPv6:2a00:1450:400c:c09::242]) by gabe.freedesktop.org (Postfix) with ESMTPS id 74DDB6E1CB for ; Fri, 4 May 2018 14:09:09 +0000 (UTC) Received: by mail-wm0-x242.google.com with SMTP id m198-v6so4303689wmg.3 for ; Fri, 04 May 2018 07:09:09 -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=jNPiaWM+KzFDiaxg02F8wegtfMWzfMMvNXB77Eow218=; b=PCaFtVtZi+TeUa21PT6pUWjhU68IYF9KRisBoBwljRODzeEWhwimmKhGuL4MNK2YBD v0Wa9vq3UKlBCUoRIi/116/vdLvwGEQn0ttRH4jb8TVA+UsKgc4J35qQgTmNpODA640x sNBI/8rGAh+PmW1je+s374m+KBHts1UUbBHfY= 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=jNPiaWM+KzFDiaxg02F8wegtfMWzfMMvNXB77Eow218=; b=Gxl85ExNDOmqet0epXjz32NuoZtI88jbhO5uL8mNWbXcs1GJkwGT6UxfrnzirWzpy5 zFP1Qu3s2kvuVcVmEHFtkzw1KvLanPveIM1AQRufYXIvslWxuwMj/euPbeAo3pdqcIhG QSpwCN1Q988dDHmzORcUy1eUMjD3r7Mm4X9VD5nK7BbqI8/HQ333WbVen6NJt1nMOleD sxoIdLRePzXWn6rBxlg0dnLGyMgxN2yMHXGEiptsNOvFDZEx/hQrkq5Jn6SjigrwU1OT XibRez6X3QW950L5DR0TUfU+ZHvjHTG3M72TtlBzCAI5DwZhBCQAx+829AliUQu4wkq8 y6lw== X-Gm-Message-State: ALQs6tALEERj3+724HD7ltBSrettUdqaT50REpMA1p2PO0RCoriyeLS+ ecQxyt/YiZZM38ZzYFKH1mse89et X-Google-Smtp-Source: AB8JxZoWEPilVI47mkZEWlRsgg4jfAzQKfZ/0Z8dpgaQvKqgN+kWS22JQlmqqOp2ZCt9VLSn/3e1Ug== X-Received: by 2002:a50:a0e6:: with SMTP id 93-v6mr37075154edo.49.1525442948028; Fri, 04 May 2018 07:09:08 -0700 (PDT) Received: from phenom.ffwll.local ([2a02:168:5635:0:39d2:f87e:2033:9f6]) by smtp.gmail.com with ESMTPSA id z7-v6sm8970032edr.6.2018.05.04.07.09.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 04 May 2018 07:09:07 -0700 (PDT) From: Daniel Vetter To: DRI Development Date: Fri, 4 May 2018 16:09:01 +0200 Message-Id: <20180504140901.27471-1-daniel.vetter@ffwll.ch> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180503142603.28513-13-daniel.vetter@ffwll.ch> References: <20180503142603.28513-13-daniel.vetter@ffwll.ch> Subject: [Intel-gfx] [PATCH] drm/vc4: 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 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. Reviewed-by: Eric Anholt Signed-off-by: Daniel Vetter Cc: Eric Anholt --- drivers/gpu/drm/vc4/vc4_fence.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/drivers/gpu/drm/vc4/vc4_fence.c b/drivers/gpu/drm/vc4/vc4_fence.c index dbf5a5a5d5f5..580214e2158c 100644 --- a/drivers/gpu/drm/vc4/vc4_fence.c +++ b/drivers/gpu/drm/vc4/vc4_fence.c @@ -33,11 +33,6 @@ static const char *vc4_fence_get_timeline_name(struct dma_fence *fence) return "vc4-v3d"; } -static bool vc4_fence_enable_signaling(struct dma_fence *fence) -{ - return true; -} - static bool vc4_fence_signaled(struct dma_fence *fence) { struct vc4_fence *f = to_vc4_fence(fence); @@ -49,8 +44,5 @@ static bool vc4_fence_signaled(struct dma_fence *fence) const struct dma_fence_ops vc4_fence_ops = { .get_driver_name = vc4_fence_get_driver_name, .get_timeline_name = vc4_fence_get_timeline_name, - .enable_signaling = vc4_fence_enable_signaling, .signaled = vc4_fence_signaled, - .wait = dma_fence_default_wait, - .release = dma_fence_free, };