drm/tegra: Simplify IOMMU group selection
All the devices that make up the DRM device are now part of the same IOMMU group. This simplifies the handling of the IOMMU attachment and also avoids exhausting the number of IOMMUs available on early Tegra SoC generations. Signed-off-by: Thierry Reding <treding@nvidia.com>
This commit is contained in:
@@ -36,7 +36,6 @@ struct tegra_drm {
|
||||
struct drm_device *drm;
|
||||
|
||||
struct iommu_domain *domain;
|
||||
struct iommu_group *group;
|
||||
struct mutex mm_lock;
|
||||
struct drm_mm mm;
|
||||
|
||||
@@ -100,7 +99,7 @@ int tegra_drm_register_client(struct tegra_drm *tegra,
|
||||
struct tegra_drm_client *client);
|
||||
int tegra_drm_unregister_client(struct tegra_drm *tegra,
|
||||
struct tegra_drm_client *client);
|
||||
int host1x_client_iommu_attach(struct host1x_client *client, bool shared);
|
||||
int host1x_client_iommu_attach(struct host1x_client *client);
|
||||
void host1x_client_iommu_detach(struct host1x_client *client);
|
||||
|
||||
int tegra_drm_init(struct tegra_drm *tegra, struct drm_device *drm);
|
||||
|
Reference in New Issue
Block a user