diff options
author | sujeet baranwal <sbaranwal@nvidia.com> | 2014-09-30 13:54:57 -0400 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-03-18 15:11:57 -0400 |
commit | 5febd08ae76cbd4042e53ad70f062cd491b7e8b6 (patch) | |
tree | 3815d03eaab78e1d249a8fafeec32a312ddc9de7 /include/uapi/linux | |
parent | 3d313d06570dcb28bba73247a2c0fc52bec56af0 (diff) |
gpu: kernel support for suspending/resuming SMs
Kernel support for allowing a GPU debugger to suspend and resume
SMs. Invocation of "suspend" on a given channel will suspend all
SMs if the channel is resident, else remove the channel form the
runlist. Similarly, "resume" will either resume all SMs if the
channel was resident, or re-enable the channel in the runlist.
Change-Id: I3b4ae21dc1b91c1059c828ec6db8125f8a0ce194
Signed-off-by: sujeet baranwal <sbaranwal@nvidia.com>
Signed-off-by: Mayank Kaushik <mkaushik@nvidia.com>
Reviewed-on: http://git-master/r/552115
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'include/uapi/linux')
-rw-r--r-- | include/uapi/linux/nvgpu.h | 12 |
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 | |||
372 | struct 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 | ||