diff options
author | James Zhu <James.Zhu@amd.com> | 2023-05-17 16:19:51 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2023-06-15 11:37:55 -0400 |
commit | 6f582513ad15de729ee5c91dfef946f3c266a207 (patch) | |
tree | 8f1f5296b4adb9df9a4e9d67c593488db85c3cc8 | |
parent | 4f9b94d848696166011bead3109541ec2a523bb8 (diff) | |
download | linux-6f582513ad15de729ee5c91dfef946f3c266a207.tar.gz linux-6f582513ad15de729ee5c91dfef946f3c266a207.tar.bz2 linux-6f582513ad15de729ee5c91dfef946f3c266a207.zip |
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>
-rw-r--r-- | include/uapi/linux/kfd_ioctl.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/include/uapi/linux/kfd_ioctl.h b/include/uapi/linux/kfd_ioctl.h index 1781e7669982..93f1c0bc5caf 100644 --- a/include/uapi/linux/kfd_ioctl.h +++ b/include/uapi/linux/kfd_ioctl.h @@ -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 */ |