diff options
author | Deepak Nibade <dnibade@nvidia.com> | 2015-10-28 06:43:14 -0400 |
---|---|---|
committer | Terje Bergstrom <tbergstrom@nvidia.com> | 2015-11-03 17:20:08 -0500 |
commit | 9592a4e6fce8204e9ada54ba00902e792199fec5 (patch) | |
tree | 37cc1bffce5ea48555a1ed88865e5f545627b546 /include/uapi | |
parent | 8d279dbac10b8521aa7eaeb7640c01d21ce044f2 (diff) |
gpu: nvgpu: IOCTL to set TSG timeslice
Add new IOCTL NVGPU_IOCTL_TSG_SET_PRIORITY to allow
setting timeslice for entire TSG
Return error from channel specific IOCTL_CHANNEL_SET_PRIORITY
if the channel is part of TSG
Separate out API gk20a_channel_get_timescale_from_timeslice()
to get timeslice_timeout and scale from timeslice period
Use this API to get timeslice_timeout and scale for TSG and
store it in tsg_gk20a structure
Then trigger runlist update so that new timeslice values
will be re-written to runlist for TSG
Bug 200146615
Change-Id: I555467d034f81b372b31372f0835d72b1c159508
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/824206
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'include/uapi')
-rw-r--r-- | include/uapi/linux/nvgpu.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/uapi/linux/nvgpu.h b/include/uapi/linux/nvgpu.h index f55346db..6024edee 100644 --- a/include/uapi/linux/nvgpu.h +++ b/include/uapi/linux/nvgpu.h | |||
@@ -377,11 +377,13 @@ struct nvgpu_gpu_vsms_mapping { | |||
377 | _IO(NVGPU_TSG_IOCTL_MAGIC, 4) | 377 | _IO(NVGPU_TSG_IOCTL_MAGIC, 4) |
378 | #define NVGPU_IOCTL_TSG_PREEMPT \ | 378 | #define NVGPU_IOCTL_TSG_PREEMPT \ |
379 | _IO(NVGPU_TSG_IOCTL_MAGIC, 5) | 379 | _IO(NVGPU_TSG_IOCTL_MAGIC, 5) |
380 | #define NVGPU_IOCTL_TSG_SET_PRIORITY \ | ||
381 | _IOW(NVGPU_TSG_IOCTL_MAGIC, 6, struct nvgpu_set_priority_args) | ||
380 | 382 | ||
381 | #define NVGPU_TSG_IOCTL_MAX_ARG_SIZE \ | 383 | #define NVGPU_TSG_IOCTL_MAX_ARG_SIZE \ |
382 | sizeof(int) | 384 | sizeof(struct nvgpu_set_priority_args) |
383 | #define NVGPU_TSG_IOCTL_LAST \ | 385 | #define NVGPU_TSG_IOCTL_LAST \ |
384 | _IOC_NR(NVGPU_IOCTL_TSG_PREEMPT) | 386 | _IOC_NR(NVGPU_IOCTL_TSG_SET_PRIORITY) |
385 | /* | 387 | /* |
386 | * /dev/nvhost-dbg-gpu device | 388 | * /dev/nvhost-dbg-gpu device |
387 | * | 389 | * |