From c6a5d3369dfb261dcd289438efc00cacd448c31e Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Fri, 1 Aug 2014 13:54:45 +0300 Subject: gpu: nvgpu: Dynamic compbit store size in asim We have hardcoded compbit backing store to cover 1MB of memory in ASIM. Remove that hard coding and use the total memory size instead. Change-Id: Ibb5c6ae88015960fa360ddd5f7bba05949d4da7b Signed-off-by: Terje Bergstrom Reviewed-on: http://git-master/r/450313 --- drivers/gpu/nvgpu/gk20a/gr_gk20a.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'drivers/gpu/nvgpu/gk20a/gr_gk20a.c') 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) if (err) goto clean_up; - if (tegra_cpu_is_asim()) - gr->max_comptag_mem = 1; /* MBs worth of comptag coverage */ - else { - gk20a_dbg_info("total ram pages : %lu", totalram_pages); - gr->max_comptag_mem = totalram_pages - >> (10 - (PAGE_SHIFT - 10)); - } + gk20a_dbg_info("total ram pages : %lu", totalram_pages); + gr->max_comptag_mem = totalram_pages + >> (10 - (PAGE_SHIFT - 10)); err = g->ops.ltc.init_comptags(g, gr); if (err) goto clean_up; -- cgit v1.2.2