Public Hi Alex,
Yes, please align Kernel to mesa radv follower/leader terminology. Thank you, Yogesh ________________________________ From: Alex Deucher <[email protected]> Sent: Saturday, November 21, 2026 12:58 AM To: Mohan Marimuthu, Yogesh <[email protected]> Cc: Deucher, Alexander <[email protected]>; [email protected] <[email protected]> Subject: Re: [PATCH 09/11] drm/amdgpu: add UAPI to create user queue gangs On Fri, Nov 20, 2026 at 12:21 AM Mohan Marimuthu, Yogesh <[email protected]> wrote: > > 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. I went with primary and secondary because some people find master/slave objectionable. There was an effort in the kernel a few years ago to remove the usage of those terms. If you feel strongly, I can change them to align with mesa. Alex > > 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 >
