Re: [PATCH 1/2] dma-mapping: support setting memory uncached in place

2020-02-21 Thread Christoph Hellwig
On Thu, Feb 20, 2020 at 05:21:35PM +, Robin Murphy wrote: >> @@ -196,10 +192,15 @@ void *dma_direct_alloc_pages(struct device *dev, >> size_t size, >> memset(ret, 0, size); >> - if (IS_ENABLED(CONFIG_ARCH_HAS_UNCACHED_SEGMENT) && >> -dma_alloc_need_uncached(dev, attrs)) { >> +

Re: [PATCH 1/2] dma-mapping: support setting memory uncached in place

2020-02-20 Thread Robin Murphy
On 20/02/2020 5:01 pm, Christoph Hellwig wrote: We currently only support remapping memory as uncached through vmap or a magic uncached segment provided by some architectures. But there is a simpler and much better way available on some architectures where we can just remap the memory in place.

[PATCH 1/2] dma-mapping: support setting memory uncached in place

2020-02-20 Thread Christoph Hellwig
We currently only support remapping memory as uncached through vmap or a magic uncached segment provided by some architectures. But there is a simpler and much better way available on some architectures where we can just remap the memory in place. The advantages are: 1) no aliasing is possible,

[PATCH 1/2] dma-mapping: support setting memory uncached in place

2019-11-07 Thread Christoph Hellwig
We currently only support remapping memory as uncached through vmap or a magic uncached segment provided by some architectures. But there is a simpler and much better way available on some architectures where we can just remap the memory in place. The advantages are: 1) no aliasing is possible,