aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorJoerg Roedel <joerg.roedel@amd.com>2009-03-16 12:50:28 -0400
committerJoerg Roedel <joerg.roedel@amd.com>2009-03-17 07:56:49 -0400
commit86f319529372953e353dc998bc6a761949614903 (patch)
treeae19e04343bb0ac8a98b0f20fe70be623cc017d2 /arch
parent41531c8f5f05aba5ec645d9770557eedbf75b422 (diff)
dma-debug/x86: register pci bus for dma-debug leak detection
Impact: detect dma memory leaks for pci devices Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/kernel/pci-dma.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/x86/kernel/pci-dma.c b/arch/x86/kernel/pci-dma.c
index ebf7d454f210..c7c4776ff630 100644
--- a/arch/x86/kernel/pci-dma.c
+++ b/arch/x86/kernel/pci-dma.c
@@ -271,6 +271,10 @@ static int __init pci_iommu_init(void)
271{ 271{
272 dma_debug_init(PREALLOC_DMA_DEBUG_ENTRIES); 272 dma_debug_init(PREALLOC_DMA_DEBUG_ENTRIES);
273 273
274#ifdef CONFIG_PCI
275 dma_debug_add_bus(&pci_bus_type);
276#endif
277
274 calgary_iommu_init(); 278 calgary_iommu_init();
275 279
276 intel_iommu_init(); 280 intel_iommu_init();