]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8d4f356019862f9cbaef1e911c48b06390fc090a
tree9996a93368d49ecfef71bc8c263b66a66d73aae4
parent0d99a7459ea95f9f3768ee8e417a517419dd9868
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