Re: [PATCH] dmaengine: pl330: Acquire dmac's spinlock in pl330_tx_status

2016-09-09 Thread Vinod Koul
On Tue, Aug 23, 2016 at 05:16:55PM +0800, Hsin-Yu Chao wrote: > There is a racing when accessing dmac thread in pl330_tx_status that > the pl330_update is handling active request at the same time and > changing the status of descriptors. This could cause an invalid > transferred count from BUSY des

Re: [PATCH] dmaengine: pl330: Acquire dmac's spinlock in pl330_tx_status

2016-08-23 Thread Guenter Roeck
On Tue, Aug 23, 2016 at 2:16 AM, Hsin-Yu Chao wrote: > There is a racing when accessing dmac thread in pl330_tx_status that > the pl330_update is handling active request at the same time and > changing the status of descriptors. This could cause an invalid > transferred count from BUSY descriptor

[PATCH] dmaengine: pl330: Acquire dmac's spinlock in pl330_tx_status

2016-08-23 Thread Hsin-Yu Chao
There is a racing when accessing dmac thread in pl330_tx_status that the pl330_update is handling active request at the same time and changing the status of descriptors. This could cause an invalid transferred count from BUSY descriptor added up to the residual number. Fix the bug by using the dmac