From patchwork Thu May 3 14:26:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Vetter X-Patchwork-Id: 10378533 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 0696E60353 for ; Thu, 3 May 2018 14:27:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E5D8029194 for ; Thu, 3 May 2018 14:27:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D9F2229196; Thu, 3 May 2018 14:27:46 +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 0384429194 for ; Thu, 3 May 2018 14:27:45 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 29B986E71F; Thu, 3 May 2018 14:26:29 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-wm0-x244.google.com (mail-wm0-x244.google.com [IPv6:2a00:1450:400c:c09::244]) by gabe.freedesktop.org (Postfix) with ESMTPS id DDD9D6E716 for ; Thu, 3 May 2018 14:26:27 +0000 (UTC) Received: by mail-wm0-x244.google.com with SMTP id n10so30666171wmc.1 for ; Thu, 03 May 2018 07:26:27 -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=zKR9SUwCulooo3Uwo5iNCh1v4YQbCgTukK015IBh6nQ=; b=VtOB5Xlsa25S0v/5vQ/NPPa+CR5mjvWLEnepBLn+/4vPhgAr0MalVaLfmsRJ/my2JL ttOA01kUAvoDaEUmQ78ChnPPBjtKbq8fQWaXUYqqUGq/RQFA2gH+cFaYgQ2+OZ0LXxOV mz/Meza1RD1iCwod8LlI4nUiXp+zozAcgYyvw= 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=zKR9SUwCulooo3Uwo5iNCh1v4YQbCgTukK015IBh6nQ=; b=nztwTjft37aqjs3XNaralvu/X+kcDOgLGv8jKeY8dmUCa8K0PamnT/1H3Mrf8uHFu2 UWt1a+5QYhnzcWh6/X5/cxgxTQ5b6DVg7AaaqYwXlEp/t+9oTcQCnbJBHqbc4xubhZtp jqy1rYsoRjLAfxhdlMBm4jbMpH7Uxy7+gWGPgCvTylN5eaMIpmmHtuSC+qQCXjZ7ySLA s3nM71BlGGbtoE2qT/FuFQ9zD/1VOTTtXp9EQo1A/F/qNuXsfajpVSjCcNlkYOSrA8kT tzz7K+8vBFkg6CtIQaRO/dwRGrAtc2xVs3eZbowsKfylZlgUx8sxwVPuezaeD72q8um4 7nOw== X-Gm-Message-State: ALQs6tDkVEi2CQoGXrOCpU132KodHtqzArV5FhWsE1u8XObi2Fh18u9l CuDqEBYUhNOymz9LHgblpAuxSg== X-Google-Smtp-Source: AB8JxZqKAW35ngv3c+K1RgefrZ/Lzk0u0a+p7TgYKsTQ2SxUJMicOCh3gHGPiKLZNVdLBiJ6ZdVh/g== X-Received: by 2002:a50:ca01:: with SMTP id d1-v6mr32643712edi.187.1525357586635; Thu, 03 May 2018 07:26:26 -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.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 03 May 2018 07:26:25 -0700 (PDT) From: Daniel Vetter To: DRI Development Date: Thu, 3 May 2018 16:26:02 +0200 Message-Id: <20180503142603.28513-15-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 14/15] 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. Reviewed-by: Eric Anholt Signed-off-by: Daniel Vetter Cc: David Airlie Cc: Gerd Hoffmann Cc: virtualization@lists.linux-foundation.org --- 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, };