summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gp10b/mm_gp10b.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b/mm_gp10b.c')
-rw-r--r--drivers/gpu/nvgpu/gp10b/mm_gp10b.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/mm_gp10b.c b/drivers/gpu/nvgpu/gp10b/mm_gp10b.c
index 06a9b929..dc746153 100644
--- a/drivers/gpu/nvgpu/gp10b/mm_gp10b.c
+++ b/drivers/gpu/nvgpu/gp10b/mm_gp10b.c
@@ -22,6 +22,7 @@
22 * DEALINGS IN THE SOFTWARE. 22 * DEALINGS IN THE SOFTWARE.
23 */ 23 */
24 24
25#include <nvgpu/mm.h>
25#include <nvgpu/dma.h> 26#include <nvgpu/dma.h>
26#include <nvgpu/gmmu.h> 27#include <nvgpu/gmmu.h>
27 28
@@ -95,7 +96,7 @@ int gb10b_init_bar2_vm(struct gk20a *g)
95 return -ENOMEM; 96 return -ENOMEM;
96 97
97 /* allocate instance mem for bar2 */ 98 /* allocate instance mem for bar2 */
98 err = gk20a_alloc_inst_block(g, inst_block); 99 err = g->ops.mm.alloc_inst_block(g, inst_block);
99 if (err) 100 if (err)
100 goto clean_up_va; 101 goto clean_up_va;
101 102
@@ -112,7 +113,7 @@ int gb10b_init_bar2_mm_hw_setup(struct gk20a *g)
112{ 113{
113 struct mm_gk20a *mm = &g->mm; 114 struct mm_gk20a *mm = &g->mm;
114 struct nvgpu_mem *inst_block = &mm->bar2.inst_block; 115 struct nvgpu_mem *inst_block = &mm->bar2.inst_block;
115 u64 inst_pa = gk20a_mm_inst_block_addr(g, inst_block); 116 u64 inst_pa = nvgpu_inst_block_addr(g, inst_block);
116 117
117 gk20a_dbg_fn(""); 118 gk20a_dbg_fn("");
118 119
@@ -374,6 +375,6 @@ void gp10b_remove_bar2_vm(struct gk20a *g)
374 struct mm_gk20a *mm = &g->mm; 375 struct mm_gk20a *mm = &g->mm;
375 376
376 gp10b_replayable_pagefault_buffer_deinit(g); 377 gp10b_replayable_pagefault_buffer_deinit(g);
377 gk20a_free_inst_block(g, &mm->bar2.inst_block); 378 nvgpu_free_inst_block(g, &mm->bar2.inst_block);
378 nvgpu_vm_put(mm->bar2.vm); 379 nvgpu_vm_put(mm->bar2.vm);
379} 380}