[PATCH 6/8] drm/amdgpu/userq: add callback for gang setup

Alex Deucher alexander.deucher at amd.com
Mon Apr 28 21:20:48 UTC 2025


Two queues can be ganged and will schedule together.

Acked-by: Sunil Khatri <sunil.khatri at amd.com>
Signed-off-by: Alex Deucher <alexander.deucher at amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_userq.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_userq.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_userq.h
index 35a08ee59d893..ca11f7748d031 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_userq.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_userq.h
@@ -80,6 +80,9 @@ struct amdgpu_userq_funcs {
 		   struct amdgpu_usermode_queue *queue);
 	int (*reset)(struct amdgpu_userq_mgr *uq_mgr,
 		     struct amdgpu_usermode_queue *queue);
+	int (*set_gang)(struct amdgpu_userq_mgr *uq_mgr,
+			struct amdgpu_usermode_queue *primary_queue,
+			struct amdgpu_usermode_queue *secondary_queue);
 };
 
 /* Usermode queues for gfx */
-- 
2.49.0



More information about the amd-gfx mailing list