summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/channel_gk20a.h
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2017-12-15 13:25:22 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2017-12-28 13:01:32 -0500
commitf19f22fcc8ef21b363b873c499cbd2e690af29f8 (patch)
tree02d6b8280af305d0339ed860e331ab091d4b49d2 /drivers/gpu/nvgpu/gk20a/channel_gk20a.h
parentaa52601f620423fdd98b79e2c2c5e1d767a5f685 (diff)
gpu: nvgpu: Remove support for channel events
Remove support for events for bare channels. All users have already moved to TSGs and TSG events. Bug 1842197 Change-Id: Ib3ff68134ad9515ee761d0f0e19a3150a0b744ab Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1618906 Reviewed-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/channel_gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/channel_gk20a.h26
1 files changed, 0 insertions, 26 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/channel_gk20a.h b/drivers/gpu/nvgpu/gk20a/channel_gk20a.h
index e6f73cf6..b43c5638 100644
--- a/drivers/gpu/nvgpu/gk20a/channel_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/channel_gk20a.h
@@ -124,27 +124,6 @@ struct channel_gk20a_timeout {
124 u64 pb_get; 124 u64 pb_get;
125}; 125};
126 126
127struct gk20a_event_id_data {
128 struct gk20a *g;
129
130 int id; /* ch or tsg */
131 bool is_tsg;
132 u32 event_id;
133
134 bool event_posted;
135
136 struct nvgpu_cond event_id_wq;
137 struct nvgpu_mutex lock;
138 struct nvgpu_list_node event_id_node;
139};
140
141static inline struct gk20a_event_id_data *
142gk20a_event_id_data_from_event_id_node(struct nvgpu_list_node *node)
143{
144 return (struct gk20a_event_id_data *)
145 ((uintptr_t)node - offsetof(struct gk20a_event_id_data, event_id_node));
146};
147
148/* 127/*
149 * Track refcount actions, saving their stack traces. This number specifies how 128 * Track refcount actions, saving their stack traces. This number specifies how
150 * many most recent actions are stored in a buffer. Set to 0 to disable. 128 129 * many most recent actions are stored in a buffer. Set to 0 to disable. 128
@@ -265,9 +244,6 @@ struct channel_gk20a {
265 struct nvgpu_mutex dbg_s_lock; 244 struct nvgpu_mutex dbg_s_lock;
266 struct nvgpu_list_node dbg_s_list; 245 struct nvgpu_list_node dbg_s_list;
267 246
268 struct nvgpu_list_node event_id_list;
269 struct nvgpu_mutex event_id_list_lock;
270
271 bool has_timedout; 247 bool has_timedout;
272 u32 timeout_ms_max; 248 u32 timeout_ms_max;
273 bool timeout_debug_dump; 249 bool timeout_debug_dump;
@@ -385,8 +361,6 @@ int gk20a_channel_get_timescale_from_timeslice(struct gk20a *g,
385 int *__timeslice_timeout, int *__timeslice_scale); 361 int *__timeslice_timeout, int *__timeslice_scale);
386int gk20a_channel_set_runlist_interleave(struct channel_gk20a *ch, 362int gk20a_channel_set_runlist_interleave(struct channel_gk20a *ch,
387 u32 level); 363 u32 level);
388void gk20a_channel_event_id_post_event(struct channel_gk20a *ch,
389 u32 event_id);
390 364
391int channel_gk20a_alloc_job(struct channel_gk20a *c, 365int channel_gk20a_alloc_job(struct channel_gk20a *c,
392 struct channel_gk20a_job **job_out); 366 struct channel_gk20a_job **job_out);