diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/cde_gk20a.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/cde_gk20a.c b/drivers/gpu/nvgpu/gk20a/cde_gk20a.c index d15b6e8a..dc7e8be3 100644 --- a/drivers/gpu/nvgpu/gk20a/cde_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/cde_gk20a.c | |||
@@ -73,14 +73,14 @@ __must_hold(&cde_app->mutex) | |||
73 | 73 | ||
74 | trace_gk20a_cde_remove_ctx(cde_ctx); | 74 | trace_gk20a_cde_remove_ctx(cde_ctx); |
75 | 75 | ||
76 | /* free the channel */ | 76 | /* release mapped memory */ |
77 | gk20a_channel_close(ch); | ||
78 | |||
79 | /* ..then release mapped memory */ | ||
80 | gk20a_deinit_cde_img(cde_ctx); | 77 | gk20a_deinit_cde_img(cde_ctx); |
81 | gk20a_gmmu_unmap(vm, cde_ctx->backing_store_vaddr, | 78 | gk20a_gmmu_unmap(vm, cde_ctx->backing_store_vaddr, |
82 | g->gr.compbit_store.mem.size, 1); | 79 | g->gr.compbit_store.mem.size, 1); |
83 | 80 | ||
81 | /* free the channel */ | ||
82 | gk20a_channel_close(ch); | ||
83 | |||
84 | /* housekeeping on app */ | 84 | /* housekeeping on app */ |
85 | list_del(&cde_ctx->list); | 85 | list_del(&cde_ctx->list); |
86 | cde_ctx->g->cde_app.ctx_count--; | 86 | cde_ctx->g->cde_app.ctx_count--; |