summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/channel_gk20a.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/channel_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/channel_gk20a.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c
index dac38739..6d62d888 100644
--- a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c
@@ -360,24 +360,6 @@ static void gk20a_wait_until_counter_is_N(
360 } 360 }
361} 361}
362 362
363#if defined(CONFIG_GK20A_CYCLE_STATS)
364void gk20a_channel_free_cycle_stats_buffer(struct channel_gk20a *ch)
365{
366 /* disable existing cyclestats buffer */
367 nvgpu_mutex_acquire(&ch->cyclestate.cyclestate_buffer_mutex);
368 if (ch->cyclestate.cyclestate_buffer_handler) {
369 dma_buf_vunmap(ch->cyclestate.cyclestate_buffer_handler,
370 ch->cyclestate.cyclestate_buffer);
371 dma_buf_put(ch->cyclestate.cyclestate_buffer_handler);
372 ch->cyclestate.cyclestate_buffer_handler = NULL;
373 ch->cyclestate.cyclestate_buffer = NULL;
374 ch->cyclestate.cyclestate_buffer_size = 0;
375 }
376 nvgpu_mutex_release(&ch->cyclestate.cyclestate_buffer_mutex);
377}
378
379#endif
380
381/* call ONLY when no references to the channel exist: after the last put */ 363/* call ONLY when no references to the channel exist: after the last put */
382static void gk20a_free_channel(struct channel_gk20a *ch, bool force) 364static void gk20a_free_channel(struct channel_gk20a *ch, bool force)
383{ 365{
@@ -490,10 +472,6 @@ static void gk20a_free_channel(struct channel_gk20a *ch, bool force)
490 nvgpu_big_free(g, ch->gpfifo.pipe); 472 nvgpu_big_free(g, ch->gpfifo.pipe);
491 memset(&ch->gpfifo, 0, sizeof(struct gpfifo_desc)); 473 memset(&ch->gpfifo, 0, sizeof(struct gpfifo_desc));
492 474
493#if defined(CONFIG_GK20A_CYCLE_STATS)
494 gk20a_channel_free_cycle_stats_buffer(ch);
495#endif
496
497 channel_gk20a_free_priv_cmdbuf(ch); 475 channel_gk20a_free_priv_cmdbuf(ch);
498 476
499 /* sync must be destroyed before releasing channel vm */ 477 /* sync must be destroyed before releasing channel vm */