[PATCH 3/6] dma-mapping: add a dma_alloc_noncontiguous API

2021-03-01 Thread Christoph Hellwig
Add a new API that returns a potentiall virtually non-contigous sg_table and a DMA address. This API is only properly implemented for dma-iommu and will simply return a contigious chunk as a fallback. The intent is that drivers can use this API if either: - no kernel mapping or only temporary

[PATCH 3/6] dma-mapping: add a dma_alloc_noncontiguous API

2021-01-28 Thread Christoph Hellwig
Add a new API that returns a potentiall virtually non-contigous sg_table and a DMA address. This API is only properly implemented for dma-iommu and will simply return a contigious chunk as a fallback. The intent is that media drivers can use this API if either: - no kernel mapping or only