Re: [PATCH] arm64: Fix swiotlb fallback allocation

2017-01-18 Thread Catalin Marinas
On Mon, Jan 16, 2017 at 12:46:33PM +0100, Alexander Graf wrote: > Commit b67a8b29df introduced logic to skip swiotlb allocation when all memory > is DMA accessible anyway. > > While this is a great idea, __dma_alloc still calls swiotlb code > unconditionally > to allocate memory when there is no

Re: [PATCH] arm64: Fix swiotlb fallback allocation

2017-01-17 Thread Catalin Marinas
On Mon, Jan 16, 2017 at 12:46:33PM +0100, Alexander Graf wrote: > Commit b67a8b29df introduced logic to skip swiotlb allocation when all memory > is DMA accessible anyway. > > While this is a great idea, __dma_alloc still calls swiotlb code > unconditionally > to allocate memory when there is no

[PATCH] arm64: Fix swiotlb fallback allocation

2017-01-16 Thread Alexander Graf
Commit b67a8b29df introduced logic to skip swiotlb allocation when all memory is DMA accessible anyway. While this is a great idea, __dma_alloc still calls swiotlb code unconditionally to allocate memory when there is no CMA memory available. The swiotlb code is called to ensure that we at least t