swiotlb: don't dip into swiotlb pool for coherent allocations
authorChristoph Hellwig <hch@lst.de>
Sun, 30 Sep 2018 23:13:33 +0000 (16:13 -0700)
committerChristoph Hellwig <hch@lst.de>
Fri, 19 Oct 2018 06:48:28 +0000 (08:48 +0200)
commitfafadcd16595c1df82df399f62421718ec9bf70a
treec13da3c6e387183a5edd19349ed195c0699ac116
parentc4dae366925f929749b2a26efa53b561904a9a4f
swiotlb: don't dip into swiotlb pool for coherent allocations

All architectures that support swiotlb also have a zone that backs up
these less than full addressing allocations (usually ZONE_DMA32).

Because of that it is rather pointless to fall back to the global swiotlb
buffer if the normal dma direct allocation failed - the only thing this
will do is to eat up bounce buffers that would be more useful to serve
streaming mappings.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Acked-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
arch/arm64/mm/dma-mapping.c
include/linux/swiotlb.h
kernel/dma/swiotlb.c