2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-27 14:43:58 +08:00
linux-next/crypto/async_tx
Anup Patel baae03a0e2 async_tx: Fix DMA_PREP_FENCE usage in do_async_gen_syndrome()
The DMA_PREP_FENCE is to be used when preparing Tx descriptor if output
of Tx descriptor is to be used by next/dependent Tx descriptor.

The DMA_PREP_FENSE will not be set correctly in do_async_gen_syndrome()
when calling dma->device_prep_dma_pq() under following conditions:
1. ASYNC_TX_FENCE not set in submit->flags
2. DMA_PREP_FENCE not set in dma_flags
3. src_cnt (= (disks - 2)) is greater than dma_maxpq(dma, dma_flags)

This patch fixes DMA_PREP_FENCE usage in do_async_gen_syndrome() taking
inspiration from do_async_xor() implementation.

Signed-off-by: Anup Patel <anup.patel@broadcom.com>
Reviewed-by: Ray Jui <ray.jui@broadcom.com>
Reviewed-by: Scott Branden <scott.branden@broadcom.com>
Acked-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
2017-05-16 10:01:57 +05:30
..
async_memcpy.c async_tx: use GFP_NOWAIT rather than GFP_IO 2016-01-07 11:06:18 +05:30
async_pq.c async_tx: Fix DMA_PREP_FENCE usage in do_async_gen_syndrome() 2017-05-16 10:01:57 +05:30
async_raid6_recov.c async_tx: use GFP_NOWAIT rather than GFP_IO 2016-01-07 11:06:18 +05:30
async_tx.c async_tx: use DMA_COMPLETE for dma completion status 2013-10-25 11:16:18 +05:30
async_xor.c async_tx: use GFP_NOWAIT rather than GFP_IO 2016-01-07 11:06:18 +05:30
Kconfig drivers/dma: remove unused support for MEMSET operations 2013-07-03 16:07:42 -07:00
Makefile drivers/dma: remove unused support for MEMSET operations 2013-07-03 16:07:42 -07:00
raid6test.c raid6test: add new corner case for ioatdma driver 2013-11-14 11:04:42 -08:00