diff options
author | Alexey Skidanov <Alexey.Skidanov@amd.com> | 2014-11-27 16:21:53 +0200 |
---|---|---|
committer | Oded Gabbay <oded.gabbay@gmail.com> | 2015-05-19 15:22:11 +0300 |
commit | c33cf534436f19ab1fb770cc9b66002305a564bf (patch) | |
tree | 0c530b74d41faf386672d637ff8a125a38a62c75 | |
parent | 899d9bcc3a03606ea453f84388e5a4eebf83f9e2 (diff) |
Add memory exception IOCTLs definitions
Signed-off-by: Alexey Skidanov <Alexey.Skidanov@amd.com>
Signed-off-by: Oded Gabbay <oded.gabbay@amd.com>
-rw-r--r-- | include/linux/kfd_ioctl.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/include/linux/kfd_ioctl.h b/include/linux/kfd_ioctl.h index daf8125..4ca35a8 100644 --- a/include/linux/kfd_ioctl.h +++ b/include/linux/kfd_ioctl.h @@ -171,6 +171,32 @@ struct kfd_ioctl_reset_event_args { uint32_t pad; }; +struct kfd_memory_exception_failure { + uint32_t NotPresent; /* Page not present or supervisor privilege */ + uint32_t ReadOnly; /* Write access to a read-only page */ + uint32_t NoExecute; /* Execute access to a page marked NX */ + uint32_t pad; +}; + +/* memory exception data*/ +struct kfd_hsa_memory_exception_data { + struct kfd_memory_exception_failure failure; + uint64_t va; + uint32_t gpu_id; + uint32_t pad; +}; + +/* Event data*/ +struct kfd_event_data { + union { + struct kfd_hsa_memory_exception_data memory_exception_data; + }; /* From KFD */ + uint64_t kfd_event_data_ext; /* pointer to an extension structure + for future exception types */ + uint32_t event_id; /* to KFD */ + uint32_t pad; +}; + struct kfd_ioctl_wait_events_args { uint64_t events_ptr; /* to KFD */ uint32_t num_events; /* to KFD */ |