From 595fa7158551ef130ddd5e04d3edd38aab4f0006 Mon Sep 17 00:00:00 2001 From: Deepak Nibade Date: Tue, 29 Dec 2015 13:47:39 +0530 Subject: 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 Reviewed-on: http://git-master/r/925882 GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom --- drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.h') 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 { /* event support */ struct dbg_gpu_session_events dbg_events; struct list_head dbg_s_list_node; + + bool broadcast_stop_trigger; }; extern struct dbg_gpu_session_ops dbg_gpu_session_ops_gk20a; +bool gk20a_dbg_gpu_broadcast_stop_trigger(struct channel_gk20a *ch); +int gk20a_dbg_gpu_clear_broadcast_stop_trigger(struct channel_gk20a *ch); + #endif /* DBG_GPU_GK20A_H */ -- cgit v1.2.2