drm/tegra: Refactor IOMMU attach/detach
Attaching to and detaching from an IOMMU uses the same code sequence in every driver, so factor it out into separate helpers. Reviewed-by: Dmitry Osipenko <digetx@gmail.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
这个提交包含在:
@@ -110,6 +110,10 @@ 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);
|
||||
struct iommu_group *host1x_client_iommu_attach(struct host1x_client *client,
|
||||
bool shared);
|
||||
void host1x_client_iommu_detach(struct host1x_client *client,
|
||||
struct iommu_group *group);
|
||||
|
||||
int tegra_drm_init(struct tegra_drm *tegra, struct drm_device *drm);
|
||||
int tegra_drm_exit(struct tegra_drm *tegra);
|
||||
|
在新工单中引用
屏蔽一个用户