diff options
author | Joerg Roedel <joerg.roedel@amd.com> | 2009-03-16 17:50:28 +0100 |
---|---|---|
committer | Joerg Roedel <joerg.roedel@amd.com> | 2009-03-17 12:56:49 +0100 |
commit | 86f319529372953e353dc998bc6a761949614903 (patch) | |
tree | ae19e04343bb0ac8a98b0f20fe70be623cc017d2 /arch/x86/kernel/pci-dma.c | |
parent | 41531c8f5f05aba5ec645d9770557eedbf75b422 (diff) | |
download | blackbird-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.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) { dma_debug_init(PREALLOC_DMA_DEBUG_ENTRIES); +#ifdef CONFIG_PCI + dma_debug_add_bus(&pci_bus_type); +#endif + calgary_iommu_init(); intel_iommu_init(); |