mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 01:50:07 +03:00
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>
This commit is contained in:
committed by
Terje Bergstrom
parent
4b5c08f4c0
commit
8d279dbac1
@@ -547,8 +547,20 @@ struct nvgpu_dbg_gpu_pc_sampling_args {
|
||||
#define NVGPU_DBG_GPU_IOCTL_PC_SAMPLING \
|
||||
_IOW(NVGPU_DBG_GPU_IOCTL_MAGIC, 9, struct nvgpu_dbg_gpu_pc_sampling_args)
|
||||
|
||||
/* Enable/Disable timeouts */
|
||||
#define NVGPU_DBG_GPU_IOCTL_TIMEOUT_ENABLE 1
|
||||
#define NVGPU_DBG_GPU_IOCTL_TIMEOUT_DISABLE 0
|
||||
|
||||
struct nvgpu_dbg_gpu_timeout_args {
|
||||
__u32 enable;
|
||||
__u32 padding;
|
||||
};
|
||||
|
||||
#define NVGPU_DBG_GPU_IOCTL_TIMEOUT \
|
||||
_IOW(NVGPU_DBG_GPU_IOCTL_MAGIC, 10, struct nvgpu_dbg_gpu_timeout_args)
|
||||
|
||||
#define NVGPU_DBG_GPU_IOCTL_LAST \
|
||||
_IOC_NR(NVGPU_DBG_GPU_IOCTL_PC_SAMPLING)
|
||||
_IOC_NR(NVGPU_DBG_GPU_IOCTL_TIMEOUT)
|
||||
#define NVGPU_DBG_GPU_IOCTL_MAX_ARG_SIZE \
|
||||
sizeof(struct nvgpu_dbg_gpu_perfbuf_map_args)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user