diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/nvgpu_mem.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/nvgpu_mem.c b/drivers/gpu/nvgpu/common/linux/nvgpu_mem.c index 64f638e2..e441ec76 100644 --- a/drivers/gpu/nvgpu/common/linux/nvgpu_mem.c +++ b/drivers/gpu/nvgpu/common/linux/nvgpu_mem.c | |||
@@ -316,7 +316,8 @@ void nvgpu_memset(struct gk20a *g, struct nvgpu_mem *mem, u32 offset, | |||
316 | */ | 316 | */ |
317 | u64 nvgpu_mem_get_addr_sgl(struct gk20a *g, struct scatterlist *sgl) | 317 | u64 nvgpu_mem_get_addr_sgl(struct gk20a *g, struct scatterlist *sgl) |
318 | { | 318 | { |
319 | if (!nvgpu_iommuable(g)) | 319 | if (nvgpu_is_enabled(g, NVGPU_MM_USE_PHYSICAL_SG) || |
320 | !nvgpu_iommuable(g)) | ||
320 | return g->ops.mm.gpu_phys_addr(g, NULL, sg_phys(sgl)); | 321 | return g->ops.mm.gpu_phys_addr(g, NULL, sg_phys(sgl)); |
321 | 322 | ||
322 | if (sg_dma_address(sgl) == 0) | 323 | if (sg_dma_address(sgl) == 0) |