]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amdkfd: add event age tracking
authorJames Zhu <James.Zhu@amd.com>
Wed, 17 May 2023 20:19:51 +0000 (16:19 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 15 Jun 2023 15:37:55 +0000 (11:37 -0400)
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>
include/uapi/linux/kfd_ioctl.h

index 1781e7669982b97349f6ee9a18b308ca27f9a111..93f1c0bc5caffb1e549c1e5791997db5b14d47a2 100644 (file)
@@ -320,12 +320,20 @@ struct kfd_hsa_hw_exception_data {
        __u32 gpu_id;
 };
 
+/* hsa signal event data */
+struct kfd_hsa_signal_event_data {
+       __u64 last_event_age;   /* to and from KFD */
+};
+
 /* Event data */
 struct kfd_event_data {
        union {
+               /* From KFD */
                struct kfd_hsa_memory_exception_data memory_exception_data;
                struct kfd_hsa_hw_exception_data hw_exception_data;
-       };                              /* From KFD */
+               /* To and From KFD */
+               struct kfd_hsa_signal_event_data signal_event_data;
+       };
        __u64 kfd_event_data_ext;       /* pointer to an extension structure
                                           for future exception types */
        __u32 event_id;         /* to KFD */