summaryrefslogtreecommitdiff
path: root/drivers/iommu/iommu-debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/iommu/iommu-debug.c')
-rw-r--r--drivers/iommu/iommu-debug.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/iommu/iommu-debug.c b/drivers/iommu/iommu-debug.c
index 1db29e054d6d..fba76794ec62 100644
--- a/drivers/iommu/iommu-debug.c
+++ b/drivers/iommu/iommu-debug.c
@@ -41,6 +41,7 @@ static int iommu_debug_attachment_info_show(struct seq_file *s, void *ignored)
{
struct iommu_debug_attachment *attach = s->private;
phys_addr_t pt_phys;
+ int coherent_htw_disable;
seq_printf(s, "Domain: 0x%p\n", attach->domain);
if (iommu_domain_get_attr(attach->domain, DOMAIN_ATTR_PT_BASE_ADDR,
@@ -53,6 +54,14 @@ static int iommu_debug_attachment_info_show(struct seq_file *s, void *ignored)
pt_virt, &pt_phys);
}
+ seq_puts(s, "COHERENT_HTW_DISABLE: ");
+ if (iommu_domain_get_attr(attach->domain,
+ DOMAIN_ATTR_COHERENT_HTW_DISABLE,
+ &coherent_htw_disable))
+ seq_puts(s, "(Unknown)\n");
+ else
+ seq_printf(s, "%d\n", coherent_htw_disable);
+
return 0;
}