summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/linux/dma.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/dma.c')
-rw-r--r--drivers/gpu/nvgpu/common/linux/dma.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/dma.c b/drivers/gpu/nvgpu/common/linux/dma.c
index 786065dd..ec9c3b5a 100644
--- a/drivers/gpu/nvgpu/common/linux/dma.c
+++ b/drivers/gpu/nvgpu/common/linux/dma.c
@@ -637,8 +637,13 @@ bool nvgpu_iommuable(struct gk20a *g)
637#ifdef CONFIG_TEGRA_GK20A 637#ifdef CONFIG_TEGRA_GK20A
638 struct nvgpu_os_linux *l = nvgpu_os_linux_from_gk20a(g); 638 struct nvgpu_os_linux *l = nvgpu_os_linux_from_gk20a(g);
639 639
640 return device_is_iommuable(l->dev); 640 /*
641#else 641 * Check against the nvgpu device to see if it's been marked as
642 return true; 642 * IOMMU'able.
643 */
644 if (!device_is_iommuable(l->dev))
645 return false;
643#endif 646#endif
647
648 return true;
644} 649}