diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/nvgpu/gp10b/mm_gp10b.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/mm_gp10b.c b/drivers/gpu/nvgpu/gp10b/mm_gp10b.c index 7778883e..c9da4c93 100644 --- a/drivers/gpu/nvgpu/gp10b/mm_gp10b.c +++ b/drivers/gpu/nvgpu/gp10b/mm_gp10b.c | |||
@@ -154,10 +154,11 @@ static u32 pte3_from_index(u32 i) | |||
154 | static u64 entry_addr(struct gk20a *g, struct gk20a_mm_entry *entry) | 154 | static u64 entry_addr(struct gk20a *g, struct gk20a_mm_entry *entry) |
155 | { | 155 | { |
156 | u64 addr; | 156 | u64 addr; |
157 | |||
157 | if (g->mm.has_physical_mode) | 158 | if (g->mm.has_physical_mode) |
158 | addr = sg_phys(entry->mem.sgt->sgl); | 159 | addr = sg_phys(entry->mem.sgt->sgl); |
159 | else | 160 | else |
160 | addr = g->ops.mm.get_iova_addr(g, entry->mem.sgt->sgl, 0); | 161 | addr = gk20a_mem_get_base_addr(g, &entry->mem, 0); |
161 | 162 | ||
162 | return addr; | 163 | return addr; |
163 | } | 164 | } |
@@ -386,7 +387,7 @@ static const struct gk20a_mmu_level *gp10b_mm_get_mmu_levels(struct gk20a *g, | |||
386 | static void gp10b_mm_init_pdb(struct gk20a *g, struct mem_desc *inst_block, | 387 | static void gp10b_mm_init_pdb(struct gk20a *g, struct mem_desc *inst_block, |
387 | struct vm_gk20a *vm) | 388 | struct vm_gk20a *vm) |
388 | { | 389 | { |
389 | u64 pdb_addr = g->ops.mm.get_iova_addr(g, vm->pdb.mem.sgt->sgl, 0); | 390 | u64 pdb_addr = gk20a_mem_get_base_addr(g, &vm->pdb.mem, 0); |
390 | u32 pdb_addr_lo = u64_lo32(pdb_addr >> ram_in_base_shift_v()); | 391 | u32 pdb_addr_lo = u64_lo32(pdb_addr >> ram_in_base_shift_v()); |
391 | u32 pdb_addr_hi = u64_hi32(pdb_addr); | 392 | u32 pdb_addr_hi = u64_hi32(pdb_addr); |
392 | 393 | ||