From: Dmitry Osipenko <dmitry.osipenko@collabora.com>
To: Honglei Huang <honghuan@amd.com>,
Akihiko Odaki <odaki@rsg.ci.i.u-tokyo.ac.jp>,
David Airlie <airlied@redhat.com>,
Gerd Hoffmann <kraxel@redhat.com>
Cc: Gurchetan Singh <gurchetansingh@chromium.org>,
Chia-I Wu <olvaffe@gmail.com>, Ray Huang <Ray.Huang@amd.com>,
dri-devel@lists.freedesktop.org, virtualization@lists.linux.dev,
linux-kernel@vger.kernel.org
Subject: Re: [RFC PATCH v10 1/4] drm/virtio: add VIRTIO_GPU_CAPSET_ROCM capability
Date: Fri, 27 Nov 2026 16:19:05 +0300 [thread overview]
Message-ID: <f90f752c-d9f8-4280-bed1-1059c075e42d@collabora.com> (raw)
In-Reply-To: <20261106082625.812860-2-honghuan@amd.com>
On 11/6/26 11:26, Honglei Huang wrote:
> Add a new GPU capability set VIRTIO_GPU_CAPSET_ROCM to support ROCm
> compute workloads in virtualized environments.
>
> ROCm (Radeon Open Compute) is AMD's open-source software platform for
> GPU compute and HPC workloads.
>
> ID 7 is already used by the OpenCL capset (VIRCL), and gfxstream's
> rutabaga_gfx has already claimed IDs 7-9 ahead of any spec or kernel
> header update, so ROCm uses ID 10 to avoid a further collision. A
> matching virtio-gpu specification change is in progress to register this
> assignment.
>
> Also add the matching VIRTGPU_DRM_CAPSET_ROCM alias in virtgpu_drm.h for
> consistency with the other capability sets exposed through
> DRM_IOCTL_VIRTGPU_GET_CAPS.
>
> Signed-off-by: Honglei Huang <honghuan@amd.com>
> ---
> include/uapi/drm/virtgpu_drm.h | 1 +
> include/uapi/linux/virtio_gpu.h | 1 +
> 2 files changed, 2 insertions(+)
>
> diff --git a/include/uapi/drm/virtgpu_drm.h b/include/uapi/drm/virtgpu_drm.h
> index 95587e12ae..9b886e9772 100644
> --- a/include/uapi/drm/virtgpu_drm.h
> +++ b/include/uapi/drm/virtgpu_drm.h
> @@ -170,6 +170,7 @@ struct drm_virtgpu_3d_wait {
> #define VIRTGPU_DRM_CAPSET_VENUS 4
> #define VIRTGPU_DRM_CAPSET_CROSS_DOMAIN 5
> #define VIRTGPU_DRM_CAPSET_DRM 6
> +#define VIRTGPU_DRM_CAPSET_ROCM 10
> struct drm_virtgpu_get_caps {
> __u32 cap_set_id;
> __u32 cap_set_ver;
> diff --git a/include/uapi/linux/virtio_gpu.h b/include/uapi/linux/virtio_gpu.h
> index 4f530d9005..e22049835e 100644
> --- a/include/uapi/linux/virtio_gpu.h
> +++ b/include/uapi/linux/virtio_gpu.h
> @@ -321,6 +321,7 @@ struct virtio_gpu_cmd_submit {
> #define VIRTIO_GPU_CAPSET_VENUS 4
> #define VIRTIO_GPU_CAPSET_CROSS_DOMAIN 5
> #define VIRTIO_GPU_CAPSET_DRM 6
> +#define VIRTIO_GPU_CAPSET_ROCM 10
>
> /* VIRTIO_GPU_CMD_GET_CAPSET_INFO */
> struct virtio_gpu_get_capset_info {
Could you please give a link to the spec change discussion? Please send
it to virtio-comment ML if haven't been done yet.
--
Best regards,
Dmitry
next prev parent reply other threads:[~2026-11-27 13:19 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-06 8:26 [RFC PATCH v10 0/4] drm/virtio: userptr blobs for native-context compute Honglei Huang
2026-11-06 8:26 ` [RFC PATCH v10 1/4] drm/virtio: add VIRTIO_GPU_CAPSET_ROCM capability Honglei Huang
2026-11-27 13:19 ` Dmitry Osipenko [this message]
2026-11-06 8:26 ` [RFC PATCH v10 2/4] drm/virtio: add userptr blob resource to the UAPI Honglei Huang
2026-11-27 13:19 ` Dmitry Osipenko
2026-11-06 8:26 ` [RFC PATCH v10 3/4] drm/virtio: implement userptr resource support Honglei Huang
2026-11-27 13:45 ` Dmitry Osipenko
2026-11-06 8:26 ` [RFC PATCH v10 4/4] drm/virtio: wire blob ioctl creation to userptr objects Honglei Huang
2026-11-27 13:59 ` Dmitry Osipenko
2026-11-25 6:41 ` [RFC PATCH v10 0/4] drm/virtio: userptr blobs for native-context compute Huang, Honglei
2026-11-27 14:32 ` Dmitry Osipenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f90f752c-d9f8-4280-bed1-1059c075e42d@collabora.com \
--to=dmitry.osipenko@collabora.com \
--cc=Ray.Huang@amd.com \
--cc=airlied@redhat.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=gurchetansingh@chromium.org \
--cc=honghuan@amd.com \
--cc=kraxel@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=odaki@rsg.ci.i.u-tokyo.ac.jp \
--cc=olvaffe@gmail.com \
--cc=virtualization@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®