commit | 251533eb35b22f9e87a440b14c6f20e2626397b3 | [log] [tgz] |
---|---|---|
author | Christoph Hellwig <hch@lst.de> | Tue Jan 09 16:44:16 2018 +0100 |
committer | Christoph Hellwig <hch@lst.de> | Mon Jan 15 09:35:45 2018 +0100 |
tree | 11ac4d11d10b40b73245103f9eddbecb65d7859b | |
parent | 7f2c8bbd321f18e4ccfd262748bd58fb7d4bb1db [diff] |
swiotlb: add common swiotlb_map_ops Currently all architectures that want to use swiotlb have to implement their own dma_map_ops instances. Provide a generic one based on the x86 implementation which first calls into dma_direct to try a full blown direct mapping implementation (including e.g. CMA) before falling back allocating from the swiotlb buffer. Signed-off-by: Christoph Hellwig <hch@lst.de> Acked-by: Christian König <christian.koenig@amd.com>