diff options
author | Alex Waterman <alexw@nvidia.com> | 2016-09-21 17:24:59 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2016-10-26 14:10:01 -0400 |
commit | 2fa54c94a67e13d84df980d646674dde0ad27168 (patch) | |
tree | 2bf49a012542caa2ad278392b313305f74fe96f6 /drivers/gpu/nvgpu/vgpu/mm_vgpu.c | |
parent | 93eea1d72934b28db4707e5aa7ab4dab65d89551 (diff) |
gpu: nvgpu: Remove global debugfs variable
Remove a global debugfs variable and instead save the allocator
debugfs root node in the gk20a struct.
Bug 1799159
Change-Id: If4eed34fa24775e962001e34840b334658f2321c
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/1225611
(cherry picked from commit 1908fde10bb1fb60ce898ea329f5a441a3e4297a)
Reviewed-on: http://git-master/r/1242390
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/vgpu/mm_vgpu.c')
-rw-r--r-- | drivers/gpu/nvgpu/vgpu/mm_vgpu.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/mm_vgpu.c b/drivers/gpu/nvgpu/vgpu/mm_vgpu.c index b256598f..9a305fd5 100644 --- a/drivers/gpu/nvgpu/vgpu/mm_vgpu.c +++ b/drivers/gpu/nvgpu/vgpu/mm_vgpu.c | |||
@@ -371,6 +371,7 @@ static int vgpu_vm_alloc_share(struct gk20a_as_share *as_share, | |||
371 | gmmu_page_sizes[gmmu_page_size_small] >> 10); | 371 | gmmu_page_sizes[gmmu_page_size_small] >> 10); |
372 | 372 | ||
373 | err = __gk20a_buddy_allocator_init( | 373 | err = __gk20a_buddy_allocator_init( |
374 | g, | ||
374 | &vm->vma[gmmu_page_size_small], | 375 | &vm->vma[gmmu_page_size_small], |
375 | vm, name, | 376 | vm, name, |
376 | small_vma_start, | 377 | small_vma_start, |
@@ -386,6 +387,7 @@ static int vgpu_vm_alloc_share(struct gk20a_as_share *as_share, | |||
386 | snprintf(name, sizeof(name), "gk20a_as_%d-%dKB", as_share->id, | 387 | snprintf(name, sizeof(name), "gk20a_as_%d-%dKB", as_share->id, |
387 | gmmu_page_sizes[gmmu_page_size_big] >> 10); | 388 | gmmu_page_sizes[gmmu_page_size_big] >> 10); |
388 | err = __gk20a_buddy_allocator_init( | 389 | err = __gk20a_buddy_allocator_init( |
390 | g, | ||
389 | &vm->vma[gmmu_page_size_big], | 391 | &vm->vma[gmmu_page_size_big], |
390 | vm, name, | 392 | vm, name, |
391 | large_vma_start, | 393 | large_vma_start, |
@@ -402,7 +404,9 @@ static int vgpu_vm_alloc_share(struct gk20a_as_share *as_share, | |||
402 | /* | 404 | /* |
403 | * kernel reserved VMA is at the end of the aperture | 405 | * kernel reserved VMA is at the end of the aperture |
404 | */ | 406 | */ |
405 | err = __gk20a_buddy_allocator_init(&vm->vma[gmmu_page_size_kernel], | 407 | err = __gk20a_buddy_allocator_init( |
408 | g, | ||
409 | &vm->vma[gmmu_page_size_kernel], | ||
406 | vm, name, | 410 | vm, name, |
407 | kernel_vma_start, | 411 | kernel_vma_start, |
408 | kernel_vma_limit - kernel_vma_start, | 412 | kernel_vma_limit - kernel_vma_start, |