drm/tegra: Optionally attach clients to the IOMMU
authorThierry Reding <treding@nvidia.com>
Mon, 28 Oct 2019 12:37:18 +0000 (13:37 +0100)
committerThierry Reding <treding@nvidia.com>
Tue, 29 Oct 2019 14:04:37 +0000 (15:04 +0100)
commitfa6661b7aa0b52073681b0d26742650c8cbd30f3
tree9996a93368d49ecfef71bc8c263b66a66d73aae4
parent2e8d8749f6f9bb35b947228271dc9ec31be93335
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>
drivers/gpu/drm/tegra/drm.c
drivers/gpu/drm/tegra/drm.h