summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/mm
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/common/mm')
-rw-r--r--drivers/gpu/nvgpu/common/mm/gmmu.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/common/mm/gmmu.c b/drivers/gpu/nvgpu/common/mm/gmmu.c
index 22f73083..1455822c 100644
--- a/drivers/gpu/nvgpu/common/mm/gmmu.c
+++ b/drivers/gpu/nvgpu/common/mm/gmmu.c
@@ -533,7 +533,8 @@ static int __nvgpu_gmmu_do_update_page_table(struct vm_gk20a *vm,
533 continue; 533 continue;
534 } 534 }
535 535
536 phys_addr = nvgpu_sgt_get_phys(sgt, sgl) + space_to_skip; 536 phys_addr = g->ops.mm.gpu_phys_addr(g, attrs,
537 nvgpu_sgt_get_phys(sgt, sgl)) + space_to_skip;
537 chunk_length = min(length, 538 chunk_length = min(length,
538 nvgpu_sgt_get_length(sgt, sgl) - space_to_skip); 539 nvgpu_sgt_get_length(sgt, sgl) - space_to_skip);
539 540