Skip to content

Commit d297eed

Browse files
jameszhu-amdalexdeucher
authored andcommitted
drm/amdkfd: bump kfd ioctl minor version for event age availability
Bump the minor version to declare event age tracking feature is now available. In kernel amdgpu driver, kfd_wait_on_events is used to support user space signal event wait function. For multiple threads waiting on same event scenery, race condition could occur since some threads after checking signal condition, before calling kfd_wait_on_events, the event interrupt could be fired and wake up other thread which are sleeping on this event. Then those threads could fall into sleep without waking up again. Adding event age tracking in both kernel and user mode, will help avoiding this race condition. Proposed ROCT-Thunk-Interface: ROCm/ROCT-Thunk-Interface@efdbf6c ROCm/ROCT-Thunk-Interface@1820ae0 Proposed ROCR-Runtime: ROCm/ROCR-Runtime@master...zhums:ROCR-Runtime:new_event_wait_review ROCm/ROCR-Runtime@e1f5bdb ROCm/ROCR-Runtime@7d26afd Signed-off-by: James Zhu <James.Zhu@amd.com> Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 973fdde commit d297eed

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

include/uapi/linux/kfd_ioctl.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,10 @@
3939
* - 1.11 - Add unified memory for ctx save/restore area
4040
* - 1.12 - Add DMA buf export ioctl
4141
* - 1.13 - Add debugger API
42+
* - 1.14 - Update kfd_event_data
4243
*/
4344
#define KFD_IOCTL_MAJOR_VERSION 1
44-
#define KFD_IOCTL_MINOR_VERSION 13
45+
#define KFD_IOCTL_MINOR_VERSION 14
4546

4647
struct kfd_ioctl_get_version_args {
4748
__u32 major_version; /* from KFD */

0 commit comments

Comments
 (0)