From patchwork Thu May 3 14:26: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: 10378537 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 A60D560353 for ; Thu, 3 May 2018 14:27:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 954882890C for ; Thu, 3 May 2018 14:27:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8A4C92899E; Thu, 3 May 2018 14:27:54 +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=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 2EA0B2890C for ; Thu, 3 May 2018 14:27:54 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 459BE6E724; Thu, 3 May 2018 14:26:30 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-wm0-x241.google.com (mail-wm0-x241.google.com [IPv6:2a00:1450:400c:c09::241]) by gabe.freedesktop.org (Postfix) with ESMTPS id C698B6E714 for ; Thu, 3 May 2018 14:26:26 +0000 (UTC) Received: by mail-wm0-x241.google.com with SMTP id a67so21036620wmf.3 for ; Thu, 03 May 2018 07:26:26 -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=50KESgrvJMbg5iNohip9HNOj3w05mZ94hdBgP6G+2rw=; b=jV4pMgumz502Dtj8ZoInOAtFui0a8fMLCu2gu5Hvf8RQ2EPhmHaj+atCLnGCnLRSMn +//E6t1kobHJaXokWQui8/LG1C+UPWZKN48LJZZkWteKfscVviLc4BOoIIrassXAB2Db TqgxNVt8NrYiqE1BdvxhVr+jRwrCHBe3t732A= 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=50KESgrvJMbg5iNohip9HNOj3w05mZ94hdBgP6G+2rw=; b=cAJFPEwJV1ZQ1Qr1bBpLT/YcMZNehYOMOSwrW961pFzU+yZgrvTC7GN6K8JKLMyOdG po+ykw4Qnx+2QD4Rr+u/8goKsJO/p3fgc4UUD/RIAIumjZGD4iKv5tPVk02g5u1Kntm1 lYcd4Ztazdji3RPbJPPdlPj7Hbb3aUnBjSpP+G0cJDSueN7Voix1oAugHJbT3a/6NayD B//G0GA7jGvHUfol+6m3aD9a43wly2QSCxkikf/ka+ySRRmUM9mX5LgdoIYlqfBq0MT6 1fLVAfofyCDoJAicYkIDaC2D9FynJLHGNX2az72I7HUltncwLOVxI8J6iYAhlojpJv+v bnKA== X-Gm-Message-State: ALQs6tDCf3xBS+zuXaFUHQAGTympd1VTfZXfvUWUb0pPZjb3IiUpHEzd 0qlmW4GhPf5tzk3pT08NZR0rTg== X-Google-Smtp-Source: AB8JxZoQ2AORkWyxUOAgjfjAaUJ+6elM/q2ZMJiMvYI3+pb4OJ37zxDG26CMVkvzAxYdf6AjzFBodQ== X-Received: by 2002:a50:949c:: with SMTP id s28-v6mr31238117eda.201.1525357585513; Thu, 03 May 2018 07:26:25 -0700 (PDT) Received: from phenom.ffwll.local ([2a02:168:5635:0:39d2:f87e:2033:9f6]) by smtp.gmail.com with ESMTPSA id u5-v6sm8095647edi.79.2018.05.03.07.26.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 03 May 2018 07:26:24 -0700 (PDT) From: Daniel Vetter To: DRI Development Date: Thu, 3 May 2018 16:26:01 +0200 Message-Id: <20180503142603.28513-14-daniel.vetter@ffwll.ch> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180503142603.28513-1-daniel.vetter@ffwll.ch> References: <20180503142603.28513-1-daniel.vetter@ffwll.ch> Subject: [Intel-gfx] [PATCH 13/15] drm/vgem: 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 , Kees Cook , Cihangir Akturk 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. Also remove the ->signaled callback, vgem can't peek ahead with a fastpath, returning false is the default implementation. Signed-off-by: Daniel Vetter Cc: Kees Cook Cc: Cihangir Akturk Cc: Sean Paul Cc: Daniel Vetter --- drivers/gpu/drm/vgem/vgem_fence.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/drivers/gpu/drm/vgem/vgem_fence.c b/drivers/gpu/drm/vgem/vgem_fence.c index b28876c222b4..75adedeaa384 100644 --- a/drivers/gpu/drm/vgem/vgem_fence.c +++ b/drivers/gpu/drm/vgem/vgem_fence.c @@ -43,16 +43,6 @@ static const char *vgem_fence_get_timeline_name(struct dma_fence *fence) return "unbound"; } -static bool vgem_fence_signaled(struct dma_fence *fence) -{ - return false; -} - -static bool vgem_fence_enable_signaling(struct dma_fence *fence) -{ - return true; -} - static void vgem_fence_release(struct dma_fence *base) { struct vgem_fence *fence = container_of(base, typeof(*fence), base); @@ -76,11 +66,7 @@ static void vgem_fence_timeline_value_str(struct dma_fence *fence, char *str, static const struct dma_fence_ops vgem_fence_ops = { .get_driver_name = vgem_fence_get_driver_name, .get_timeline_name = vgem_fence_get_timeline_name, - .enable_signaling = vgem_fence_enable_signaling, - .signaled = vgem_fence_signaled, - .wait = dma_fence_default_wait, .release = vgem_fence_release, - .fence_value_str = vgem_fence_value_str, .timeline_value_str = vgem_fence_timeline_value_str, };