]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amdgpu: add mqd_update callback to AMDGPU user queue interface
authorJesse.Zhang <Jesse.Zhang@amd.com>
Fri, 23 Jan 2026 07:37:49 +0000 (15:37 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 23 Feb 2026 19:16:30 +0000 (14:16 -0500)
Extend the AMDGPU user queue function interface to support MQD
updates by adding an mqd_update callback.

v2: add the input paramter struct drm_amdgpu_userq_in in mqd_update

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Jesse Zhang <jesse.zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_userq.h

index 5845d895903467cd608ad92644842113fe9ff313..f4d1d46ae15ec537597bfd862b93c8905901aee3 100644 (file)
@@ -81,6 +81,8 @@ struct amdgpu_usermode_queue {
 struct amdgpu_userq_funcs {
        int (*mqd_create)(struct amdgpu_usermode_queue *queue,
                          struct drm_amdgpu_userq_in *args);
+       int (*mqd_update)(struct amdgpu_usermode_queue *queue,
+                         struct drm_amdgpu_userq_in *args);
        void (*mqd_destroy)(struct amdgpu_usermode_queue *uq);
        int (*unmap)(struct amdgpu_usermode_queue *queue);
        int (*map)(struct amdgpu_usermode_queue *queue);