From patchwork Fri Apr 27 06:17:23 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Vetter X-Patchwork-Id: 10367531 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 7FACC602DC for ; Fri, 27 Apr 2018 06:19:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 702FD28458 for ; Fri, 27 Apr 2018 06:19:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 64E8029301; Fri, 27 Apr 2018 06:19:36 +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 11D0B28458 for ; Fri, 27 Apr 2018 06:19:36 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8ECB16E81F; Fri, 27 Apr 2018 06:18:25 +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 1B71B6E7F2 for ; Fri, 27 Apr 2018 06:17:49 +0000 (UTC) Received: by mail-wm0-x242.google.com with SMTP id n10so814918wmc.1 for ; Thu, 26 Apr 2018 23:17:49 -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=49hY3ohsT0nRMRg6Ibu2r3dtHDyDFOQaejnUGaeaiNY=; b=fiyYBQvJGhDa5IFJlHk7Ar3Pg/emT7Qee+Lsbj0IHWwTFlF2QMsoDGkcLwCA/2YPar zK/Az+j+uARvA61dlNFYR4V4xdN38QAWJmQH/Mp8vmEd28gHErBUHCAsQtNEizRXWh+8 lhQHamJpQyZflAlqicnGyyWkGpq+WlVh3u5T4= 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=49hY3ohsT0nRMRg6Ibu2r3dtHDyDFOQaejnUGaeaiNY=; b=bRsKxKDgAxiAKMB9+gWc5OCWGuSXBXJSSX8Qgsul+7ul2OKprGzNDFauPKeLvnW+/+ ozDnUx+/Yd8Ltv5+p/a+SwvCSSuepNgaiRzNcrsyiWk0m8EgyeZZZt3V3pznnVidGwYZ 81KHmThvi4oAPcLr2OxvfJVJkxmsZ+MHhsptbznPvm0BSMWvKp1lO8mfrF74NhrobjvO hR4qd+nxxjOvVqEtrv5fsoAje/XTClZgFMVIN/0k++t6B0HgP+4+9LiJrk4LZ5uVLpyT 8u8+GzFEEwp1g24DI/Nj237XsR3mUoBX8sTHgbcB492Nt7Q+t0Fyt17RLllatqaD6gV1 1IZg== X-Gm-Message-State: ALQs6tCgrcdAvihi7uVNVbtI9exDE9lXYskimTG29wL9fAFC9gz0ly/o JdDFrIUJQKfgHMR6pSBqvD2/wA== X-Google-Smtp-Source: AB8JxZrxP04MoX6B4atNHGWTQhCWiGkXYyj6hHPulcaGs9GL8soDH3Ru+IcraIwLAYrgxQHB1eUrEA== X-Received: by 2002:a50:b0a2:: with SMTP id j31-v6mr1709666edd.215.1524809867813; Thu, 26 Apr 2018 23:17:47 -0700 (PDT) Received: from phenom.ffwll.local ([2a02:168:5635:0:39d2:f87e:2033:9f6]) by smtp.gmail.com with ESMTPSA id r15-v6sm468897edq.40.2018.04.26.23.17.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Apr 2018 23:17:47 -0700 (PDT) From: Daniel Vetter To: DRI Development Date: Fri, 27 Apr 2018 08:17:23 +0200 Message-Id: <20180427061724.28497-17-daniel.vetter@ffwll.ch> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180427061724.28497-1-daniel.vetter@ffwll.ch> References: <20180427061724.28497-1-daniel.vetter@ffwll.ch> Subject: [Intel-gfx] [PATCH 16/17] drm/virtio: 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: David Airlie , Daniel Vetter , Intel Graphics Development , Gerd Hoffmann , virtualization@lists.linux-foundation.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. Signed-off-by: Daniel Vetter Cc: David Airlie Cc: Gerd Hoffmann Cc: virtualization@lists.linux-foundation.org Reviewed-by: Eric Anholt --- drivers/gpu/drm/virtio/virtgpu_fence.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/drivers/gpu/drm/virtio/virtgpu_fence.c b/drivers/gpu/drm/virtio/virtgpu_fence.c index 23353521f903..00c742a441bf 100644 --- a/drivers/gpu/drm/virtio/virtgpu_fence.c +++ b/drivers/gpu/drm/virtio/virtgpu_fence.c @@ -36,11 +36,6 @@ static const char *virtio_get_timeline_name(struct dma_fence *f) return "controlq"; } -static bool virtio_enable_signaling(struct dma_fence *f) -{ - return true; -} - static bool virtio_signaled(struct dma_fence *f) { struct virtio_gpu_fence *fence = to_virtio_fence(f); @@ -67,9 +62,7 @@ static void virtio_timeline_value_str(struct dma_fence *f, char *str, int size) static const struct dma_fence_ops virtio_fence_ops = { .get_driver_name = virtio_get_driver_name, .get_timeline_name = virtio_get_timeline_name, - .enable_signaling = virtio_enable_signaling, .signaled = virtio_signaled, - .wait = dma_fence_default_wait, .fence_value_str = virtio_fence_value_str, .timeline_value_str = virtio_timeline_value_str, };