Skip to content

Commit 6f58251

Browse files
jameszhu-amdalexdeucher
authored andcommitted
drm/amdkfd: add event age tracking
Add event age tracking 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 4f9b94d commit 6f58251

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

include/uapi/linux/kfd_ioctl.h

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,12 +320,20 @@ struct kfd_hsa_hw_exception_data {
320320
__u32 gpu_id;
321321
};
322322

323+
/* hsa signal event data */
324+
struct kfd_hsa_signal_event_data {
325+
__u64 last_event_age; /* to and from KFD */
326+
};
327+
323328
/* Event data */
324329
struct kfd_event_data {
325330
union {
331+
/* From KFD */
326332
struct kfd_hsa_memory_exception_data memory_exception_data;
327333
struct kfd_hsa_hw_exception_data hw_exception_data;
328-
}; /* From KFD */
334+
/* To and From KFD */
335+
struct kfd_hsa_signal_event_data signal_event_data;
336+
};
329337
__u64 kfd_event_data_ext; /* pointer to an extension structure
330338
for future exception types */
331339
__u32 event_id; /* to KFD */

0 commit comments

Comments
 (0)