Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp234294rwb; Wed, 18 Jan 2023 16:59:40 -0800 (PST) X-Google-Smtp-Source: AMrXdXvE8lXjKgUC+3BdnKXBD681ZF9kKS2R60Ud1mSMZ4VEkn+EbqjOBXPuLGt6RmW5adfQCAds X-Received: by 2002:a05:6a20:3c94:b0:b6:a132:7449 with SMTP id b20-20020a056a203c9400b000b6a1327449mr9134721pzj.3.1674089980381; Wed, 18 Jan 2023 16:59:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674089980; cv=none; d=google.com; s=arc-20160816; b=yYrUga6a2DBc6g+gWIX87TcFUCYdffps2BLsvN86T/qHx7vzSP5ZJD5nikH7v/m4jV JWjDWxlFj6h1s0+fEWQrPMauxz5Sx9T4pVrYjiD8DnrIAAO5HhCnLvKgkCWw71K0TsOf ZOwJnattgVJ87QGyw7iK0SFP0rPM34MWqAUNQb/oXJ+9S2WF1YTe8qejynyDWFNcMDvp JFqkCuyp/0NexC88xcIDmXeW38Z/qqSVJGdVjRMA38/YcLcTvdYVuOE4r4keHcD871ec 9pM6Yv7FkmnZLFxibkl8zBfWM1vNu+aCKFudYuE27k49bdiotxlwXKq43+Rb96A3zZ8v S5vA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=U+uy25V3WrUsrpIE0qJH+sPybxJa+sbkcygvMRicprU=; b=tuGJj9qoyke4s8xYeNoWZ2M0+kL/EiCgRVg/O3pNU1aEU534tuTVGZk4uoLc9q0T2S 6F7wVgJXsLvLqgz2rP7AE/9yVcXSjgcNZ7V31bEzKEnbbk0iob91y8As2VaMFWHrGrnb sZzZfGPgNcy6dh17VTofsMDOEg1hm/Rdq/2khFQA2gAtJH7o4N07voKtSudzH+fuDR1l QVI6BBTKQrntU+ITk0BTjK1tYzjk2rD4syA/r/+LgYTpZlVftSBW7Ke4LsrdVhtQ8L46 +cgRj8c66Nu25//8LZyZ6U8eVAQkJIQRP0QVdecbdSfeznFuQ88XmKxjd2nAGUwyvb8x mk1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=ObxgNy00; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f15-20020a65590f000000b00473c36e3b75si17884589pgu.608.2023.01.18.16.59.34; Wed, 18 Jan 2023 16:59:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=ObxgNy00; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229784AbjASAnN (ORCPT + 44 others); Wed, 18 Jan 2023 19:43:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229770AbjASAnF (ORCPT ); Wed, 18 Jan 2023 19:43:05 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F48659E6F for ; Wed, 18 Jan 2023 16:43:00 -0800 (PST) Received: from workpc.. (109-252-117-89.nat.spd-mgts.ru [109.252.117.89]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: dmitry.osipenko) by madras.collabora.co.uk (Postfix) with ESMTPSA id 4B0DF6600864; Thu, 19 Jan 2023 00:42:58 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1674088979; bh=y/gY+85NjTLhBn5wfhTsCF0KzUxBtwU+VsZUtinaWsM=; h=From:To:Cc:Subject:Date:From; b=ObxgNy00VQe6VFaTDvpux7dxn/S4GD77rvxR7sS5Kl5tbMGHTm3GhoMxKkBScly1c nOb27Ks5sppviP4L443OpFtU/LGRlu+dATKoB8MHGEjf9YTWtpoBUrkhBBSYs2RW/G jfVwThzYeCF1fnRGj2PQ2Muu3I+M14Agqv4O2Bd5/8HlZEMMaZIMAEaU1T8onGaail jDzVfbiMHjzhTiGxKW0wLp7/c4SscuXyM8dJq8hLH0SHQfvKUE6E0+thKYxM0NKJhL KkTYqe00PP9H1Io1r3ldlWcXopbCI3UVFJFbCbYawqcS3tkRcIGATyyvxA3sKPG09U mgFx5X8ef3VPQ== From: Dmitry Osipenko To: David Airlie , Gerd Hoffmann , Gurchetan Singh , Chia-I Wu , Daniel Vetter , Rob Clark , =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, kernel@collabora.com, virtualization@lists.linux-foundation.org Subject: [PATCH v1 0/1] Add sync object UAPI support to VirtIO-GPU driver Date: Thu, 19 Jan 2023 03:41:42 +0300 Message-Id: <20230119004143.968942-1-dmitry.osipenko@collabora.com> X-Mailer: git-send-email 2.39.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We have multiple Vulkan context types that are awaiting for the addition of the sync object DRM UAPI support to the VirtIO-GPU kernel driver: 1. Venus context 2. Native contexts (virtio-freedreno, virtio-intel, virtio-amdgpu) Mesa core supports DRM sync object UAPI, providing Vulkan drivers with a generic fencing implementation that we want to utilize. This patch adds initial sync objects support. It creates fundament for a further fencing improvements. Later on we will want to extend the VirtIO-GPU fencing API with passing fence IDs to host for waiting, it will be a new additional VirtIO-GPU IOCTL and more. Today we have several VirtIO-GPU context drivers in works that require VirtIO-GPU to support sync objects UAPI. The patch is heavily inspired by the sync object UAPI implementation of the MSM driver. Dmitry Osipenko (1): drm/virtio: Support sync objects drivers/gpu/drm/virtio/virtgpu_drv.c | 3 +- drivers/gpu/drm/virtio/virtgpu_ioctl.c | 223 ++++++++++++++++++++++++- include/uapi/drm/virtgpu_drm.h | 16 +- 3 files changed, 239 insertions(+), 3 deletions(-) -- 2.39.0