summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDeepak Nibade <dnibade@nvidia.com>2015-08-20 10:16:16 -0400
committerTerje Bergstrom <tbergstrom@nvidia.com>2015-11-03 17:14:10 -0500
commit8d279dbac10b8521aa7eaeb7640c01d21ce044f2 (patch)
tree5eb84906f3870727fcf519781fbdb088dd0ed0eb /include
parent4b5c08f4c0cf12076a208c640a46447a536308e8 (diff)
gpu: nvgpu: IOCTL to disable timeouts
Add IOCTL NVGPU_DBG_GPU_IOCTL_TIMEOUT to support disabling/re-enabling scheduler timeout from user space If user space application is closed without re-enabling the timeouts, kernel will restore the timeouts' state while releasing the debug session This is needed for debugging purpose Bug 1514061 Change-Id: I32efb47ad09d793f3e7fd8f0aaa9720c8bc91272 Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: http://git-master/r/788176 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'include')
-rw-r--r--include/uapi/linux/nvgpu.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/include/uapi/linux/nvgpu.h b/include/uapi/linux/nvgpu.h
index 6fdf4025..f55346db 100644
--- a/include/uapi/linux/nvgpu.h
+++ b/include/uapi/linux/nvgpu.h
@@ -547,8 +547,20 @@ struct nvgpu_dbg_gpu_pc_sampling_args {
547#define NVGPU_DBG_GPU_IOCTL_PC_SAMPLING \ 547#define NVGPU_DBG_GPU_IOCTL_PC_SAMPLING \
548 _IOW(NVGPU_DBG_GPU_IOCTL_MAGIC, 9, struct nvgpu_dbg_gpu_pc_sampling_args) 548 _IOW(NVGPU_DBG_GPU_IOCTL_MAGIC, 9, struct nvgpu_dbg_gpu_pc_sampling_args)
549 549
550/* Enable/Disable timeouts */
551#define NVGPU_DBG_GPU_IOCTL_TIMEOUT_ENABLE 1
552#define NVGPU_DBG_GPU_IOCTL_TIMEOUT_DISABLE 0
553
554struct nvgpu_dbg_gpu_timeout_args {
555 __u32 enable;
556 __u32 padding;
557};
558
559#define NVGPU_DBG_GPU_IOCTL_TIMEOUT \
560 _IOW(NVGPU_DBG_GPU_IOCTL_MAGIC, 10, struct nvgpu_dbg_gpu_timeout_args)
561
550#define NVGPU_DBG_GPU_IOCTL_LAST \ 562#define NVGPU_DBG_GPU_IOCTL_LAST \
551 _IOC_NR(NVGPU_DBG_GPU_IOCTL_PC_SAMPLING) 563 _IOC_NR(NVGPU_DBG_GPU_IOCTL_TIMEOUT)
552#define NVGPU_DBG_GPU_IOCTL_MAX_ARG_SIZE \ 564#define NVGPU_DBG_GPU_IOCTL_MAX_ARG_SIZE \
553 sizeof(struct nvgpu_dbg_gpu_perfbuf_map_args) 565 sizeof(struct nvgpu_dbg_gpu_perfbuf_map_args)
554 566