Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/amdgpu: update type for num_syncobj_handles in drm_amdgpu_userq_wait

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>

authored by

Sunil Khatri and committed by
Alex Deucher
c561d232 d8e760b7

+2 -1
+2 -1
include/uapi/drm/amdgpu_drm.h
··· 565 565 * @num_syncobj_handles: A count that represents the number of syncobj handles in 566 566 * @syncobj_handles. 567 567 */ 568 - __u32 num_syncobj_handles; 568 + __u16 num_syncobj_handles; 569 + __u16 pad0; 569 570 /** 570 571 * @num_bo_read_handles: A count that represents the number of read BO handles in 571 572 * @bo_read_handles.