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 <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/450313
This commit is contained in:
Terje Bergstrom
2014-08-01 13:54:45 +03:00
committed by Dan Willemsen
parent 91d83a078c
commit c6a5d3369d

View File

@@ -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;