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.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/common/mm/gmmu.c b/drivers/gpu/nvgpu/common/mm/gmmu.c
index 78ec361e..5a61ac51 100644
--- a/drivers/gpu/nvgpu/common/mm/gmmu.c
+++ b/drivers/gpu/nvgpu/common/mm/gmmu.c
@@ -501,7 +501,9 @@ static int __nvgpu_gmmu_do_update_page_table(struct vm_gk20a *vm,
501 * mapping is simple since the "physical" address is actually a virtual 501 * mapping is simple since the "physical" address is actually a virtual
502 * IO address and will be contiguous. 502 * IO address and will be contiguous.
503 */ 503 */
504 if (attrs->aperture == APERTURE_SYSMEM && nvgpu_iommuable(g)) { 504 if (attrs->aperture == APERTURE_SYSMEM &&
505 nvgpu_iommuable(g) &&
506 nvgpu_sgt_iommuable(g, sgt)) {
505 u64 io_addr = nvgpu_sgt_get_gpu_addr(g, sgt, sgt->sgl, attrs); 507 u64 io_addr = nvgpu_sgt_get_gpu_addr(g, sgt, sgt->sgl, attrs);
506 508
507 io_addr += space_to_skip; 509 io_addr += space_to_skip;