]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/amdgpu: update type for num_syncobj_handles in drm_amdgpu_userq_wait
authorSunil Khatri <sunil.khatri@amd.com>
Thu, 26 Feb 2026 15:48:51 +0000 (21:18 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 2 Mar 2026 21:42:01 +0000 (16:42 -0500)
update the type for num_syncobj_handles from __u32 to _u16 with
required padding.

This breaks the UAPI for big-endian platforms but this is deliberate
and harmless since userqueues is still a beta feature. It is enabled
via module parameter and need the right fw support to work.

Signed-off-by: Sunil Khatri <sunil.khatri@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
include/uapi/drm/amdgpu_drm.h

index 3ab41571f511d06687b9292ee5a970c2e1e24fc9..9f3090db2f1637160be12714ad99e02f57e910bd 100644 (file)
@@ -565,7 +565,8 @@ struct drm_amdgpu_userq_wait {
         * @num_syncobj_handles: A count that represents the number of syncobj handles in
         * @syncobj_handles.
         */
-       __u32   num_syncobj_handles;
+       __u16   num_syncobj_handles;
+       __u16   pad0;
        /**
         * @num_bo_read_handles: A count that represents the number of read BO handles in
         * @bo_read_handles.