diff options
Diffstat (limited to 'drivers/gpu/nvgpu')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/ce2_gk20a.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/ce2_gk20a.c b/drivers/gpu/nvgpu/gk20a/ce2_gk20a.c index ec20a679..99a6dd1b 100644 --- a/drivers/gpu/nvgpu/gk20a/ce2_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/ce2_gk20a.c | |||
@@ -153,13 +153,12 @@ static void gk20a_ce_delete_gpu_context(struct gk20a_gpu_ctx *ce_ctx) | |||
153 | nvgpu_dma_unmap_free(ce_ctx->vm, &ce_ctx->cmd_buf_mem); | 153 | nvgpu_dma_unmap_free(ce_ctx->vm, &ce_ctx->cmd_buf_mem); |
154 | } | 154 | } |
155 | 155 | ||
156 | /* unbind tsg */ | 156 | /* |
157 | if (ce_ctx->tsg && ce_ctx->ch) | 157 | * free the channel |
158 | gk20a_tsg_unbind_channel(ce_ctx->ch); | 158 | * gk20a_channel_close() will also unbind the channel from TSG |
159 | 159 | */ | |
160 | /* free the channel */ | 160 | gk20a_channel_close(ce_ctx->ch); |
161 | if (ce_ctx->ch) | 161 | nvgpu_ref_put(&ce_ctx->tsg->refcount, gk20a_tsg_release); |
162 | gk20a_channel_close(ce_ctx->ch); | ||
163 | 162 | ||
164 | /* housekeeping on app */ | 163 | /* housekeeping on app */ |
165 | if (list->prev && list->next) | 164 | if (list->prev && list->next) |