diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2014-08-01 06:54:45 -0400 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-03-18 15:10:48 -0400 |
commit | c6a5d3369dfb261dcd289438efc00cacd448c31e (patch) | |
tree | 3b5ce08735c478a629f1b514578e4b6b4ecae7b9 /drivers/gpu/nvgpu | |
parent | 91d83a078cbd11eaa1d29dbda038c1d0b914479a (diff) |
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
Diffstat (limited to 'drivers/gpu/nvgpu')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gr_gk20a.c | 10 |
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; |