diff options
author | Mitchel Humpherys <mitchelh@codeaurora.org> | 2015-07-09 15:24:57 -0700 |
---|---|---|
committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-22 11:13:29 -0700 |
commit | 9a9c9a25ed401f267ef251da3a6a99e544b10886 (patch) | |
tree | 09aeda3d82ea343e4069e5d0cb28554e89816bd8 /drivers/iommu/iommu-debug.c | |
parent | 19ce6acc8e22875e92c48902e6f5d7241c1afcb0 (diff) |
iommu/iommu-debug: Add COHERENT_HTW_DISABLE to attach info
It can be useful to check whether or not coherent hardware table walking
has been explicitly disabled on attached domains. Add this to the
attach info debugfs file.
Change-Id: I432303ecb734d32eaa02038694daad0d8c4d8aba
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
Diffstat (limited to 'drivers/iommu/iommu-debug.c')
-rw-r--r-- | drivers/iommu/iommu-debug.c | 9 |
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; } |