]> git.karo-electronics.de Git - karo-tx-linux.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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 29 Oct 2010 04:51:23 +0000 (21:51 -0700)
commit677c3a487715716e4c8e61a882e0680578d90103
tree4f07cb1ea134fd7d2d7404ad50c5794a984c84db
parent02ee32edab40e81b2af0149a8fb86986fc5ac9e7
dmaengine: fix interrupt clearing for mv_xor

commit cc60f8878eab892c03d06b10f389232b9b66bd83 upstream.

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.bishara@gmail.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/dma/mv_xor.c