linux-stable/crypto/async_tx
Dan Williams cf7af4a82f async_xor: dma_map destination DMA_BIDIRECTIONAL
commit a06d568f7c upstream.

Mapping the destination multiple times is a misuse of the dma-api.
Since the destination may be reused as a source, ensure that it is only
mapped once and that it is mapped bidirectionally.  This appears to add
ugliness on the unmap side in that it always reads back the destination
address from the descriptor, but gcc can determine that dma_unmap is a
nop and not emit the code that calculates its arguments.

Cc: Saeed Bishara <saeed@marvell.com>
Acked-by: Yuri Tikhonov <yur@emcraft.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-01-14 09:44:03 -08:00
..
async_memcpy.c async_tx: remove depend_tx from async_tx_sync_epilog 2008-07-17 17:59:55 -07:00
async_memset.c async_tx: remove depend_tx from async_tx_sync_epilog 2008-07-17 17:59:55 -07:00
async_tx.c async_tx: fix the bug in async_tx_run_dependencies 2008-09-05 08:15:47 -07:00
async_xor.c async_xor: dma_map destination DMA_BIDIRECTIONAL 2009-01-14 09:44:03 -08:00
Kconfig async_tx: add the async_tx api 2007-07-13 08:06:14 -07:00
Makefile async_tx: add the async_tx api 2007-07-13 08:06:14 -07:00