summaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/pci-dma.c
diff options
context:
space:
mode:
authorJoerg Roedel <joerg.roedel@amd.com>2009-03-16 17:50:28 +0100
committerJoerg Roedel <joerg.roedel@amd.com>2009-03-17 12:56:49 +0100
commit86f319529372953e353dc998bc6a761949614903 (patch)
treeae19e04343bb0ac8a98b0f20fe70be623cc017d2 /arch/x86/kernel/pci-dma.c
parent41531c8f5f05aba5ec645d9770557eedbf75b422 (diff)
downloadblackbird-op-linux-86f319529372953e353dc998bc6a761949614903.tar.gz
blackbird-op-linux-86f319529372953e353dc998bc6a761949614903.zip
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/x86/kernel/pci-dma.c')
-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)
{
dma_debug_init(PREALLOC_DMA_DEBUG_ENTRIES);
+#ifdef CONFIG_PCI
+ dma_debug_add_bus(&pci_bus_type);
+#endif
+
calgary_iommu_init();
intel_iommu_init();
OpenPOWER on IntegriCloud