# \[PATCH 0/2\] Add support for MEMCPY\_SG transfers

- From: Adrian Larumbe \<hidden\>
- Date: 2021-07-06 23:46:09 
- List: dmaengine
- Page: https://ratatoskr.run/dmaengine/2021/07/8809195
- Thread: https://ratatoskr.run/dmaengine/2021/07/8809195/t.md

```text
Bring back dmaengine API support for scatter-gather memcpy's, which is a
follow-up from a previous patch series in which I wrongly tried to
implement the semantics of a MEMCPY_SG through the Slave SG interface.

The second patch fixes a race condition that I observed when calling
dmaengine_terminate_sync in the Xilinx DMA driver.

Adrian Larumbe (2):
  dmaengine: xilinx_dma: Restore support for memcpy SG transfers
  xilinx_dma: Fix read-after-free bug when terminating transfers

 .../driver-api/dmaengine/provider.rst         |  11 ++
 drivers/dma/dmaengine.c                       |   7 +
 drivers/dma/xilinx/xilinx_dma.c               | 134 ++++++++++++++++++
 include/linux/dmaengine.h                     |  20 +++
 4 files changed, 172 insertions(+)

-- 
2.17.1

```
