From: Joerg Roedel Date: Mon, 16 Mar 2009 16:50:28 +0000 (+0100) Subject: dma-debug/x86: register pci bus for dma-debug leak detection X-Git-Tag: v2.6.30-rc1~614^2~4^2 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=86f319529372953e353dc998bc6a761949614903;p=~emulex%2Finfiniband.git dma-debug/x86: register pci bus for dma-debug leak detection Impact: detect dma memory leaks for pci devices Signed-off-by: Joerg Roedel --- diff --git a/arch/x86/kernel/pci-dma.c b/arch/x86/kernel/pci-dma.c index ebf7d454f21..c7c4776ff63 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();