Re: clean up and modularize arch dma_mapping interface V2

From
Christoph Hellwig <hch@lst.de>
Date
2017-06-24 07:19:17
Also in
dri-devel, linux-arm-kernel, linux-iommu, linux-mips, linux-samsung-soc, linux-sh, linux-tegra, lkml, netdev, sparclinux
Reply to
tndave, 2017-06-21
On Wed, Jun 21, 2017 at 12:24:28PM -0700, tndave wrote:
Thanks for doing this.
So archs can still have their own definition for dma_set_mask() if 
HAVE_ARCH_DMA_SET_MASK is y?
(and similarly for dma_set_coherent_mask() when 
CONFIG_ARCH_HAS_DMA_SET_COHERENT_MASK is y)
Any plan to change these?
Yes, those should go away, but I'm not entirely sure how yet.  We'll
need some hook for switching between an IOMMU and a direct mapping
(I guess that's what you want to do for sparc as well?), and I need
to find the best way to do that.  Reimplementing all of dma_set_mask
and dma_set_coherent_mask is something that I want to move away from.
Thread (64 messages) 64 messages, 8 authors, last reply 2017-06-26
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help