diff options
author | Alex Waterman <alexw@nvidia.com> | 2017-09-07 19:45:07 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-10-18 19:00:37 -0400 |
commit | 0853109c9994d1375a10d13ae254690a4a4c9610 (patch) | |
tree | 339adb7e8e74c8e0085b24ed9e50181a9aafa3ee /drivers/gpu/nvgpu/common/linux/vm_priv.h | |
parent | b3446bc0b6fca6cb992667f80a95f8503b6a652a (diff) |
gpu: nvgpu: Refactoring nvgpu_vm functions
Refactor the last nvgpu_vm functions from the mm_gk20a.c code. This
removes some usages of dma_buf from the mm_gk20a.c code, too, which
helps make mm_gk20a.c less Linux specific.
Also delete some header files that are no longer necessary in
gk20a/mm_gk20a.c which are Linux specific. The mm_gk20a.c code is now
quite close to being Linux free.
JIRA NVGPU-30
JIRA NVGPU-138
Change-Id: I72b370bd85a7b029768b0fb4827d6abba42007c3
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1566629
Reviewed-by: Konsta Holtta <kholtta@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/vm_priv.h')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/vm_priv.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/vm_priv.h b/drivers/gpu/nvgpu/common/linux/vm_priv.h index fa173d59..be7efa8b 100644 --- a/drivers/gpu/nvgpu/common/linux/vm_priv.h +++ b/drivers/gpu/nvgpu/common/linux/vm_priv.h | |||
@@ -88,9 +88,9 @@ int nvgpu_vm_map_buffer(struct vm_gk20a *vm, | |||
88 | void nvgpu_vm_unmap(struct vm_gk20a *vm, u64 offset); | 88 | void nvgpu_vm_unmap(struct vm_gk20a *vm, u64 offset); |
89 | 89 | ||
90 | /* find buffer corresponding to va */ | 90 | /* find buffer corresponding to va */ |
91 | int nvgpu_vm_find_buffer(struct vm_gk20a *vm, u64 gpu_va, | 91 | int nvgpu_vm_find_buf(struct vm_gk20a *vm, u64 gpu_va, |
92 | struct dma_buf **dmabuf, | 92 | struct dma_buf **dmabuf, |
93 | u64 *offset); | 93 | u64 *offset); |
94 | 94 | ||
95 | enum nvgpu_aperture gk20a_dmabuf_aperture(struct gk20a *g, | 95 | enum nvgpu_aperture gk20a_dmabuf_aperture(struct gk20a *g, |
96 | struct dma_buf *dmabuf); | 96 | struct dma_buf *dmabuf); |
@@ -98,9 +98,5 @@ int validate_fixed_buffer(struct vm_gk20a *vm, | |||
98 | struct buffer_attrs *bfr, | 98 | struct buffer_attrs *bfr, |
99 | u64 map_offset, u64 map_size, | 99 | u64 map_offset, u64 map_size, |
100 | struct nvgpu_vm_area **pva_node); | 100 | struct nvgpu_vm_area **pva_node); |
101 | int setup_buffer_kind_and_compression(struct vm_gk20a *vm, | ||
102 | u32 flags, | ||
103 | struct buffer_attrs *bfr, | ||
104 | enum gmmu_pgsz_gk20a pgsz_idx); | ||
105 | 101 | ||
106 | #endif | 102 | #endif |