diff options
Diffstat (limited to 'drivers/gpu/nvgpu/os/linux/driver_common.c')
-rw-r--r-- | drivers/gpu/nvgpu/os/linux/driver_common.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/os/linux/driver_common.c b/drivers/gpu/nvgpu/os/linux/driver_common.c index b81cc90c..4d345aaa 100644 --- a/drivers/gpu/nvgpu/os/linux/driver_common.c +++ b/drivers/gpu/nvgpu/os/linux/driver_common.c | |||
@@ -98,8 +98,7 @@ static void nvgpu_init_gr_vars(struct gk20a *g) | |||
98 | gk20a_init_gr(g); | 98 | gk20a_init_gr(g); |
99 | 99 | ||
100 | nvgpu_log_info(g, "total ram pages : %lu", totalram_pages); | 100 | nvgpu_log_info(g, "total ram pages : %lu", totalram_pages); |
101 | g->gr.max_comptag_mem = totalram_pages | 101 | g->gr.max_comptag_mem = totalram_size_in_mb; |
102 | >> (10 - (PAGE_SHIFT - 10)); | ||
103 | 102 | ||
104 | /* Deduct the part taken by the running system */ | 103 | /* Deduct the part taken by the running system */ |
105 | if (platform->comptag_mem_deduct && | 104 | if (platform->comptag_mem_deduct && |