]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commitb9f8b09ce256e2e197b9a38984dea64e3404728c
treeba85ec7e47bc17e2c09e050b28762db660364259
parent77a0b09dd993c83ee7c770cc704e9bec18fd19c7
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