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.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/dma.c b/drivers/gpu/nvgpu/common/linux/dma.c
index d0b6c8a8..786065dd 100644
--- a/drivers/gpu/nvgpu/common/linux/dma.c
+++ b/drivers/gpu/nvgpu/common/linux/dma.c
@@ -634,7 +634,11 @@ void nvgpu_free_sgtable(struct gk20a *g, struct sg_table **sgt)
634 634
635bool nvgpu_iommuable(struct gk20a *g) 635bool nvgpu_iommuable(struct gk20a *g)
636{ 636{
637#ifdef CONFIG_TEGRA_GK20A
637 struct nvgpu_os_linux *l = nvgpu_os_linux_from_gk20a(g); 638 struct nvgpu_os_linux *l = nvgpu_os_linux_from_gk20a(g);
638 639
639 return device_is_iommuable(l->dev); 640 return device_is_iommuable(l->dev);
641#else
642 return true;
643#endif
640} 644}