<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Tue, Mar 25, 2025 at 8:42 AM Aaron Ruby <<a href="mailto:aruby@qnx.com">aruby@qnx.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">From 73e0b6fb04d90b70de1f40e8e2ffc8fe497fa204 Mon Sep 17 00:00:00 2001<br>
From: Aaron Ruby <<a href="mailto:aruby@qnx.com" target="_blank">aruby@qnx.com</a>><br>
Date: Mon, 24 Mar 2025 16:18:43 -0400<br>
Subject: [PATCH] drm/virtio: Add capset definitions<br>
<br>
Since the context-type additions to the virtio-gpu spec, these have been<br>
defined locally in guest user-space, and virtio-gpu backend library code.<br>
<br>
Now, these capsets have been stabilized, and should be defined in<br>
a common space, in both the virtio_gpu header, and alongside the virtgpu_drm<br>
interface that they apply to.<br>
---<br>
include/uapi/drm/virtgpu_drm.h | 6 ++++++<br>
include/uapi/linux/virtio_gpu.h | 3 ++-<br>
2 files changed, 8 insertions(+), 1 deletion(-)<br>
<br>
diff --git a/include/uapi/drm/virtgpu_drm.h b/include/uapi/drm/virtgpu_drm.h<br>
index c2ce71987e9b..9debb320c34b 100644<br>
--- a/include/uapi/drm/virtgpu_drm.h<br>
+++ b/include/uapi/drm/virtgpu_drm.h<br>
@@ -163,6 +163,12 @@ struct drm_virtgpu_3d_wait {<br>
__u32 flags;<br>
};<br>
<br>
+#define VIRTGPU_DRM_CAPSET_VIRGL 1<br>
+#define VIRTGPU_DRM_CAPSET_VIRGL2 2<br>
+#define VIRTGPU_DRM_CAPSET_GFXSTREAM_VULKAN 3<br>
+#define VIRTGPU_DRM_CAPSET_VENUS 4<br>
+#define VIRTGPU_DRM_CAPSET_CROSS_DOMAIN 5<br>
+#define VIRTGPU_DRM_CAPSET_DRM 6<br>
struct drm_virtgpu_get_caps {<br>
__u32 cap_set_id;<br>
__u32 cap_set_ver;<br>
diff --git a/include/uapi/linux/virtio_gpu.h b/include/uapi/linux/virtio_gpu.h<br>
index bf2c9cabd207..be109777d10d 100644<br>
--- a/include/uapi/linux/virtio_gpu.h<br>
+++ b/include/uapi/linux/virtio_gpu.h<br>
@@ -309,8 +309,9 @@ struct virtio_gpu_cmd_submit {<br>
<br>
#define VIRTIO_GPU_CAPSET_VIRGL 1<br>
#define VIRTIO_GPU_CAPSET_VIRGL2 2<br>
-/* 3 is reserved for gfxstream */<br>
+#define VIRTIO_GPU_CAPSET_GFXSTREAM_VULKAN 3<br>
#define VIRTIO_GPU_CAPSET_VENUS 4<br>
+#define VIRTIO_GPU_CAPSET_CROSS_DOMAIN 5<br>
#define VIRTIO_GPU_CAPSET_DRM 6<br>
<br>
/* VIRTIO_GPU_CMD_GET_CAPSET_INFO */<br>
--<br>
2.25.1<br></blockquote><div><br></div><div>Reviewed-by: Gurchetan Singh <<span style="font-family:"Google Sans",Roboto,RobotoDraft,Helvetica,Arial,sans-serif;font-size:14px"><a href="mailto:gurchetansingh@chromium.org">gurchetansingh@chromium.org</a>></span></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
----------------------------------------------------------------------<br>
This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.<br>
</blockquote></div></div>