linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* DMAEngine and channel pairs
@ 2013-02-07  4:27 jonsmirl
  0 siblings, 0 replies; only message in thread
From: jonsmirl @ 2013-02-07  4:27 UTC (permalink / raw)
  To: ARM Linux Mailing List, lkml

The CPU I'm working on uses two sequential DMA channels to implement
scatter-gather.  How do you handle this in the channel allocator? If
scatter-gather is not requested the two channels work fine as normal
DMA channels.

So when a scatter-gather channel is requested my driver needs to fail
the dma_alloc_chan_resources() requests until a sequential pair is
located? Plus I need to track what channels are used in my driver so
that I know where sequential pairs are. Is there a better way to do
this?

Another solution might be to statically allocate some channels as
being scatter/gather capable and others as not being able to do it. I
would just report fewer available channels to dmaengine and hide those
secondary channels from it. I have 12 channels to work with.

--
Jon Smirl
jonsmirl@gmail.com

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-02-07  4:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-07  4:27 DMAEngine and channel pairs jonsmirl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).