summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/nvgpu.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/uapi/linux/nvgpu.h')
-rw-r--r--include/uapi/linux/nvgpu.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/include/uapi/linux/nvgpu.h b/include/uapi/linux/nvgpu.h
index 719dc255..b7f65d75 100644
--- a/include/uapi/linux/nvgpu.h
+++ b/include/uapi/linux/nvgpu.h
@@ -365,9 +365,19 @@ struct nvgpu_dbg_gpu_smpc_ctxsw_mode_args {
365#define NVGPU_DBG_GPU_IOCTL_SMPC_CTXSW_MODE \ 365#define NVGPU_DBG_GPU_IOCTL_SMPC_CTXSW_MODE \
366 _IOWR(NVGPU_DBG_GPU_IOCTL_MAGIC, 5, struct nvgpu_dbg_gpu_smpc_ctxsw_mode_args) 366 _IOWR(NVGPU_DBG_GPU_IOCTL_MAGIC, 5, struct nvgpu_dbg_gpu_smpc_ctxsw_mode_args)
367 367
368/* Suspend /Resume SM control */
369#define NVGPU_DBG_GPU_SUSPEND_ALL_SMS 1
370#define NVGPU_DBG_GPU_RESUME_ALL_SMS 2
371
372struct nvgpu_dbg_gpu_suspend_resume_all_sms_args {
373 __u32 mode;
374} __packed;
375
376#define NVGPU_DBG_GPU_IOCTL_SUSPEND_RESUME_ALL_SMS \
377 _IOWR(NVGPU_DBG_GPU_IOCTL_MAGIC, 6, struct nvgpu_dbg_gpu_suspend_resume_all_sms_args)
368 378
369#define NVGPU_DBG_GPU_IOCTL_LAST \ 379#define NVGPU_DBG_GPU_IOCTL_LAST \
370 _IOC_NR(NVGPU_DBG_GPU_IOCTL_SMPC_CTXSW_MODE) 380 _IOC_NR(NVGPU_DBG_GPU_IOCTL_SUSPEND_RESUME_ALL_SMS)
371#define NVGPU_DBG_GPU_IOCTL_MAX_ARG_SIZE \ 381#define NVGPU_DBG_GPU_IOCTL_MAX_ARG_SIZE \
372 sizeof(struct nvgpu_dbg_gpu_exec_reg_ops_args) 382 sizeof(struct nvgpu_dbg_gpu_exec_reg_ops_args)
373 383