提交 86f31952 编写于 作者: J Joerg Roedel

dma-debug/x86: register pci bus for dma-debug leak detection

Impact: detect dma memory leaks for pci devices
Signed-off-by: NJoerg Roedel <joerg.roedel@amd.com>
上级 41531c8f
...@@ -271,6 +271,10 @@ static int __init pci_iommu_init(void) ...@@ -271,6 +271,10 @@ static int __init pci_iommu_init(void)
{ {
dma_debug_init(PREALLOC_DMA_DEBUG_ENTRIES); dma_debug_init(PREALLOC_DMA_DEBUG_ENTRIES);
#ifdef CONFIG_PCI
dma_debug_add_bus(&pci_bus_type);
#endif
calgary_iommu_init(); calgary_iommu_init();
intel_iommu_init(); intel_iommu_init();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册