diff options
Diffstat (limited to 'drivers/gpu/nvgpu/vgpu/gp10b/vgpu_mm_gp10b.c')
-rw-r--r-- | drivers/gpu/nvgpu/vgpu/gp10b/vgpu_mm_gp10b.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_mm_gp10b.c b/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_mm_gp10b.c index cb7008ba..f063961f 100644 --- a/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_mm_gp10b.c +++ b/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_mm_gp10b.c | |||
@@ -28,7 +28,7 @@ | |||
28 | 28 | ||
29 | #include <nvgpu/bug.h> | 29 | #include <nvgpu/bug.h> |
30 | 30 | ||
31 | static int vgpu_gp10b_init_mm_setup_hw(struct gk20a *g) | 31 | int vgpu_gp10b_init_mm_setup_hw(struct gk20a *g) |
32 | { | 32 | { |
33 | g->mm.bypass_smmu = true; | 33 | g->mm.bypass_smmu = true; |
34 | g->mm.disable_bigpage = true; | 34 | g->mm.disable_bigpage = true; |
@@ -47,7 +47,7 @@ static inline int add_mem_desc(struct tegra_vgpu_mem_desc *mem_desc, | |||
47 | return 0; | 47 | return 0; |
48 | } | 48 | } |
49 | 49 | ||
50 | static u64 vgpu_gp10b_locked_gmmu_map(struct vm_gk20a *vm, | 50 | u64 vgpu_gp10b_locked_gmmu_map(struct vm_gk20a *vm, |
51 | u64 map_offset, | 51 | u64 map_offset, |
52 | struct nvgpu_sgt *sgt, | 52 | struct nvgpu_sgt *sgt, |
53 | u64 buffer_offset, | 53 | u64 buffer_offset, |
@@ -200,14 +200,3 @@ fail: | |||
200 | 200 | ||
201 | return 0; | 201 | return 0; |
202 | } | 202 | } |
203 | |||
204 | void vgpu_gp10b_init_mm_ops(struct gpu_ops *gops) | ||
205 | { | ||
206 | gk20a_dbg_fn(""); | ||
207 | |||
208 | gops->mm.gmmu_map = vgpu_gp10b_locked_gmmu_map; | ||
209 | gops->mm.init_mm_setup_hw = vgpu_gp10b_init_mm_setup_hw; | ||
210 | |||
211 | /* FIXME: add support for sparse mappings */ | ||
212 | gops->mm.support_sparse = NULL; | ||
213 | } | ||