aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/linux
diff options
context:
space:
mode:
authorPhilip Yang <Philip.Yang@amd.com>2022-02-25 12:33:51 -0500
committerAlex Deucher <alexander.deucher@amd.com>2022-03-02 18:40:05 -0500
commitd58b8a99cbb84c1eb3b3613d23c1a328695a9455 (patch)
tree70647117a827841885c7e795e9df7069e5426964 /include/uapi/linux
parentdrm/amdkfd: Correct SMI event read size (diff)
downloadlinux-dev-d58b8a99cbb84c1eb3b3613d23c1a328695a9455.tar.xz
linux-dev-d58b8a99cbb84c1eb3b3613d23c1a328695a9455.zip
drm/amdkfd: Add SMI add event helper
To remove duplicate code, unify event message format and simplify new event add in the following patches. Use KFD_SMI_EVENT_MSG_SIZE to define msg size, the same size will be used in user space to alloc the msg receive buffer. Signed-off-by: Philip Yang <Philip.Yang@amd.com> Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'include/uapi/linux')
-rw-r--r--include/uapi/linux/kfd_ioctl.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/kfd_ioctl.h b/include/uapi/linux/kfd_ioctl.h
index baec5a41de3e..b40687bf1014 100644
--- a/include/uapi/linux/kfd_ioctl.h
+++ b/include/uapi/linux/kfd_ioctl.h
@@ -463,6 +463,7 @@ enum kfd_smi_event {
};
#define KFD_SMI_EVENT_MASK_FROM_INDEX(i) (1ULL << ((i) - 1))
+#define KFD_SMI_EVENT_MSG_SIZE 96
struct kfd_ioctl_smi_events_args {
__u32 gpuid; /* to KFD */