commit | 0176adb004065d6815a8e67946752df4cd947c5b | [log] [tgz] |
---|---|---|
author | Christoph Hellwig <hch@lst.de> | Tue Jan 09 22:15:30 2018 +0100 |
committer | Christoph Hellwig <hch@lst.de> | Mon Jan 15 09:35:49 2018 +0100 |
tree | e2e9a646e644709c854f4f9fdd3c1827bb796931 | |
parent | a25381aa3ae60a2e028c95f1318649b13cbbce30 [diff] |
swiotlb: refactor coherent buffer allocation Factor out a new swiotlb_alloc_buffer helper that allocates DMA coherent memory from the swiotlb bounce buffer. This allows to simplify the swiotlb_alloc implemenation that uses dma_direct_alloc to try to allocate a reachable buffer first. Signed-off-by: Christoph Hellwig <hch@lst.de> Acked-by: Christian König <christian.koenig@amd.com>