]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/amdgpu: update type for num_syncobj_handles in drm_amdgpu_userq_signal
authorSunil Khatri <sunil.khatri@amd.com>
Thu, 26 Feb 2026 15:44:27 +0000 (21:14 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 2 Mar 2026 21:41:31 +0000 (16:41 -0500)
update the type for num_syncobj_handles from __u64 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 ebbd861ef0bc6453aa3b8ce6cc5b52ad4f690c64..3ab41571f511d06687b9292ee5a970c2e1e24fc9 100644 (file)
@@ -479,7 +479,9 @@ struct drm_amdgpu_userq_signal {
         * @num_syncobj_handles: A count that represents the number of syncobj handles in
         * @syncobj_handles.
         */
-       __u64   num_syncobj_handles;
+       __u16   num_syncobj_handles;
+       __u16   pad0;
+       __u32   pad1;
        /**
         * @bo_read_handles: The list of BO handles that the submitted user queue job
         * is using for read only. This will update BO fences in the kernel.