diff options
Diffstat (limited to 'include/uapi/linux')
-rw-r--r-- | include/uapi/linux/nvgpu.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/include/uapi/linux/nvgpu.h b/include/uapi/linux/nvgpu.h index 68c1c4e0..0c8de87f 100644 --- a/include/uapi/linux/nvgpu.h +++ b/include/uapi/linux/nvgpu.h | |||
@@ -880,6 +880,12 @@ struct nvgpu_runlist_interleave_args { | |||
880 | #define NVGPU_RUNLIST_INTERLEAVE_LEVEL_HIGH 2 | 880 | #define NVGPU_RUNLIST_INTERLEAVE_LEVEL_HIGH 2 |
881 | #define NVGPU_RUNLIST_INTERLEAVE_NUM_LEVELS 3 | 881 | #define NVGPU_RUNLIST_INTERLEAVE_NUM_LEVELS 3 |
882 | 882 | ||
883 | /* controls how long a channel occupies an engine uninterrupted */ | ||
884 | struct nvgpu_timeslice_args { | ||
885 | __u32 timeslice_us; | ||
886 | __u32 reserved; | ||
887 | }; | ||
888 | |||
883 | #define NVGPU_IOCTL_CHANNEL_SET_NVMAP_FD \ | 889 | #define NVGPU_IOCTL_CHANNEL_SET_NVMAP_FD \ |
884 | _IOW(NVGPU_IOCTL_MAGIC, 5, struct nvgpu_set_nvmap_fd_args) | 890 | _IOW(NVGPU_IOCTL_MAGIC, 5, struct nvgpu_set_nvmap_fd_args) |
885 | #define NVGPU_IOCTL_CHANNEL_SET_TIMEOUT \ | 891 | #define NVGPU_IOCTL_CHANNEL_SET_TIMEOUT \ |
@@ -924,9 +930,11 @@ struct nvgpu_runlist_interleave_args { | |||
924 | _IOW(NVGPU_IOCTL_MAGIC, 119, struct nvgpu_channel_wdt_args) | 930 | _IOW(NVGPU_IOCTL_MAGIC, 119, struct nvgpu_channel_wdt_args) |
925 | #define NVGPU_IOCTL_CHANNEL_SET_RUNLIST_INTERLEAVE \ | 931 | #define NVGPU_IOCTL_CHANNEL_SET_RUNLIST_INTERLEAVE \ |
926 | _IOW(NVGPU_IOCTL_MAGIC, 120, struct nvgpu_runlist_interleave_args) | 932 | _IOW(NVGPU_IOCTL_MAGIC, 120, struct nvgpu_runlist_interleave_args) |
933 | #define NVGPU_IOCTL_CHANNEL_SET_TIMESLICE \ | ||
934 | _IOW(NVGPU_IOCTL_MAGIC, 121, struct nvgpu_timeslice_args) | ||
927 | 935 | ||
928 | #define NVGPU_IOCTL_CHANNEL_LAST \ | 936 | #define NVGPU_IOCTL_CHANNEL_LAST \ |
929 | _IOC_NR(NVGPU_IOCTL_CHANNEL_SET_RUNLIST_INTERLEAVE) | 937 | _IOC_NR(NVGPU_IOCTL_CHANNEL_SET_TIMESLICE) |
930 | #define NVGPU_IOCTL_CHANNEL_MAX_ARG_SIZE sizeof(struct nvgpu_submit_gpfifo_args) | 938 | #define NVGPU_IOCTL_CHANNEL_MAX_ARG_SIZE sizeof(struct nvgpu_submit_gpfifo_args) |
931 | 939 | ||
932 | /* | 940 | /* |