mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 18:42:29 +03:00
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:
committed by
Dan Willemsen
parent
91d83a078c
commit
c6a5d3369d
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user