[PATCH] mxs/dma: Enlarge the CCW descriptor area to 4 pages

Vinod Koul vinod.koul at linux.intel.com
Fri Sep 14 04:56:40 EDT 2012


On Fri, 2012-09-14 at 09:30 +0100, Russell King - ARM Linux wrote:
> On Fri, Sep 14, 2012 at 08:36:15AM +0530, Vinod Koul wrote:
> > On Wed, 2012-09-05 at 03:46 +0200, Marek Vasut wrote:
> > > One way to fix this is to recycle descriptors that were already used during the 
> > > transfer, but can we really do it fast enough, so the DMA would do it's job at 
> > > one end of the descriptor chain and we'd be building the other?
> > See the comment in dma_ctrl_flags:
> > * @DMA_CTRL_ACK - if clear, the descriptor cannot be reused until the client
> > *  acknowledges receipt, i.e. has has a chance to establish any dependency
> > *  chains
> > Setting this would mean that driver can reuse the descriptor once the
> > transaction has completed.
> 
> Actually, that has little meaning for slave DMA descriptors (other than
> it should already be set for consistency with the async_tx stuff, which
> has the above mentioned depenedency chains.)
> 
> Once completed, descriptors can be reused irrespective of the above flag.
Yes that is the reason no one in slave world uses it and we consider the
descriptor can be reused once transaction is complete.
FWIW I see some of the salve drivers do consider this flag!!


-- 
~Vinod




More information about the linux-arm-kernel mailing list