diff options
author | Claire Chang <tientzu@chromium.org> | 2021-06-19 11:40:40 +0800 |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad@kernel.org> | 2021-07-13 20:04:48 -0400 |
commit | f4111e39a52aa5d5136d890bbd1aa87c1c8fe3bc (patch) | |
tree | 11895fa9fc7598998e67ac89eef18ee35e5f6b3b /include/linux/aer.h | |
parent | 70347877231eeb505a27abe80af7ae3d3a281519 (diff) |
swiotlb: Add restricted DMA alloc/free support
Add the functions, swiotlb_{alloc,free} and is_swiotlb_for_alloc to
support the memory allocation from restricted DMA pool.
The restricted DMA pool is preferred if available.
Note that since coherent allocation needs remapping, one must set up
another device coherent pool by shared-dma-pool and use
dma_alloc_from_dev_coherent instead for atomic coherent allocation.
Signed-off-by: Claire Chang <tientzu@chromium.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Tested-by: Stefano Stabellini <sstabellini@kernel.org>
Tested-by: Will Deacon <will@kernel.org>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'include/linux/aer.h')
0 files changed, 0 insertions, 0 deletions