diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/mm_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/mm_gk20a.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c index fcd5d664..5faff04b 100644 --- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c | |||
@@ -4855,7 +4855,7 @@ static int gk20a_init_bar1_vm(struct mm_gk20a *mm) | |||
4855 | err = gk20a_alloc_inst_block(g, inst_block); | 4855 | err = gk20a_alloc_inst_block(g, inst_block); |
4856 | if (err) | 4856 | if (err) |
4857 | goto clean_up_va; | 4857 | goto clean_up_va; |
4858 | gk20a_init_inst_block(inst_block, vm, big_page_size); | 4858 | g->ops.mm.init_inst_block(inst_block, vm, big_page_size); |
4859 | 4859 | ||
4860 | return 0; | 4860 | return 0; |
4861 | 4861 | ||
@@ -4884,7 +4884,7 @@ static int gk20a_init_system_vm(struct mm_gk20a *mm) | |||
4884 | err = gk20a_alloc_inst_block(g, inst_block); | 4884 | err = gk20a_alloc_inst_block(g, inst_block); |
4885 | if (err) | 4885 | if (err) |
4886 | goto clean_up_va; | 4886 | goto clean_up_va; |
4887 | gk20a_init_inst_block(inst_block, vm, big_page_size); | 4887 | g->ops.mm.init_inst_block(inst_block, vm, big_page_size); |
4888 | 4888 | ||
4889 | return 0; | 4889 | return 0; |
4890 | 4890 | ||
@@ -4903,7 +4903,7 @@ static int gk20a_init_hwpm(struct mm_gk20a *mm) | |||
4903 | err = gk20a_alloc_inst_block(g, inst_block); | 4903 | err = gk20a_alloc_inst_block(g, inst_block); |
4904 | if (err) | 4904 | if (err) |
4905 | return err; | 4905 | return err; |
4906 | gk20a_init_inst_block(inst_block, vm, 0); | 4906 | g->ops.mm.init_inst_block(inst_block, vm, 0); |
4907 | 4907 | ||
4908 | return 0; | 4908 | return 0; |
4909 | } | 4909 | } |
@@ -5383,5 +5383,6 @@ void gk20a_init_mm(struct gpu_ops *gops) | |||
5383 | gops->mm.init_pdb = gk20a_mm_init_pdb; | 5383 | gops->mm.init_pdb = gk20a_mm_init_pdb; |
5384 | gops->mm.init_mm_setup_hw = gk20a_init_mm_setup_hw; | 5384 | gops->mm.init_mm_setup_hw = gk20a_init_mm_setup_hw; |
5385 | gops->mm.bar1_bind = gk20a_mm_bar1_bind; | 5385 | gops->mm.bar1_bind = gk20a_mm_bar1_bind; |
5386 | gops->mm.init_inst_block = gk20a_init_inst_block; | ||
5386 | gops->mm.is_bar1_supported = gk20a_mm_is_bar1_supported; | 5387 | gops->mm.is_bar1_supported = gk20a_mm_is_bar1_supported; |
5387 | } | 5388 | } |