summaryrefslogtreecommitdiffstats
path: root/arch/x86/include
diff options
context:
space:
mode:
authorJoerg Roedel <joerg.roedel@amd.com>2009-05-20 12:21:42 +0200
committerJoerg Roedel <joerg.roedel@amd.com>2009-05-28 17:49:56 +0200
commitfefda117ddb324b872312f1f061230e627c9f5ee (patch)
treee0c82c666562a4d285b8a87bbf260b68518651d8 /arch/x86/include
parentMerge commit 'v2.6.30-rc5' into core/iommu (diff)
downloadlinux-fefda117ddb324b872312f1f061230e627c9f5ee.tar.xz
linux-fefda117ddb324b872312f1f061230e627c9f5ee.zip
amd-iommu: add amd_iommu_dump parameter
This kernel parameter will be useful to get some AMD IOMMU related information in dmesg that is not necessary for the default user but may be helpful in debug situations. Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Diffstat (limited to 'arch/x86/include')
-rw-r--r--arch/x86/include/asm/amd_iommu_types.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/x86/include/asm/amd_iommu_types.h b/arch/x86/include/asm/amd_iommu_types.h
index 95c8cd9d22b5..89dfb3793edd 100644
--- a/arch/x86/include/asm/amd_iommu_types.h
+++ b/arch/x86/include/asm/amd_iommu_types.h
@@ -194,6 +194,12 @@
#define PD_DMA_OPS_MASK (1UL << 0) /* domain used for dma_ops */
#define PD_DEFAULT_MASK (1UL << 1) /* domain is a default dma_ops
domain for an IOMMU */
+extern bool amd_iommu_dump;
+#define DUMP_printk(format, arg...) \
+ do { \
+ if (amd_iommu_dump) \
+ printk(KERN_INFO "AMD IOMMU: " format, ## arg); \
+ } while(0);
/*
* This structure contains generic data for IOMMU protection domains