diff options
author | Joerg Roedel <joerg.roedel@amd.com> | 2009-03-16 12:50:28 -0400 |
---|---|---|
committer | Joerg Roedel <joerg.roedel@amd.com> | 2009-03-17 07:56:49 -0400 |
commit | 86f319529372953e353dc998bc6a761949614903 (patch) | |
tree | ae19e04343bb0ac8a98b0f20fe70be623cc017d2 /arch/x86/kernel/pci-dma.c | |
parent | 41531c8f5f05aba5ec645d9770557eedbf75b422 (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/x86/kernel/pci-dma.c')
-rw-r--r-- | arch/x86/kernel/pci-dma.c | 4 |
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(); |