summaryrefslogtreecommitdiffstats
path: root/include/uapi
diff options
context:
space:
mode:
authorAingara Paramakuru <aparamakuru@nvidia.com>2016-04-20 15:28:19 -0400
committerTerje Bergstrom <tbergstrom@nvidia.com>2016-04-27 11:47:22 -0400
commit610a523b7d9c62e5b4d6444f738acc62d779713b (patch)
tree829c7b8409359c8c4e6f6b385bdfa1346c14e8b4 /include/uapi
parent2db5e4794e37952bdbd2882c22ba810a45e9ea84 (diff)
gpu: nvgpu: add TSG timeslice support
Add support for changing a TSG's timeslice, within reasonable limits imposed by the kernel driver. JIRA VFND-1494 Bug 1749744 Change-Id: Ifca1b63a00da7a5872483bb56692da70a5f18bdf Signed-off-by: Aingara Paramakuru <aparamakuru@nvidia.com> Reviewed-on: http://git-master/r/1129837 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'include/uapi')
-rw-r--r--include/uapi/linux/nvgpu.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/uapi/linux/nvgpu.h b/include/uapi/linux/nvgpu.h
index 9f4bf43c..b8bd21f2 100644
--- a/include/uapi/linux/nvgpu.h
+++ b/include/uapi/linux/nvgpu.h
@@ -467,11 +467,13 @@ struct nvgpu_gpu_get_gpu_time_args {
467 _IOWR(NVGPU_TSG_IOCTL_MAGIC, 7, struct nvgpu_event_id_ctrl_args) 467 _IOWR(NVGPU_TSG_IOCTL_MAGIC, 7, struct nvgpu_event_id_ctrl_args)
468#define NVGPU_IOCTL_TSG_SET_RUNLIST_INTERLEAVE \ 468#define NVGPU_IOCTL_TSG_SET_RUNLIST_INTERLEAVE \
469 _IOW(NVGPU_TSG_IOCTL_MAGIC, 8, struct nvgpu_runlist_interleave_args) 469 _IOW(NVGPU_TSG_IOCTL_MAGIC, 8, struct nvgpu_runlist_interleave_args)
470#define NVGPU_IOCTL_TSG_SET_TIMESLICE \
471 _IOW(NVGPU_TSG_IOCTL_MAGIC, 9, struct nvgpu_timeslice_args)
470 472
471#define NVGPU_TSG_IOCTL_MAX_ARG_SIZE \ 473#define NVGPU_TSG_IOCTL_MAX_ARG_SIZE \
472 sizeof(struct nvgpu_event_id_ctrl_args) 474 sizeof(struct nvgpu_event_id_ctrl_args)
473#define NVGPU_TSG_IOCTL_LAST \ 475#define NVGPU_TSG_IOCTL_LAST \
474 _IOC_NR(NVGPU_IOCTL_TSG_SET_RUNLIST_INTERLEAVE) 476 _IOC_NR(NVGPU_IOCTL_TSG_SET_TIMESLICE)
475 477
476 478
477/* 479/*