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/gm20b/mm_gm20b.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/gm20b/mm_gm20b.h')
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/mm_gm20b.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/mm_gm20b.h b/drivers/gpu/nvgpu/gm20b/mm_gm20b.h index 602e18dc..af67845a 100644 --- a/drivers/gpu/nvgpu/gm20b/mm_gm20b.h +++ b/drivers/gpu/nvgpu/gm20b/mm_gm20b.h | |||
@@ -38,4 +38,6 @@ bool gm20b_mm_is_bar1_supported(struct gk20a *g); | |||
38 | int gm20b_mm_mmu_vpr_info_fetch(struct gk20a *g); | 38 | int gm20b_mm_mmu_vpr_info_fetch(struct gk20a *g); |
39 | u64 gm20b_gpu_phys_addr(struct gk20a *g, | 39 | u64 gm20b_gpu_phys_addr(struct gk20a *g, |
40 | struct nvgpu_gmmu_attrs *attrs, u64 phys); | 40 | struct nvgpu_gmmu_attrs *attrs, u64 phys); |
41 | u32 gm20b_get_kind_invalid(void); | ||
42 | u32 gm20b_get_kind_pitch(void); | ||
41 | #endif | 43 | #endif |