History

drm/amdkfd: CRIU export dmabuf handles for GTT BOs

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.

David Yat Sin committed 4 years ago

Commit 65722ff1 parent b38c0742 files · +18 −5Browse files

Showing the changes to include/uapi (1 of 2 files). Show all

Unified · Split

include/uapi/linux/kfd_ioctl.h+4−1
@@ -33,9 +33,10 @@ · 32 unmodified lines
3333 * - 1.5 - Add SVM API
3434 * - 1.6 - Query clear flags in SVM get_attr API
3535 * - 1.7 - Checkpoint Restore (CRIU) API
36+ * - 1.8 - CRIU - Support for SDMA transfers with GTT BOs
3637 */
3738 #define KFD_IOCTL_MAJOR_VERSION 1
38−#define KFD_IOCTL_MINOR_VERSION 7
39+#define KFD_IOCTL_MINOR_VERSION 8
3940
4041 struct kfd_ioctl_get_version_args {
4142 __u32 major_version; /* from KFD */
@@ -195,6 +196,8 @@ struct kfd_ioctl_dbg_wave_control_args { · 153 unmodified lines
195196 __u32 buf_size_in_bytes; /*including gpu_id and buf_size */
196197 };
197198
199+#define KFD_INVALID_FD 0xffffffff
200+
198201 /* Matching HSA_EVENTTYPE */
199202 #define KFD_IOC_EVENT_SIGNAL 0
200203 #define KFD_IOC_EVENT_NODECHANGE 1

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t