]> git.baikalelectronics.ru Git - kernel.git/commit
dma-mapping: warn when coherent pool is depleted
authorDavid Rientjes <rientjes@google.com>
Sun, 21 Jun 2020 20:43:02 +0000 (13:43 -0700)
committerChristoph Hellwig <hch@lst.de>
Mon, 29 Jun 2020 08:05:21 +0000 (10:05 +0200)
commitfc3f2d3dd2952377fc287e9713955d56fd7e3037
treed02df4dce811a3f12c8e3ffe27e8e04acbb46f69
parent37eee9311652deb6043967bd6505b805f0166f95
dma-mapping: warn when coherent pool is depleted

When a DMA coherent pool is depleted, allocation failures may or may not
get reported in the kernel log depending on the allocator.

The admin does have a workaround, however, by using coherent_pool= on the
kernel command line.

Provide some guidance on the failure and a recommended minimum size for
the pools (double the size).

Signed-off-by: David Rientjes <rientjes@google.com>
Tested-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Christoph Hellwig <hch@lst.de>
kernel/dma/pool.c