diff options
author | Peter Daifuku <pdaifuku@nvidia.com> | 2017-10-06 19:27:14 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-10-13 18:20:18 -0400 |
commit | 57fb527a7e33384341fc18f1f918d5a8225057f5 (patch) | |
tree | 23bb49f879ac495834237c99564f0589d637f07e /drivers/gpu/nvgpu/vgpu/gp10b/vgpu_mm_gp10b.c | |
parent | 3d343c9eeaa3415851d1c71b8815eb7dc2677b5a (diff) |
gpu: nvgpu: vgpu: flatten out vgpu hal
Instead of calling the native HAL init function then adding
multiple layers of modification for VGPU, flatten out the sequence
so that all entry points are set statically and visible in a
single file.
JIRA ESRM-30
Change-Id: Ie424abb48bce5038874851d399baac5e4bb7d27c
Signed-off-by: Peter Daifuku <pdaifuku@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1574616
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
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 | } | ||