diff options
author | Alex Waterman <alexw@nvidia.com> | 2017-04-26 17:27:02 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-05-24 15:14:13 -0400 |
commit | b70bad4b9f40e94f731fd9d509e1f3f6617f0b05 (patch) | |
tree | 21bfaf082aeb7662eb194f72c5f33a36c7cb7bdc /drivers/gpu/nvgpu/gk20a/mm_gk20a.h | |
parent | 92fe030e5250409ecd500dcf719547f3fb0f1873 (diff) |
gpu: nvgpu: Refactor gk20a_vm_alloc_va()
This function is an internal function to the VM manager that allocates
virtual memory space in the GVA allocator. It is unfortunately used in
the vGPU code, though. In any event, this patch cleans up and moves the
implementation of these functions into the VM common code.
JIRA NVGPU-12
JIRA NVGPU-30
Change-Id: I24a3d29b5fcb12615df27d2ac82891d1bacfe541
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/1477745
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/mm_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/mm_gk20a.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h index 6ddf842a..27681199 100644 --- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h | |||
@@ -412,14 +412,6 @@ int nvgpu_vm_get_compbits_info(struct vm_gk20a *vm, | |||
412 | u32 *mapping_ctagline, | 412 | u32 *mapping_ctagline, |
413 | u32 *flags); | 413 | u32 *flags); |
414 | 414 | ||
415 | u64 gk20a_vm_alloc_va(struct vm_gk20a *vm, | ||
416 | u64 size, | ||
417 | enum gmmu_pgsz_gk20a gmmu_pgsz_idx); | ||
418 | |||
419 | int gk20a_vm_free_va(struct vm_gk20a *vm, | ||
420 | u64 offset, u64 size, | ||
421 | enum gmmu_pgsz_gk20a pgsz_idx); | ||
422 | |||
423 | /* vm-as interface */ | 415 | /* vm-as interface */ |
424 | struct nvgpu_as_alloc_space_args; | 416 | struct nvgpu_as_alloc_space_args; |
425 | struct nvgpu_as_free_space_args; | 417 | struct nvgpu_as_free_space_args; |