From patchwork Thu Jun 10 23:24:53 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Kasireddy, Vivek" X-Patchwork-Id: 12314297 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4EF9BC48BDF for ; Thu, 10 Jun 2021 23:37:32 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1592861359 for ; Thu, 10 Jun 2021 23:37:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1592861359 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4F7856EE1B; Thu, 10 Jun 2021 23:37:31 +0000 (UTC) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by gabe.freedesktop.org (Postfix) with ESMTPS id C1F9D6EE2D for ; Thu, 10 Jun 2021 23:37:30 +0000 (UTC) IronPort-SDR: lQUaGwPTarHu6iDObBkGwqGTAgu9NMeMqmYQdan4SnRjZ2hHnpLPYZUB5upk/KueX1KwZ8dVWE 6HqBiNkCYZpg== X-IronPort-AV: E=McAfee;i="6200,9189,10011"; a="291059221" X-IronPort-AV: E=Sophos;i="5.83,264,1616482800"; d="scan'208";a="291059221" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jun 2021 16:37:29 -0700 IronPort-SDR: Pb8uxr7R9J4YEiD0BX+kPEK3Y0ljR1Vod140iFCgVUcYSBEYIyhWXAvt0pbdwnE36yj/Hpfu0l DnsosMOMCbPw== X-IronPort-AV: E=Sophos;i="5.83,264,1616482800"; d="scan'208";a="414275086" Received: from vkasired-desk2.fm.intel.com ([10.105.128.127]) by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jun 2021 16:37:29 -0700 From: Vivek Kasireddy To: dri-devel@lists.freedesktop.org Subject: [PATCH v1 0/3] drm/virtio: Add a default synchronization mechanism for blobs Date: Thu, 10 Jun 2021 16:24:53 -0700 Message-Id: <20210610232456.671905-1-vivek.kasireddy@intel.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Dongwon Kim , Tina Zhang , Vivek Kasireddy , Gerd Hoffmann Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" This 3 patch series is the counterpart for this other series: https://lists.nongnu.org/archive/html/qemu-devel/2021-06/msg02906.html It makes it possible for the Guest to wait until the Host has completely consumed its FB before reusing it again thereby ensuring that both the parties don't access it at the same time. Cc: Gerd Hoffmann Cc: Dongwon Kim Cc: Tina Zhang Vivek Kasireddy (3): drm/virtio: Add fences for Guest blobs drm/virtio: Prepare resource_flush to accept a fence drm/virtio: Add the fence in resource_flush if present drivers/gpu/drm/virtio/virtgpu_drv.h | 4 +- drivers/gpu/drm/virtio/virtgpu_plane.c | 64 ++++++++++++++++++++------ drivers/gpu/drm/virtio/virtgpu_vq.c | 7 ++- 3 files changed, 59 insertions(+), 16 deletions(-)