diff options
author | Deepak Nibade <dnibade@nvidia.com> | 2015-12-29 03:17:39 -0500 |
---|---|---|
committer | Terje Bergstrom <tbergstrom@nvidia.com> | 2016-02-05 15:44:36 -0500 |
commit | 595fa7158551ef130ddd5e04d3edd38aab4f0006 (patch) | |
tree | f9b17525d9aa45add4853812f8f62538e8e1a164 /include/uapi/linux/nvgpu.h | |
parent | 8b665ac6b2984e07a290d5ecbcec2c93ec973c65 (diff) |
gpu: nvgpu: IOCTL to set stop_trigger type
Add IOCTL NVGPU_DBG_GPU_IOCTL_SET_NEXT_STOP_TRIGGER_TYPE
to set next stop_trigger type (either single SM or
broadcast to all SMs)
Also, expose below APIs to check and clear broadcast flag:
gk20a_dbg_gpu_broadcast_stop_trigger()
gk20a_dbg_gpu_clear_broadcast_stop_trigger()
Bug 200156699
Change-Id: I5e6cd4b84e601889fb172e0cdbb6bd5a0d366eab
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/925882
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'include/uapi/linux/nvgpu.h')
-rw-r--r-- | include/uapi/linux/nvgpu.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/include/uapi/linux/nvgpu.h b/include/uapi/linux/nvgpu.h index 984d1319..80ac159e 100644 --- a/include/uapi/linux/nvgpu.h +++ b/include/uapi/linux/nvgpu.h | |||
@@ -607,8 +607,19 @@ struct nvgpu_dbg_gpu_timeout_args { | |||
607 | #define NVGPU_DBG_GPU_IOCTL_GET_TIMEOUT \ | 607 | #define NVGPU_DBG_GPU_IOCTL_GET_TIMEOUT \ |
608 | _IOR(NVGPU_DBG_GPU_IOCTL_MAGIC, 11, struct nvgpu_dbg_gpu_timeout_args) | 608 | _IOR(NVGPU_DBG_GPU_IOCTL_MAGIC, 11, struct nvgpu_dbg_gpu_timeout_args) |
609 | 609 | ||
610 | |||
611 | struct nvgpu_dbg_gpu_set_next_stop_trigger_type_args { | ||
612 | __u32 broadcast; | ||
613 | __u32 reserved; | ||
614 | }; | ||
615 | |||
616 | #define NVGPU_DBG_GPU_IOCTL_SET_NEXT_STOP_TRIGGER_TYPE \ | ||
617 | _IOWR(NVGPU_DBG_GPU_IOCTL_MAGIC, 12, struct nvgpu_dbg_gpu_set_next_stop_trigger_type_args) | ||
618 | |||
619 | |||
610 | #define NVGPU_DBG_GPU_IOCTL_LAST \ | 620 | #define NVGPU_DBG_GPU_IOCTL_LAST \ |
611 | _IOC_NR(NVGPU_DBG_GPU_IOCTL_GET_TIMEOUT) | 621 | _IOC_NR(NVGPU_DBG_GPU_IOCTL_SET_NEXT_STOP_TRIGGER_TYPE) |
622 | |||
612 | #define NVGPU_DBG_GPU_IOCTL_MAX_ARG_SIZE \ | 623 | #define NVGPU_DBG_GPU_IOCTL_MAX_ARG_SIZE \ |
613 | sizeof(struct nvgpu_dbg_gpu_perfbuf_map_args) | 624 | sizeof(struct nvgpu_dbg_gpu_perfbuf_map_args) |
614 | 625 | ||