AMD General

MES firmware names the ganged queues as slave and master. Mesa radv calls it as 
follower and leader.

Can the primary/secondary naming please be changed into and existing name 
slave/master.

Thank you,
Yogesh

________________________________
From: Alex Deucher <[email protected]>
Sent: Thursday, November 19, 2026 4:07 AM
To: [email protected] <[email protected]>
Cc: Deucher, Alexander <[email protected]>; Mohan Marimuthu, Yogesh 
<[email protected]>
Subject: [PATCH 09/11] drm/amdgpu: add UAPI to create user queue gangs

Queues in a gang will schedule together.

Cc: Yogesh Mohan Marimuthu <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
---
 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 86d42a5d683c0..bfb982f1d1757 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   primary_queue_id;
+       __u32   secondary_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

Reply via email to