]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: fix interrupt clearing for mv_xor
authorSimon Guinot <sguinot@lacie.com>
Fri, 17 Sep 2010 21:33:51 +0000 (23:33 +0200)
committerNicolas Pitre <nico@fluxnic.net>
Mon, 20 Sep 2010 02:43:41 +0000 (22:43 -0400)
commitc33f5b913c6dced62d69bafc71caf4d6be313262
treee49e40a35fd5b72b232c45f451667b723c6a79c0
parenteb5dc01ccf12e002666b647573f050ca9c8518e9
dmaengine: fix interrupt clearing for mv_xor

When using simultaneously the two DMA channels on a same engine, some
transfers are never completed. For example, an endless lock can occur
while writing heavily on a RAID5 array (with async-tx offload support
enabled).

Note that this issue can also be reproduced by using the DMA test
client.

On a same engine, the interrupt cause register is shared between two
DMA channels. This patch make sure that the cause bit is only cleared
for the requested channel.

Signed-off-by: Simon Guinot <sguinot@lacie.com>
Tested-by: Luc Saillard <luc@saillard.org>
Acked-by: Saeed Bishara <saeed@marvell.com>
Signed-off-by: Nicolas Pitre <nico@fluxnic.net>
drivers/dma/mv_xor.c