Re: [PATCH 3/9] dma: Add dma_virt_ops

2017-01-11 Thread Bart Van Assche
On 01/11/2017 12:56 AM, Christoph Hellwig wrote: >> +lib-$(CONFIG_HAS_DMA) += dma-virt.o > > There probably should be a config option for it for two reasons: > > - do not bloat kernels that don't need it. > - the feature can only work for 32-bit architectures or for >64-bit architectures th

Re: [PATCH 3/9] dma: Add dma_virt_ops

2017-01-11 Thread Christoph Hellwig
> +lib-$(CONFIG_HAS_DMA) += dma-virt.o There probably should be a config option for it for two reasons: - do not bloat kernels that don't need it. - the feature can only work for 32-bit architectures or for 64-bit architectures that set ARCH_DMA_ADDR_T_64BIT… Altenatiely this option would

[PATCH 3/9] dma: Add dma_virt_ops

2017-01-10 Thread Bart Van Assche
Several RDMA drivers need to provide a DMA mapping API but use the CPU to transfer data. Provide DMA mapping operations that are suitable for these drivers. Signed-off-by: Bart Van Assche Cc: Christian Borntraeger Cc: Joerg Roedel Cc: Andy Lutomirski Cc: Michael S. Tsirkin --- include/linux/