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
33 * - 1.5 - Add SVM API33 * - 1.5 - Add SVM API
34 * - 1.6 - Query clear flags in SVM get_attr API34 * - 1.6 - Query clear flags in SVM get_attr API
35 * - 1.7 - Checkpoint Restore (CRIU) API35 * - 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 138#define KFD_IOCTL_MAJOR_VERSION 1
38#define KFD_IOCTL_MINOR_VERSION 739#define KFD_IOCTL_MINOR_VERSION 8
39 40
40struct kfd_ioctl_get_version_args {41struct 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 0202#define KFD_IOC_EVENT_SIGNAL 0
200#define KFD_IOC_EVENT_NODECHANGE 1203#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