aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mm/dma-mapping.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2018-04-16 11:22:28 -0400
committerChristoph Hellwig <hch@lst.de>2018-05-08 07:02:42 -0400
commit15b28bbcd567a9199481ecfef39702b258f9baff (patch)
treedb5428916f2f231b602bad88b202ffc7540afd16 /arch/arm/mm/dma-mapping.c
parent325ef1857fff8b2049322921e19421b6c5ad74e5 (diff)
dma-debug: move initialization to common code
Most mainstream architectures are using 65536 entries, so lets stick to that. If someone is really desperate to override it that can still be done through <asm/dma-mapping.h>, but I'd rather see a really good rationale for that. dma_debug_init is now called as a core_initcall, which for many architectures means much earlier, and provides dma-debug functionality earlier in the boot process. This should be safe as it only relies on the memory allocator already being available. Signed-off-by: Christoph Hellwig <hch@lst.de> Acked-by: Marek Szyprowski <m.szyprowski@samsung.com> Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Diffstat (limited to 'arch/arm/mm/dma-mapping.c')
-rw-r--r--arch/arm/mm/dma-mapping.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/arch/arm/mm/dma-mapping.c b/arch/arm/mm/dma-mapping.c
index 8c398fedbbb6..c26bf83f44ca 100644
--- a/arch/arm/mm/dma-mapping.c
+++ b/arch/arm/mm/dma-mapping.c
@@ -1165,15 +1165,6 @@ int arm_dma_supported(struct device *dev, u64 mask)
1165 return __dma_supported(dev, mask, false); 1165 return __dma_supported(dev, mask, false);
1166} 1166}
1167 1167
1168#define PREALLOC_DMA_DEBUG_ENTRIES 4096
1169
1170static int __init dma_debug_do_init(void)
1171{
1172 dma_debug_init(PREALLOC_DMA_DEBUG_ENTRIES);
1173 return 0;
1174}
1175core_initcall(dma_debug_do_init);
1176
1177#ifdef CONFIG_ARM_DMA_USE_IOMMU 1168#ifdef CONFIG_ARM_DMA_USE_IOMMU
1178 1169
1179static int __dma_info_to_prot(enum dma_data_direction dir, unsigned long attrs) 1170static int __dma_info_to_prot(enum dma_data_direction dir, unsigned long attrs)