[PATCH v4 7/7] fsl-dma: add memcpy self test interface

2012-07-27 Thread qiang.liu
From: Qiang Liu Add memory copy self test when probe device, fsl-dma will be disabled if self test failed. Cc: Dan Williams Cc: Vinod Koul Cc: Li Yang Cc: Ira W. Snyder Signed-off-by: Qiang Liu --- drivers/dma/fsldma.c | 83 ++ 1 files chan

[PATCH v4 6/7] fsl-dma: fix a warning of unitialized cookie

2012-07-27 Thread qiang.liu
From: Qiang Liu Fix a warning of unitialized value when compile with -Wuninitialized. Cc: Dan Williams Cc: Vinod Koul Cc: Li Yang Signed-off-by: Qiang Liu Cc: Kim Phillips --- drivers/dma/fsldma.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/dma/fsldma.

[PATCH v4 5/7] fsl-dma: use spin_lock_bh to instead of spin_lock_irqsave

2012-07-27 Thread qiang.liu
From: Qiang Liu - use spin_lock_bh() is the right way to use async_tx api, dma_run_dependencies() should not be protected by spin_lock_irqsave(); - use spin_lock_bh to instead of spin_lock_irqsave for improving performance, There is not any place to access descriptor queues in fsl-dma ISR except

[PATCH v4 4/7] fsl-dma: move the function ahead of its invoke function

2012-07-27 Thread qiang.liu
From: Qiang Liu Move the function fsldma_cleanup_descriptor() and fsl_chan_xfer_ld_queue() ahead of its invoke function for avoiding redundant definition. Cc: Dan Williams Cc: Vinod Koul Cc: Li Yang Signed-off-by: Qiang Liu --- drivers/dma/fsldma.c | 252 +--

[PATCH v4 3/7] fsl-dma: change release process of dma descriptor for supporting async_tx

2012-07-27 Thread qiang.liu
From: Qiang Liu Fix the potential risk when enable config NET_DMA and ASYNC_TX. Async_tx is lack of support in current release process of dma descriptor, all descriptors will be released whatever is acked or no-acked by async_tx, so there is a potential race condition when dma engine is uesd by o

[PATCH v4 2/7] fsl-dma: remove attribute DMA_INTERRUPT of dmaengine

2012-07-27 Thread qiang.liu
From: Qiang Liu Delete attribute DMA_INTERRUPT because fsl-dma doesn't support this function, exception will be thrown if talitos is used to offload xor at the same time. Cc: Dan Williams Cc: Vinod Koul Cc: Li Yang Signed-off-by: Qiang Liu Acked-by: Ira W. Snyder --- drivers/dma/fsldma.c |

[PATCH v4 0/7] Raid: enable talitos xor offload for improving performance

2012-07-27 Thread qiang.liu
Hi, The following 7 patches enabling fsl-dma and talitos offload raid operations for improving raid performance and balancing CPU load. Write performance will be improved by 25-30% tested by iozone. Write performance is improved about 2% after using spin_lock_bh replace spin_lock_irqsave. CPU loa

[PATCH v4 1/7] Talitos: Support for async_tx XOR offload

2012-07-27 Thread qiang.liu
From: Qiang Liu Expose Talitos's XOR functionality to be used for RAID parity calculation via the Async_tx layer. Cc: Herbert Xu Cc: David S. Miller Signed-off-by: Dipen Dudhat Signed-off-by: Maneesh Gupta Signed-off-by: Kim Phillips Signed-off-by: Vishnu Suresh Signed-off-by: Qiang Liu -