summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.h
diff options
context:
space:
mode:
authorDeepak Nibade <dnibade@nvidia.com>2015-12-29 03:17:39 -0500
committerTerje Bergstrom <tbergstrom@nvidia.com>2016-02-05 15:44:36 -0500
commit595fa7158551ef130ddd5e04d3edd38aab4f0006 (patch)
treef9b17525d9aa45add4853812f8f62538e8e1a164 /drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.h
parent8b665ac6b2984e07a290d5ecbcec2c93ec973c65 (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 'drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.h b/drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.h
index fc1f2982..a2e075a6 100644
--- a/drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.h
@@ -79,8 +79,13 @@ struct dbg_session_gk20a {
79 /* event support */ 79 /* event support */
80 struct dbg_gpu_session_events dbg_events; 80 struct dbg_gpu_session_events dbg_events;
81 struct list_head dbg_s_list_node; 81 struct list_head dbg_s_list_node;
82
83 bool broadcast_stop_trigger;
82}; 84};
83 85
84extern struct dbg_gpu_session_ops dbg_gpu_session_ops_gk20a; 86extern struct dbg_gpu_session_ops dbg_gpu_session_ops_gk20a;
85 87
88bool gk20a_dbg_gpu_broadcast_stop_trigger(struct channel_gk20a *ch);
89int gk20a_dbg_gpu_clear_broadcast_stop_trigger(struct channel_gk20a *ch);
90
86#endif /* DBG_GPU_GK20A_H */ 91#endif /* DBG_GPU_GK20A_H */