]> git.baikalelectronics.ru Git - kernel.git/commit
drm/tegra: Setup shared IOMMU domain after initialization
authorThierry Reding <treding@nvidia.com>
Fri, 1 Feb 2019 13:28:33 +0000 (14:28 +0100)
committerThierry Reding <treding@nvidia.com>
Thu, 7 Feb 2019 17:29:00 +0000 (18:29 +0100)
commit505adaf6d34ad9bae73b9d55b1911ce185e5dc9b
treeba85ec7e47bc17e2c09e050b28762db660364259
parent18b35a0598c9c2eb9b78e0fb281626ec95b1411f
drm/tegra: Setup shared IOMMU domain after initialization

Move initialization of the shared IOMMU domain after the host1x device
has been initialized. At this point all the Tegra DRM clients have been
attached to the shared IOMMU domain.

This is important because Tegra186 and later use an ARM SMMU, for which
the driver defers setting up the geometry for a domain until a device is
attached to it. This is to ensure that the domain is properly set up for
a specific ARM SMMU instance, which is unknown at allocation time.

Reviewed-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/drm.c