Skip to content

Commit

Permalink
dma-debug/x86: register pci bus for dma-debug leak detection
Browse files Browse the repository at this point in the history
Impact: detect dma memory leaks for pci devices

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
  • Loading branch information
Joerg Roedel committed Mar 17, 2009
1 parent 41531c8 commit 86f3195
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/x86/kernel/pci-dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 86f3195

Please sign in to comment.