summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSunil Khatri <sunil.khatri@amd.com>2026-02-26 21:14:27 +0530
committerAlex Deucher <alexander.deucher@amd.com>2026-03-02 16:41:31 -0500
commitd8e760b7996df37b6c1f25ca8a4a5645f144f63c (patch)
tree7c5cfab187427293eff39bff98425ab6e2b85d21
parent2d60e9898a1d4f66f7ec1954e1f086490ce6560b (diff)
downloadlwn-d8e760b7996df37b6c1f25ca8a4a5645f144f63c.tar.gz
lwn-d8e760b7996df37b6c1f25ca8a4a5645f144f63c.zip
drm/amdgpu: update type for num_syncobj_handles in drm_amdgpu_userq_signal
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>
-rw-r--r--include/uapi/drm/amdgpu_drm.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/uapi/drm/amdgpu_drm.h b/include/uapi/drm/amdgpu_drm.h
index ebbd861ef0bc..3ab41571f511 100644
--- a/include/uapi/drm/amdgpu_drm.h
+++ b/include/uapi/drm/amdgpu_drm.h
@@ -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.