summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorJoerg Roedel <joerg.roedel@amd.com>2009-03-16 16:50:28 (GMT)
committerJoerg Roedel <joerg.roedel@amd.com>2009-03-17 11:56:49 (GMT)
commit86f319529372953e353dc998bc6a761949614903 (patch)
treeae19e04343bb0ac8a98b0f20fe70be623cc017d2 /arch
parent41531c8f5f05aba5ec645d9770557eedbf75b422 (diff)
downloadlinux-86f319529372953e353dc998bc6a761949614903.tar.xz
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 ebf7d45..c7c4776 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();