diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/mm_gv11b.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/mm_gv11b.c b/drivers/gpu/nvgpu/gv11b/mm_gv11b.c index 80ac21e6..ff4e3b06 100644 --- a/drivers/gpu/nvgpu/gv11b/mm_gv11b.c +++ b/drivers/gpu/nvgpu/gv11b/mm_gv11b.c | |||
@@ -25,9 +25,25 @@ static bool gv11b_mm_is_bar1_supported(struct gk20a *g) | |||
25 | return false; | 25 | return false; |
26 | } | 26 | } |
27 | 27 | ||
28 | static void gv11b_init_inst_block(struct mem_desc *inst_block, | ||
29 | struct vm_gk20a *vm, u32 big_page_size) | ||
30 | { | ||
31 | struct gk20a *g = gk20a_from_vm(vm); | ||
32 | |||
33 | gk20a_dbg_info("inst block phys = 0x%llx, kv = 0x%p", | ||
34 | gk20a_mm_inst_block_addr(g, inst_block), inst_block->cpu_va); | ||
35 | |||
36 | g->ops.mm.init_pdb(g, inst_block, vm); | ||
37 | |||
38 | if (big_page_size && g->ops.mm.set_big_page_size) | ||
39 | g->ops.mm.set_big_page_size(g, inst_block, big_page_size); | ||
40 | } | ||
41 | |||
42 | |||
28 | void gv11b_init_mm(struct gpu_ops *gops) | 43 | void gv11b_init_mm(struct gpu_ops *gops) |
29 | { | 44 | { |
30 | gp10b_init_mm(gops); | 45 | gp10b_init_mm(gops); |
31 | gops->mm.bar1_bind = NULL; | 46 | gops->mm.bar1_bind = NULL; |
32 | gops->mm.is_bar1_supported = gv11b_mm_is_bar1_supported; | 47 | gops->mm.is_bar1_supported = gv11b_mm_is_bar1_supported; |
48 | gops->mm.init_inst_block = gv11b_init_inst_block; | ||
33 | } | 49 | } |