Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b16dbd1e authored by Ashwini Muduganti's avatar Ashwini Muduganti Committed by Gerrit - the friendly Code Review server
Browse files

Revert "Revert "iommu: iommu-debug: Mark domain as debug domain""



This reverts commit 6be3f204.

Change-Id: I9ab602d9f15a54cbe1f212523a7404473244e2fb
Signed-off-by: default avatarAshwini Muduganti <amudug@codeaurora.org>
parent b58c2fab
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -297,6 +297,7 @@ static void iommu_debug_device_profiling(struct seq_file *s, struct device *dev,
		}
	}

	domain->is_debug_domain = true;
	if (iommu_attach_group(domain, dev->iommu_group)) {
		seq_puts(s,
			 "Couldn't attach new domain to device. Is it already attached?\n");
@@ -551,6 +552,7 @@ static int iommu_debug_profiling_fast_dma_api_show(struct seq_file *s,
		goto out_release_mapping;
	}

	mapping->domain->is_debug_domain = true;
	if (arm_iommu_attach_device(dev, mapping)) {
		seq_puts(s, "fast_smmu_attach_device failed\n");
		goto out_release_mapping;
@@ -1173,6 +1175,7 @@ static int __apply_to_new_mapping(struct seq_file *s,
		goto out_release_mapping;
	}

	mapping->domain->is_debug_domain = true;
	if (arm_iommu_attach_device(dev, mapping))
		goto out_release_mapping;

@@ -1239,6 +1242,7 @@ static int iommu_debug_functional_arm_dma_api_show(struct seq_file *s,
	if (!mapping)
		goto out;

	mapping->domain->is_debug_domain = true;
	if (arm_iommu_attach_device(dev, mapping))
		goto out_release_mapping;