summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/tsg_gk20a.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/tsg_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/tsg_gk20a.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/tsg_gk20a.c b/drivers/gpu/nvgpu/gk20a/tsg_gk20a.c
index 0d07c790..a0dcd622 100644
--- a/drivers/gpu/nvgpu/gk20a/tsg_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/tsg_gk20a.c
@@ -268,6 +268,9 @@ struct tsg_gk20a *gk20a_tsg_open(struct gk20a *g)
268 tsg->runlist_id = ~0; 268 tsg->runlist_id = ~0;
269 tsg->tgid = current->tgid; 269 tsg->tgid = current->tgid;
270 270
271 if (g->ops.fifo.init_eng_method_buffers)
272 g->ops.fifo.init_eng_method_buffers(g, tsg);
273
271 if (g->ops.fifo.tsg_open) { 274 if (g->ops.fifo.tsg_open) {
272 err = g->ops.fifo.tsg_open(tsg); 275 err = g->ops.fifo.tsg_open(tsg);
273 if (err) { 276 if (err) {
@@ -298,6 +301,10 @@ void gk20a_tsg_release(struct kref *ref)
298 gr_gk20a_free_tsg_gr_ctx(tsg); 301 gr_gk20a_free_tsg_gr_ctx(tsg);
299 tsg->tsg_gr_ctx = NULL; 302 tsg->tsg_gr_ctx = NULL;
300 } 303 }
304
305 if (g->ops.fifo.deinit_eng_method_buffers)
306 g->ops.fifo.deinit_eng_method_buffers(g, tsg);
307
301 if (tsg->vm) { 308 if (tsg->vm) {
302 nvgpu_vm_put(tsg->vm); 309 nvgpu_vm_put(tsg->vm);
303 tsg->vm = NULL; 310 tsg->vm = NULL;