summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gr_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gr_gk20a.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
index 7c007622..85d1a886 100644
--- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
@@ -2847,6 +2847,8 @@ static void gk20a_remove_gr_support(struct gr_gk20a *gr)
2847 2847
2848 gk20a_dbg_fn(""); 2848 gk20a_dbg_fn("");
2849 2849
2850 gr_gk20a_free_cyclestats_snapshot_data(g);
2851
2850 gr_gk20a_free_global_ctx_buffers(g); 2852 gr_gk20a_free_global_ctx_buffers(g);
2851 2853
2852 gk20a_gmmu_free(g, &gr->mmu_wr_mem); 2854 gk20a_gmmu_free(g, &gr->mmu_wr_mem);
@@ -4523,6 +4525,11 @@ int gk20a_init_gr_support(struct gk20a *g)
4523 4525
4524 gk20a_dbg_fn(""); 4526 gk20a_dbg_fn("");
4525 4527
4528#if defined(CONFIG_GK20A_CYCLE_STATS)
4529 mutex_init(&g->gr.cs_lock);
4530 g->gr.cs_data = NULL;
4531#endif
4532
4526 /* this is required before gr_gk20a_init_ctx_state */ 4533 /* this is required before gr_gk20a_init_ctx_state */
4527 mutex_init(&g->gr.fecs_mutex); 4534 mutex_init(&g->gr.fecs_mutex);
4528 4535