public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* dmaengine questions
@ 2010-08-12 15:00 Sascha Hauer
  2010-08-12 19:14 ` Dan Williams
  0 siblings, 1 reply; 5+ messages in thread
From: Sascha Hauer @ 2010-08-12 15:00 UTC (permalink / raw)
  To: linux-kernel; +Cc: Linus Walleij, Dan Williams

Hi,

I am currently looking into implementing the Freescale i.MX SDMA engine
into the dmaengine API. The SDMA engine can handle sg transfers from/to
devices. During implementation some questions came up.

On the i.MX we already have a DMA engine which can do slave dma
transfers, the IPU (drivers/dma/ipu/), which is exclusively used for
image operations. My problem is that I found no way for the clients
to select which DMA engine to use as both have the same capabilities
(DMA_SLAVE).

For the SDMA engine the clients have to pass some platform specific data
to the SDMA engine (dma request line, word width and the like). The
current mechanism is to pass this data through the dma_chan->private
field, which seems more like tunneling instead of passing the data as we
lose type safety. Are there any ideas to improve this?

Sascha



-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-08-13  7:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-12 15:00 dmaengine questions Sascha Hauer
2010-08-12 19:14 ` Dan Williams
2010-08-12 20:16   ` Sascha Hauer
2010-08-12 22:32     ` Linus Walleij
2010-08-13  7:40       ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox