[PATCH v3 1/4] dmaengine: mmp-pdma support

Russell King - ARM Linux linux at arm.linux.org.uk
Wed Aug 15 04:04:16 EDT 2012


On Wed, Aug 15, 2012 at 03:44:35PM +0800, zhangfei gao wrote:
> Still have one question.
> vchan_tx_submit is sending vd node to submitted list.
> list_add_tail(&vd->node, &vc->desc_submitted);
> 
> While what we want is send the desc chain, including many nodes,
> and the first desc will have call back.
> chain 1: first -> desc -> desc -> desc
> chain 2: first -> desc -> desc -> desc
> Once the dma chain done, irq happen and call back from first desc.

I don't understand why you want a DMA engine descriptor to represent
one single DMA hardware scatterlist entry.  This makes much more
difficult when reporting status, especially the DMA residue (which
your existing driver does not support.)

Why not hang several DMA hardware scatterlist entries off the same
DMA engine descriptor?



More information about the linux-arm-kernel mailing list