diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/fifo_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/fifo_gk20a.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c b/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c index 95351a43..e9eab551 100644 --- a/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c | |||
@@ -502,6 +502,7 @@ static void gk20a_remove_fifo_support(struct fifo_gk20a *f) | |||
502 | 502 | ||
503 | gk20a_dbg_fn(""); | 503 | gk20a_dbg_fn(""); |
504 | 504 | ||
505 | nvgpu_channel_worker_deinit(g); | ||
505 | /* | 506 | /* |
506 | * Make sure all channels are closed before deleting them. | 507 | * Make sure all channels are closed before deleting them. |
507 | */ | 508 | */ |
@@ -900,6 +901,9 @@ static int gk20a_init_fifo_setup_sw(struct gk20a *g) | |||
900 | } | 901 | } |
901 | nvgpu_mutex_init(&f->tsg_inuse_mutex); | 902 | nvgpu_mutex_init(&f->tsg_inuse_mutex); |
902 | 903 | ||
904 | err = nvgpu_channel_worker_init(g); | ||
905 | if (err) | ||
906 | goto clean_up; | ||
903 | f->remove_support = gk20a_remove_fifo_support; | 907 | f->remove_support = gk20a_remove_fifo_support; |
904 | 908 | ||
905 | f->deferred_reset_pending = false; | 909 | f->deferred_reset_pending = false; |