diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gv11b')
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/gr_gv11b.c | 2 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/subctx_gv11b.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/gr_gv11b.c b/drivers/gpu/nvgpu/gv11b/gr_gv11b.c index 33a5067e..190e3df5 100644 --- a/drivers/gpu/nvgpu/gv11b/gr_gv11b.c +++ b/drivers/gpu/nvgpu/gv11b/gr_gv11b.c | |||
@@ -652,7 +652,7 @@ int gr_gv11b_alloc_buffer(struct vm_gk20a *vm, size_t size, | |||
652 | return err; | 652 | return err; |
653 | 653 | ||
654 | mem->gpu_va = gk20a_gmmu_map(vm, | 654 | mem->gpu_va = gk20a_gmmu_map(vm, |
655 | &mem->sgt, | 655 | &mem->priv.sgt, |
656 | size, | 656 | size, |
657 | NVGPU_MAP_BUFFER_FLAGS_CACHEABLE_TRUE, | 657 | NVGPU_MAP_BUFFER_FLAGS_CACHEABLE_TRUE, |
658 | gk20a_mem_flag_none, | 658 | gk20a_mem_flag_none, |
diff --git a/drivers/gpu/nvgpu/gv11b/subctx_gv11b.c b/drivers/gpu/nvgpu/gv11b/subctx_gv11b.c index c3ff9185..dcf69adf 100644 --- a/drivers/gpu/nvgpu/gv11b/subctx_gv11b.c +++ b/drivers/gpu/nvgpu/gv11b/subctx_gv11b.c | |||
@@ -64,7 +64,7 @@ int gv11b_alloc_subctx_header(struct channel_gk20a *c) | |||
64 | return ret; | 64 | return ret; |
65 | } | 65 | } |
66 | ctx->mem.gpu_va = gk20a_gmmu_map(c->vm, | 66 | ctx->mem.gpu_va = gk20a_gmmu_map(c->vm, |
67 | &ctx->mem.sgt, | 67 | &ctx->mem.priv.sgt, |
68 | ctx->mem.size, | 68 | ctx->mem.size, |
69 | NVGPU_MAP_BUFFER_FLAGS_CACHEABLE_TRUE, | 69 | NVGPU_MAP_BUFFER_FLAGS_CACHEABLE_TRUE, |
70 | gk20a_mem_flag_none, true, | 70 | gk20a_mem_flag_none, true, |
@@ -99,7 +99,7 @@ static void gv11b_init_subcontext_pdb(struct channel_gk20a *c, | |||
99 | gk20a_dbg_fn(""); | 99 | gk20a_dbg_fn(""); |
100 | /* load main pdb as veid0 pdb also */ | 100 | /* load main pdb as veid0 pdb also */ |
101 | vm = c->vm; | 101 | vm = c->vm; |
102 | pdb_addr = g->ops.mm.get_iova_addr(g, vm->pdb.mem.sgt->sgl, 0); | 102 | pdb_addr = g->ops.mm.get_iova_addr(g, vm->pdb.mem.priv.sgt->sgl, 0); |
103 | pdb_addr_lo = u64_lo32(pdb_addr >> ram_in_base_shift_v()); | 103 | pdb_addr_lo = u64_lo32(pdb_addr >> ram_in_base_shift_v()); |
104 | pdb_addr_hi = u64_hi32(pdb_addr); | 104 | pdb_addr_hi = u64_hi32(pdb_addr); |
105 | format_word = ram_in_sc_page_dir_base_target_f( | 105 | format_word = ram_in_sc_page_dir_base_target_f( |