diff options
author | Thomas Fleury <tfleury@nvidia.com> | 2016-04-11 20:06:20 -0400 |
---|---|---|
committer | Terje Bergstrom <tbergstrom@nvidia.com> | 2016-05-21 14:29:13 -0400 |
commit | 4df6cd4a345d9a564f2235bc6a20ebb4614c2b04 (patch) | |
tree | e6bf733972915929cba22882a74b04cf133be14e /drivers/gpu/nvgpu/gk20a/ctxsw_trace_gk20a.h | |
parent | a21dcf0bc6bca226582aae45e3a92fe1f7c19e56 (diff) |
gpu: nvgpu: add ctxsw channel reset event
Generate a ctxsw channel reset when engine needs to be reset.
This event is generated by the driver, while other events are
generated by FECS.
JIRA ELVR-314
Change-Id: I7791cf3e538782464c37c442c871acb177484566
Signed-off-by: Thomas Fleury <tfleury@nvidia.com>
Reviewed-on: http://git-master/r/1129029
(cherry picked from commit 114038a1a5d9e8941bc53f3e95115b01dd1f8c6e)
Reviewed-on: http://git-master/r/1134379
(cherry picked from commit 15fa2a7b48a0937dfd449ca0c4ed5ad3a863d6bf)
Reviewed-on: http://git-master/r/1123916
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/ctxsw_trace_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/ctxsw_trace_gk20a.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/ctxsw_trace_gk20a.h b/drivers/gpu/nvgpu/gk20a/ctxsw_trace_gk20a.h index 7a2f4aeb..dacc0b50 100644 --- a/drivers/gpu/nvgpu/gk20a/ctxsw_trace_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/ctxsw_trace_gk20a.h | |||
@@ -23,6 +23,7 @@ struct channel_gk20a; | |||
23 | struct channel_ctx_gk20a; | 23 | struct channel_ctx_gk20a; |
24 | struct gk20a_ctxsw_dev; | 24 | struct gk20a_ctxsw_dev; |
25 | struct gk20a_fecs_trace; | 25 | struct gk20a_fecs_trace; |
26 | struct tsg_gk20a; | ||
26 | 27 | ||
27 | 28 | ||
28 | int gk20a_ctxsw_dev_release(struct inode *inode, struct file *filp); | 29 | int gk20a_ctxsw_dev_release(struct inode *inode, struct file *filp); |
@@ -40,4 +41,8 @@ int gk20a_ctxsw_trace_write(struct gk20a *, struct nvgpu_ctxsw_trace_entry *); | |||
40 | void gk20a_ctxsw_trace_wake_up(struct gk20a *g, int vmid); | 41 | void gk20a_ctxsw_trace_wake_up(struct gk20a *g, int vmid); |
41 | void gk20a_ctxsw_trace_init_ops(struct gpu_ops *ops); | 42 | void gk20a_ctxsw_trace_init_ops(struct gpu_ops *ops); |
42 | 43 | ||
44 | void gk20a_ctxsw_trace_channel_reset(struct gk20a *g, struct channel_gk20a *ch); | ||
45 | void gk20a_ctxsw_trace_tsg_reset(struct gk20a *g, struct tsg_gk20a *tsg); | ||
46 | |||
47 | |||
43 | #endif /* __CTXSW_TRACE_GK20A_H */ | 48 | #endif /* __CTXSW_TRACE_GK20A_H */ |