diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/channel_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/channel_gk20a.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c index f90bc1a3..1cc0f154 100644 --- a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c | |||
@@ -351,6 +351,16 @@ static void channel_gk20a_unbind(struct channel_gk20a *ch_gk20a) | |||
351 | ccsr_channel_inst_bind_false_f()); | 351 | ccsr_channel_inst_bind_false_f()); |
352 | 352 | ||
353 | ch_gk20a->bound = false; | 353 | ch_gk20a->bound = false; |
354 | |||
355 | /* | ||
356 | * if we are agrressive then we can destroy the syncpt | ||
357 | * resource at this point | ||
358 | * if not, then it will be destroyed at channel_free() | ||
359 | */ | ||
360 | if (ch_gk20a->sync && ch_gk20a->sync->syncpt_aggressive_destroy) { | ||
361 | ch_gk20a->sync->destroy(ch_gk20a->sync); | ||
362 | ch_gk20a->sync = NULL; | ||
363 | } | ||
354 | } | 364 | } |
355 | 365 | ||
356 | static int channel_gk20a_alloc_inst(struct gk20a *g, | 366 | static int channel_gk20a_alloc_inst(struct gk20a *g, |