diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/dma.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/dma.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/dma.c b/drivers/gpu/nvgpu/common/linux/dma.c index 67b58016..7b892731 100644 --- a/drivers/gpu/nvgpu/common/linux/dma.c +++ b/drivers/gpu/nvgpu/common/linux/dma.c | |||
@@ -631,3 +631,10 @@ void nvgpu_free_sgtable(struct gk20a *g, struct sg_table **sgt) | |||
631 | nvgpu_kfree(g, *sgt); | 631 | nvgpu_kfree(g, *sgt); |
632 | *sgt = NULL; | 632 | *sgt = NULL; |
633 | } | 633 | } |
634 | |||
635 | bool nvgpu_iommuable(struct gk20a *g) | ||
636 | { | ||
637 | struct nvgpu_os_linux *l = nvgpu_os_linux_from_gk20a(g); | ||
638 | |||
639 | return device_is_iommuable(l->dev); | ||
640 | } | ||