Export dmabuf handles for GTT BOs so that their contents can be accessed using SDMA during checkpoint/restore. v2: Squash in fix from David to set dmabuf handle to invalid for BOs that cannot be accessed using SDMA during checkpoint/restore.
Showing the changes to include/uapi (1 of 2 files). Show all
Unified · Split
| @@ -33,9 +33,10 @@ · 32 unmodified lines | |||
| 33 | * - 1.5 - Add SVM API | 33 | * - 1.5 - Add SVM API |
| 34 | * - 1.6 - Query clear flags in SVM get_attr API | 34 | * - 1.6 - Query clear flags in SVM get_attr API |
| 35 | * - 1.7 - Checkpoint Restore (CRIU) API | 35 | * - 1.7 - Checkpoint Restore (CRIU) API |
| 36 | * - 1.8 - CRIU - Support for SDMA transfers with GTT BOs | ||
| 36 | */ | 37 | */ |
| 37 | #define KFD_IOCTL_MAJOR_VERSION 1 | 38 | #define KFD_IOCTL_MAJOR_VERSION 1 |
| 38 | #define KFD_IOCTL_MINOR_VERSION 7 | 39 | #define KFD_IOCTL_MINOR_VERSION 8 |
| 39 | 40 | ||
| 40 | struct kfd_ioctl_get_version_args { | 41 | struct kfd_ioctl_get_version_args { |
| 41 | __u32 major_version; /* from KFD */ | 42 | __u32 major_version; /* from KFD */ |
| @@ -195,6 +196,8 @@ struct kfd_ioctl_dbg_wave_control_args { · 153 unmodified lines | |||
| 195 | __u32 buf_size_in_bytes; /*including gpu_id and buf_size */ | 196 | __u32 buf_size_in_bytes; /*including gpu_id and buf_size */ |
| 196 | }; | 197 | }; |
| 197 | 198 | ||
| 199 | #define KFD_INVALID_FD 0xffffffff | ||
| 200 | |||
| 198 | /* Matching HSA_EVENTTYPE */ | 201 | /* Matching HSA_EVENTTYPE */ |
| 199 | #define KFD_IOC_EVENT_SIGNAL 0 | 202 | #define KFD_IOC_EVENT_SIGNAL 0 |
| 200 | #define KFD_IOC_EVENT_NODECHANGE 1 | 203 | #define KFD_IOC_EVENT_NODECHANGE 1 |