From: Alex Deucher <alexander.deucher@amd.com>
To: <amd-gfx@lists.freedesktop.org>
Cc: Alex Deucher <alexander.deucher@amd.com>,
Yogesh Mohan Marimuthu <yogesh.mohanmarimuthu@amd.com>
Subject: [PATCH 09/11] drm/amdgpu: add UAPI to create user queue gangs
Date: Wed, 2 Dec 2026 10:51:35 -0500 [thread overview]
Message-ID: <20261202155137.1102730-9-alexander.deucher@amd.com> (raw)
In-Reply-To: <20261202155137.1102730-1-alexander.deucher@amd.com>
Queues in a gang will schedule together.
v2: leader/follower rename
Cc: Yogesh Mohan Marimuthu <yogesh.mohanmarimuthu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
---
include/uapi/drm/amdgpu_drm.h | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/include/uapi/drm/amdgpu_drm.h b/include/uapi/drm/amdgpu_drm.h
index 2379618f5df1f..b805b05e9e45e 100644
--- a/include/uapi/drm/amdgpu_drm.h
+++ b/include/uapi/drm/amdgpu_drm.h
@@ -340,6 +340,7 @@ union drm_amdgpu_ctx {
/* user queue IOCTL operations */
#define AMDGPU_USERQ_OP_CREATE 1
#define AMDGPU_USERQ_OP_FREE 2
+#define AMDGPU_USERQ_OP_CREATE_GANG 3
/* queue priority levels */
/* low < normal low < normal high < high */
@@ -422,6 +423,15 @@ struct drm_amdgpu_userq_in {
__u64 mqd_size;
};
+struct drm_amdgpu_userq_in_create_gang {
+ /** AMDGPU_USERQ_OP_* */
+ __u32 op;
+ __u32 pad;
+ /** Queue ids passed for operation USERQ_OP_CREATE_GANG */
+ __u32 leader_queue_id;
+ __u32 follower_queue_id;
+};
+
/* The structure to carry output of userqueue ops */
struct drm_amdgpu_userq_out {
/**
@@ -435,6 +445,7 @@ struct drm_amdgpu_userq_out {
union drm_amdgpu_userq {
struct drm_amdgpu_userq_in in;
+ struct drm_amdgpu_userq_in_create_gang in_cg;
struct drm_amdgpu_userq_out out;
};
--
2.56.1
next prev parent reply other threads:[~2026-12-02 15:52 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-02 15:51 [PATCH 01/11] drm/amdgpu/userq: Add INFO IOCTL query for doorbell ranges Alex Deucher
2026-12-02 15:51 ` [PATCH 02/11] drm/amdgpu/mes11: add API for gang submit Alex Deucher
2026-12-02 15:51 ` [PATCH 03/11] drm/amdgpu/mes: add callback " Alex Deucher
2026-12-02 15:51 ` [PATCH 04/11] drm/amdgpu/mes11: add support for setting " Alex Deucher
2026-12-02 15:51 ` [PATCH 05/11] drm/amdgpu/mes12: " Alex Deucher
2026-12-02 15:51 ` [PATCH 06/11] drm/amdgpu/userq: add callback for gang setup Alex Deucher
2026-12-02 15:51 ` [PATCH 07/11] drm/amdgpu/userq/mes: implement set gang submit Alex Deucher
2026-12-02 15:51 ` [PATCH 08/11] drm/amdgpu/userq: add handling for set_gang Alex Deucher
2026-12-02 16:10 ` sashiko-bot
2026-12-02 15:51 ` Alex Deucher [this message]
2026-12-02 16:16 ` [PATCH 09/11] drm/amdgpu: add UAPI to create user queue gangs Mohan Marimuthu, Yogesh
2026-12-02 15:51 ` [PATCH 10/11] drm/amdgpu/userq: enable support for creating gangs Alex Deucher
2026-12-02 16:09 ` sashiko-bot
2026-12-02 15:51 ` [PATCH 11/11] drm/amdgpu: bump driver version for userq updates Alex Deucher
-- strict thread matches above, loose matches on Subject: below --
2026-11-18 22:37 [PATCH 01/11] drm/amdgpu/userq: Add INFO IOCTL query for doorbell ranges Alex Deucher
2026-11-18 22:37 ` [PATCH 09/11] drm/amdgpu: add UAPI to create user queue gangs Alex Deucher
2026-11-20 5:15 ` Mohan Marimuthu, Yogesh
2026-11-20 19:28 ` Alex Deucher
2026-11-21 17:03 ` Mohan Marimuthu, Yogesh
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=20261202155137.1102730-9-alexander.deucher@amd.com \
--to=alexander.deucher@amd.com \
--cc=amd-gfx@lists.freedesktop.org \
--cc=yogesh.mohanmarimuthu@amd.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.