diff options
author | Muli Ben-Yehuda <muli@il.ibm.com> | 2006-09-26 04:52:33 -0400 |
---|---|---|
committer | Andi Kleen <andi@basil.nowhere.org> | 2006-09-26 04:52:33 -0400 |
commit | de684652f34f57cb60d4d78d09139a0e0c5e7b1b (patch) | |
tree | bc3f7dd5a91086ceb51d4cb5fcc1f77095f2b713 | |
parent | 2ade2920dcefdf5595c6380ebed131c964190855 (diff) |
[PATCH] print whether CONFIG_IOMMU_DEBUG is enabled
Signed-off-by: Muli Ben-Yehuda <muli@il.ibm.com>
Signed-off-by: Jon Mason <jdmason@us.ibm.com>
Signed-off-by: Andi Kleen <ak@suse.de>
-rw-r--r-- | arch/x86_64/kernel/pci-calgary.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/arch/x86_64/kernel/pci-calgary.c b/arch/x86_64/kernel/pci-calgary.c index caf84e4e4ca9..ebe4e930b64d 100644 --- a/arch/x86_64/kernel/pci-calgary.c +++ b/arch/x86_64/kernel/pci-calgary.c | |||
@@ -127,15 +127,19 @@ static void tce_cache_blast(struct iommu_table *tbl); | |||
127 | 127 | ||
128 | /* enable this to stress test the chip's TCE cache */ | 128 | /* enable this to stress test the chip's TCE cache */ |
129 | #ifdef CONFIG_IOMMU_DEBUG | 129 | #ifdef CONFIG_IOMMU_DEBUG |
130 | int debugging __read_mostly = 1; | ||
131 | |||
130 | static inline void tce_cache_blast_stress(struct iommu_table *tbl) | 132 | static inline void tce_cache_blast_stress(struct iommu_table *tbl) |
131 | { | 133 | { |
132 | tce_cache_blast(tbl); | 134 | tce_cache_blast(tbl); |
133 | } | 135 | } |
134 | #else | 136 | #else /* debugging is disabled */ |
137 | int debugging __read_mostly = 0; | ||
138 | |||
135 | static inline void tce_cache_blast_stress(struct iommu_table *tbl) | 139 | static inline void tce_cache_blast_stress(struct iommu_table *tbl) |
136 | { | 140 | { |
137 | } | 141 | } |
138 | #endif /* BLAST_TCE_CACHE_ON_UNMAP */ | 142 | #endif /* CONFIG_IOMMU_DEBUG */ |
139 | 143 | ||
140 | static inline unsigned int num_dma_pages(unsigned long dma, unsigned int dmalen) | 144 | static inline unsigned int num_dma_pages(unsigned long dma, unsigned int dmalen) |
141 | { | 145 | { |
@@ -944,8 +948,10 @@ void __init detect_calgary(void) | |||
944 | if (calgary_found) { | 948 | if (calgary_found) { |
945 | iommu_detected = 1; | 949 | iommu_detected = 1; |
946 | calgary_detected = 1; | 950 | calgary_detected = 1; |
947 | printk(KERN_INFO "PCI-DMA: Calgary IOMMU detected. " | 951 | printk(KERN_INFO "PCI-DMA: Calgary IOMMU detected.\n"); |
948 | "TCE table spec is %d.\n", specified_table_size); | 952 | printk(KERN_INFO "PCI-DMA: Calgary TCE table spec is %d, " |
953 | "CONFIG_IOMMU_DEBUG is %s.\n", specified_table_size, | ||
954 | debugging ? "enabled" : "disabled"); | ||
949 | } | 955 | } |
950 | return; | 956 | return; |
951 | 957 | ||