summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/nvgpu/gk20a/gr_gk20a.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
index 38d301db..d9ab99a4 100644
--- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
@@ -4596,13 +4596,9 @@ static int gk20a_init_gr_setup_sw(struct gk20a *g)
4596 if (err) 4596 if (err)
4597 goto clean_up; 4597 goto clean_up;
4598 4598
4599 if (tegra_cpu_is_asim()) 4599 gk20a_dbg_info("total ram pages : %lu", totalram_pages);
4600 gr->max_comptag_mem = 1; /* MBs worth of comptag coverage */ 4600 gr->max_comptag_mem = totalram_pages
4601 else { 4601 >> (10 - (PAGE_SHIFT - 10));
4602 gk20a_dbg_info("total ram pages : %lu", totalram_pages);
4603 gr->max_comptag_mem = totalram_pages
4604 >> (10 - (PAGE_SHIFT - 10));
4605 }
4606 err = g->ops.ltc.init_comptags(g, gr); 4602 err = g->ops.ltc.init_comptags(g, gr);
4607 if (err) 4603 if (err)
4608 goto clean_up; 4604 goto clean_up;