summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/vgpu/mm_vgpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/vgpu/mm_vgpu.c')
-rw-r--r--drivers/gpu/nvgpu/vgpu/mm_vgpu.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/mm_vgpu.c b/drivers/gpu/nvgpu/vgpu/mm_vgpu.c
index c73037b6..2b23c4e6 100644
--- a/drivers/gpu/nvgpu/vgpu/mm_vgpu.c
+++ b/drivers/gpu/nvgpu/vgpu/mm_vgpu.c
@@ -34,9 +34,12 @@ static int vgpu_init_mm_setup_sw(struct gk20a *g)
34 mm->g = g; 34 mm->g = g;
35 35
36 /*TBD: make channel vm size configurable */ 36 /*TBD: make channel vm size configurable */
37 mm->channel.size = 1ULL << NV_GMMU_VA_RANGE; 37 mm->channel.user_size = NV_MM_DEFAULT_USER_SIZE;
38 mm->channel.kernel_size = NV_MM_DEFAULT_KERNEL_SIZE;
38 39
39 gk20a_dbg_info("channel vm size: %dMB", (int)(mm->channel.size >> 20)); 40 gk20a_dbg_info("channel vm size: user %dMB kernel %dMB",
41 (int)(mm->channel.user_size >> 20),
42 (int)(mm->channel.kernel_size >> 20));
40 43
41 /* gk20a_init_gpu_characteristics expects this to be populated */ 44 /* gk20a_init_gpu_characteristics expects this to be populated */
42 vm->big_page_size = big_page_size; 45 vm->big_page_size = big_page_size;
@@ -276,8 +279,8 @@ static int vgpu_vm_alloc_share(struct gk20a_as_share *as_share,
276 vm->big_page_size = big_page_size; 279 vm->big_page_size = big_page_size;
277 280
278 vm->va_start = big_page_size << 10; /* create a one pde hole */ 281 vm->va_start = big_page_size << 10; /* create a one pde hole */
279 vm->va_limit = mm->channel.size; /* note this means channel.size is 282 vm->va_limit = mm->channel.user_size; /* note this means channel.size
280 really just the max */ 283 is really just the max */
281 284
282 msg.cmd = TEGRA_VGPU_CMD_AS_ALLOC_SHARE; 285 msg.cmd = TEGRA_VGPU_CMD_AS_ALLOC_SHARE;
283 msg.handle = platform->virt_handle; 286 msg.handle = platform->virt_handle;