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)
commit71cdec4fab76667dabdbb2ca232b039004ebd40f
treed02df4dce811a3f12c8e3ffe27e8e04acbb46f69
parent9ebcfadb0610322ac537dd7aa5d9cbc2b2894c68
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