summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/os/linux/driver_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/os/linux/driver_common.c')
-rw-r--r--drivers/gpu/nvgpu/os/linux/driver_common.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/gpu/nvgpu/os/linux/driver_common.c b/drivers/gpu/nvgpu/os/linux/driver_common.c
index 4d345aaa..6375030b 100644
--- a/drivers/gpu/nvgpu/os/linux/driver_common.c
+++ b/drivers/gpu/nvgpu/os/linux/driver_common.c
@@ -94,19 +94,10 @@ static void nvgpu_init_vars(struct gk20a *g)
94 94
95static void nvgpu_init_gr_vars(struct gk20a *g) 95static void nvgpu_init_gr_vars(struct gk20a *g)
96{ 96{
97 struct gk20a_platform *platform = dev_get_drvdata(dev_from_gk20a(g));
98 gk20a_init_gr(g); 97 gk20a_init_gr(g);
99 98
100 nvgpu_log_info(g, "total ram pages : %lu", totalram_pages); 99 nvgpu_log_info(g, "total ram pages : %lu", totalram_pages);
101 g->gr.max_comptag_mem = totalram_size_in_mb; 100 g->gr.max_comptag_mem = totalram_size_in_mb;
102
103 /* Deduct the part taken by the running system */
104 if (platform->comptag_mem_deduct &&
105 g->gr.max_comptag_mem > platform->comptag_mem_deduct) {
106 g->gr.max_comptag_mem -= platform->comptag_mem_deduct;
107 nvgpu_log_info(g, "deducted max memory for comptag: %u",
108 g->gr.max_comptag_mem);
109 }
110} 101}
111 102
112static void nvgpu_init_timeout(struct gk20a *g) 103static void nvgpu_init_timeout(struct gk20a *g)