iommu/tegra-smmu: Add debugfs support
Provide clients and swgroups files in debugfs. These files show for which clients IOMMU translation is enabled and which ASID is associated with each SWGROUP. Cc: Hiroshi Doyu <hdoyu@nvidia.com> Acked-by: Joerg Roedel <jroedel@suse.de> Signed-off-by: Thierry Reding <treding@nvidia.com>
This commit is contained in:
@@ -72,6 +72,7 @@ struct tegra_smmu;
|
||||
struct tegra_smmu *tegra_smmu_probe(struct device *dev,
|
||||
const struct tegra_smmu_soc *soc,
|
||||
struct tegra_mc *mc);
|
||||
void tegra_smmu_remove(struct tegra_smmu *smmu);
|
||||
#else
|
||||
static inline struct tegra_smmu *
|
||||
tegra_smmu_probe(struct device *dev, const struct tegra_smmu_soc *soc,
|
||||
@@ -79,6 +80,10 @@ tegra_smmu_probe(struct device *dev, const struct tegra_smmu_soc *soc,
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static inline void tegra_smmu_remove(struct tegra_smmu *smmu)
|
||||
{
|
||||
}
|
||||
#endif
|
||||
|
||||
struct tegra_mc_soc {
|
||||
|
Reference in New Issue
Block a user