Re: DMA Engine API performance issues

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Dan Williams
Date: Wednesday, April 14, 2010 - 5:08 pm

On Tue, Apr 13, 2010 at 11:42 PM, melwyn lobo <linux.melwyn@gmail.com> wrote:

dma_run_dependencies() is only needed in the channel switching case
which really only applies to the raid/mem-to-mem usage model (i.e. xor
on one channel followed by copy on another).  In the mem-to-io model
you should not need to perform channel switching.  I suggest following
what the other mem-to-io drivers (ipu, dw_dmac, coh...) have
implemented with their locks.

In general the dmaengine api is meant to provide 1/ a method for
matching dma consumers with capable dma devices 2/ a platform agnostic
api for issuing mem-to-mem and simple mem-to-io (slave) dma.  If the
current framework provides everything you need, then by all means use
it, but you may find there are architecture specific concerns that
cannot be supported under the existing mem-to-io model.  In other
words the dmaengine abstraction stops being useful and gets in the way
when there are specific architecture considerations beyond simple
channel to slave-device associations.  For example, dw_dmac and ipu
are successfully using the dma-slave interface while the PXA folks are
sticking with their local dma api.

So use it if it simplifies your development more than it complicates it.

--
Dan
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
DMA Engine API performance issues, melwyn lobo, (Tue Apr 13, 11:42 pm)
Fwd: DMA Engine API performance issues, melwyn lobo, (Tue Apr 13, 11:44 pm)
DMA Engine API performance issues, melwyn lobo, (Tue Apr 13, 11:46 pm)
Re: DMA Engine API performance issues, Dan Williams, (Wed Apr 14, 5:08 pm)
Re: DMA Engine API performance issues, melwyn lobo, (Thu Apr 15, 2:13 am)
Re: DMA Engine API performance issues, Dan Williams, (Thu Apr 15, 8:58 am)