diff options
author | Thierry Reding <treding@nvidia.com> | 2019-10-28 15:37:18 +0300 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2019-10-29 17:04:37 +0300 |
commit | fa6661b7aa0b52073681b0d26742650c8cbd30f3 (patch) | |
tree | 9996a93368d49ecfef71bc8c263b66a66d73aae4 /drivers/gpu/drm/tegra/drm.h | |
parent | 2e8d8749f6f9bb35b947228271dc9ec31be93335 (diff) | |
download | linux-fa6661b7aa0b52073681b0d26742650c8cbd30f3.tar.xz |
drm/tegra: Optionally attach clients to the IOMMU
If a client is already attached to an IOMMU domain that is not the
shared domain, don't try to attach it again. This allows using the
IOMMU-backed DMA API.
Since the IOMMU-backed DMA API is now supported and there's no way
to detach from it on 64-bit ARM, don't bother to detach from it on
32-bit ARM either.
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu/drm/tegra/drm.h')
-rw-r--r-- | drivers/gpu/drm/tegra/drm.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/tegra/drm.h b/drivers/gpu/drm/tegra/drm.h index 28f2820a7371..d941553f7a3d 100644 --- a/drivers/gpu/drm/tegra/drm.h +++ b/drivers/gpu/drm/tegra/drm.h @@ -36,6 +36,7 @@ struct tegra_drm { struct drm_device *drm; struct iommu_domain *domain; + bool use_explicit_iommu; struct mutex mm_lock; struct drm_mm mm; |