summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/linux/nvgpu_mem.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/nvgpu_mem.c')
-rw-r--r--drivers/gpu/nvgpu/common/linux/nvgpu_mem.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/nvgpu_mem.c b/drivers/gpu/nvgpu/common/linux/nvgpu_mem.c
index eb64ecd3..79098eca 100644
--- a/drivers/gpu/nvgpu/common/linux/nvgpu_mem.c
+++ b/drivers/gpu/nvgpu/common/linux/nvgpu_mem.c
@@ -313,9 +313,7 @@ void nvgpu_memset(struct gk20a *g, struct nvgpu_mem *mem, u32 offset,
313 */ 313 */
314u64 nvgpu_mem_get_addr_sgl(struct gk20a *g, struct scatterlist *sgl) 314u64 nvgpu_mem_get_addr_sgl(struct gk20a *g, struct scatterlist *sgl)
315{ 315{
316 struct nvgpu_os_linux *l = container_of(g, struct nvgpu_os_linux, g); 316 if (!nvgpu_iommuable(g))
317
318 if (!device_is_iommuable(l->dev))
319 return g->ops.mm.gpu_phys_addr(g, NULL, sg_phys(sgl)); 317 return g->ops.mm.gpu_phys_addr(g, NULL, sg_phys(sgl));
320 318
321 if (sg_dma_address(sgl) == 0) 319 if (sg_dma_address(sgl) == 0)