[PATCH] ARM: dma-mapping: preallocate DMA-debug hash tables in pure_initcall

Arnd Bergmann arnd at arndb.de
Tue Nov 15 02:31:34 PST 2016


On Tuesday, November 15, 2016 11:04:55 AM CET Marek Szyprowski wrote:
> fs_initcall is definitely too late to initialize DMA-debug hash tables,
> because some drivers might get probed and use DMA mapping framework
> already in core_initcall. Late initialization of DMA-debug results in
> false warning about accessing memory, that was not allocated, like this
> one:

To ask the obvious question: what driver does DMA allocations in a
core_initcall, and have you tried to change that first?

	Arnd



More information about the linux-arm-kernel mailing list