summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/vgpu
diff options
context:
space:
mode:
authorAlex Waterman <alexw@nvidia.com>2017-05-01 19:12:16 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-05-26 06:33:57 -0400
commitfbafc7eba41ba7654dfdadf51a53acf1638e9fa1 (patch)
tree7457efcb4c9fb9e1f2121267d980f2c380c7f0f6 /drivers/gpu/nvgpu/vgpu
parentf76febb962e1681690dd378884f51770e7271820 (diff)
gpu: nvgpu: Refactor VM init/cleanup
Refactor the API for initializing and cleaning up VMs. This also involved moving a bunch of GMMU code out into the gmmu code since part of initializing a VM involves initializing the page tables for the VM. JIRA NVGPU-12 JIRA NVGPU-30 Change-Id: I4710f08c26a6e39806f0762a35f6db5c94b64c50 Signed-off-by: Alex Waterman <alexw@nvidia.com> Reviewed-on: http://git-master/r/1477746 GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/vgpu')
-rw-r--r--drivers/gpu/nvgpu/vgpu/mm_vgpu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/mm_vgpu.c b/drivers/gpu/nvgpu/vgpu/mm_vgpu.c
index b8b5985c..63490aa5 100644
--- a/drivers/gpu/nvgpu/vgpu/mm_vgpu.c
+++ b/drivers/gpu/nvgpu/vgpu/mm_vgpu.c
@@ -364,7 +364,7 @@ static int vgpu_vm_alloc_share(struct gk20a_as_share *as_share,
364 if (user_vma_start < user_vma_limit) { 364 if (user_vma_start < user_vma_limit) {
365 snprintf(name, sizeof(name), "gk20a_as_%d-%dKB", as_share->id, 365 snprintf(name, sizeof(name), "gk20a_as_%d-%dKB", as_share->id,
366 gmmu_page_sizes[gmmu_page_size_small] >> 10); 366 gmmu_page_sizes[gmmu_page_size_small] >> 10);
367 if (!gk20a_big_pages_possible(vm, user_vma_start, 367 if (!nvgpu_big_pages_possible(vm, user_vma_start,
368 user_vma_limit - user_vma_start)) 368 user_vma_limit - user_vma_start))
369 vm->big_pages = false; 369 vm->big_pages = false;
370 370
@@ -391,7 +391,7 @@ static int vgpu_vm_alloc_share(struct gk20a_as_share *as_share,
391 391
392 snprintf(name, sizeof(name), "gk20a_as_%dKB-sys", 392 snprintf(name, sizeof(name), "gk20a_as_%dKB-sys",
393 gmmu_page_sizes[gmmu_page_size_kernel] >> 10); 393 gmmu_page_sizes[gmmu_page_size_kernel] >> 10);
394 if (!gk20a_big_pages_possible(vm, kernel_vma_start, 394 if (!nvgpu_big_pages_possible(vm, kernel_vma_start,
395 kernel_vma_limit - kernel_vma_start)) 395 kernel_vma_limit - kernel_vma_start))
396 vm->big_pages = false; 396 vm->big_pages = false;
397 397