diff options
Diffstat (limited to 'include/uapi')
-rw-r--r-- | include/uapi/linux/nvgpu.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/include/uapi/linux/nvgpu.h b/include/uapi/linux/nvgpu.h index b8bd21f2..8ebe8d06 100644 --- a/include/uapi/linux/nvgpu.h +++ b/include/uapi/linux/nvgpu.h | |||
@@ -999,6 +999,16 @@ struct nvgpu_event_id_ctrl_args { | |||
999 | 999 | ||
1000 | #define NVGPU_IOCTL_CHANNEL_EVENT_ID_CMD_ENABLE 1 | 1000 | #define NVGPU_IOCTL_CHANNEL_EVENT_ID_CMD_ENABLE 1 |
1001 | 1001 | ||
1002 | struct nvgpu_preemption_mode_args { | ||
1003 | /* only one should be enabled at a time */ | ||
1004 | #define NVGPU_GRAPHICS_PREEMPTION_MODE_WFI BIT(0) | ||
1005 | __u32 graphics_preempt_mode; /* in */ | ||
1006 | |||
1007 | /* only one should be enabled at a time */ | ||
1008 | #define NVGPU_COMPUTE_PREEMPTION_MODE_WFI BIT(0) | ||
1009 | #define NVGPU_COMPUTE_PREEMPTION_MODE_CTA BIT(1) | ||
1010 | __u32 compute_preempt_mode; /* in */ | ||
1011 | }; | ||
1002 | 1012 | ||
1003 | #define NVGPU_IOCTL_CHANNEL_SET_NVMAP_FD \ | 1013 | #define NVGPU_IOCTL_CHANNEL_SET_NVMAP_FD \ |
1004 | _IOW(NVGPU_IOCTL_MAGIC, 5, struct nvgpu_set_nvmap_fd_args) | 1014 | _IOW(NVGPU_IOCTL_MAGIC, 5, struct nvgpu_set_nvmap_fd_args) |
@@ -1046,9 +1056,11 @@ struct nvgpu_event_id_ctrl_args { | |||
1046 | _IOW(NVGPU_IOCTL_MAGIC, 120, struct nvgpu_runlist_interleave_args) | 1056 | _IOW(NVGPU_IOCTL_MAGIC, 120, struct nvgpu_runlist_interleave_args) |
1047 | #define NVGPU_IOCTL_CHANNEL_SET_TIMESLICE \ | 1057 | #define NVGPU_IOCTL_CHANNEL_SET_TIMESLICE \ |
1048 | _IOW(NVGPU_IOCTL_MAGIC, 121, struct nvgpu_timeslice_args) | 1058 | _IOW(NVGPU_IOCTL_MAGIC, 121, struct nvgpu_timeslice_args) |
1059 | #define NVGPU_IOCTL_CHANNEL_SET_PREEMPTION_MODE \ | ||
1060 | _IOW(NVGPU_IOCTL_MAGIC, 122, struct nvgpu_preemption_mode_args) | ||
1049 | 1061 | ||
1050 | #define NVGPU_IOCTL_CHANNEL_LAST \ | 1062 | #define NVGPU_IOCTL_CHANNEL_LAST \ |
1051 | _IOC_NR(NVGPU_IOCTL_CHANNEL_SET_TIMESLICE) | 1063 | _IOC_NR(NVGPU_IOCTL_CHANNEL_SET_PREEMPTION_MODE) |
1052 | #define NVGPU_IOCTL_CHANNEL_MAX_ARG_SIZE sizeof(struct nvgpu_submit_gpfifo_args) | 1064 | #define NVGPU_IOCTL_CHANNEL_MAX_ARG_SIZE sizeof(struct nvgpu_submit_gpfifo_args) |
1053 | 1065 | ||
1054 | /* | 1066 | /* |