]> git.baikalelectronics.ru Git - kernel.git/commit
dma-debug: move initialization to common code
authorChristoph Hellwig <hch@lst.de>
Mon, 16 Apr 2018 15:22:28 +0000 (17:22 +0200)
committerChristoph Hellwig <hch@lst.de>
Tue, 8 May 2018 11:02:42 +0000 (13:02 +0200)
commit1589fedb3dce63ba46f37ed6cde7c2e4731af336
treedb5428916f2f231b602bad88b202ffc7540afd16
parentd624a6e79ff4cbc145301ac02555b2392a8040e4
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>
17 files changed:
arch/arm/mm/dma-mapping-nommu.c
arch/arm/mm/dma-mapping.c
arch/arm64/mm/dma-mapping.c
arch/c6x/kernel/dma.c
arch/ia64/kernel/dma-mapping.c
arch/microblaze/kernel/dma.c
arch/mips/mm/dma-default.c
arch/openrisc/kernel/dma.c
arch/powerpc/kernel/dma.c
arch/s390/pci/pci_dma.c
arch/sh/mm/consistent.c
arch/sparc/kernel/Makefile
arch/sparc/kernel/dma.c [deleted file]
arch/x86/kernel/pci-dma.c
arch/xtensa/kernel/pci-dma.c
include/linux/dma-debug.h
lib/dma-debug.c