[PATCH v10 0/8] dmaengine: sh: rz-dmac: Add tx_status and pause/resume support

Claudiu Beznea posted 8 patches 3 weeks ago
drivers/dma/sh/rz-dmac.c | 281 ++++++++++++++++++++++++++++++++-------
1 file changed, 231 insertions(+), 50 deletions(-)
[PATCH v10 0/8] dmaengine: sh: rz-dmac: Add tx_status and pause/resume support
Posted by Claudiu Beznea 3 weeks ago
Hi,

Series adds tx_status and pause/resume support for the rz-dmac driver.
Along with it were added fixes and improvements identified while working
on the above mentioned enhancements.

Previous versions were addressed by Biju. The previous versions were
posted here:

v4: https://lore.kernel.org/all/20240628151728.84470-1-biju.das.jz@bp.renesas.com/
v3: https://lore.kernel.org/all/20230412152445.117439-1-biju.das.jz@bp.renesas.com/
v2: https://lore.kernel.org/all/20230405140842.201883-1-biju.das.jz@bp.renesas.com/
v1: https://lore.kernel.org/all/20230324094957.115071-1-biju.das.jz@bp.renesas.com/

Changes in v10:
- dropped patch "dmaengine: sh: rz-dmac: Add rz_dmac_invalidate_lmdesc()"
  and use the already available rz_lmdesc_setup() function as suggested
  by John internally
- rebased on top of latest next

Changes in v9:
- collected tags
- in patch 7/8 droppped contributions from the SoB list, used
  Co-developed-by tag, and added Long Luu as well; also used
  ctra as member of rz_dmac_calculate_residue_bytes_in_vd() to
  avoid re-reading it again in rz_dmac_calculate_residue_bytes_in_vd()
- adjusted the patch description for patches 7/8, 8/8

Changes in v8:
- rebased on top of https://lore.kernel.org/all/20260105114445.878262-1-cosmin-gabriel.tanislav.xa@renesas.com/
- populated engine->residue_granularity in patch 7/8
- report proper residue in case the channel is paused in patch 8/8

Changes in v7:
- adjusted the pause/resume support
- collected tags

Changes in v6:
- added patches:
-- dmaengine: sh: rz-dmac: Drop read of CHCTRL register
-- dmaengine: sh: rz-dmac: Drop goto instruction and label
- use vc lock in IRQ handler only for the error path
- fixed typos
- adjusted patch
  "dmaengine: sh: rz-dmac: Add device_{pause,resume}() callbacks"

Changes in v5:
- added patches
-- dmaengine: sh: rz-dmac: Add rz_dmac_invalidate_lmdesc()
-- dmaengine: sh: rz-dmac: Protect the driver specific lists
-- dmaengine: sh: rz-dmac: Move all CHCTRL updates under spinlock
-- dmaengine: sh: rz-dmac: Drop unnecessary local_irq_save() call
-- dmaengine: sh: rz-dmac: Add device_{pause,resume}() callbacks
-- dmaengine: sh: rz-dmac: Add rz_dmac_invalidate_lmdesc()
- for pause/resume used the DMA controller support to pause/resume
  transfers compared with previous versions
- adjusted patches:
-- dmaengine: sh: rz-dmac: Add device_tx_status() callback

Thank you,
Claudiu

Biju Das (1):
  dmaengine: sh: rz-dmac: Add device_tx_status() callback

Claudiu Beznea (6):
  dmaengine: sh: rz-dmac: Protect the driver specific lists
  dmaengine: sh: rz-dmac: Move CHCTRL updates under spinlock
  dmaengine: sh: rz-dmac: Drop read of CHCTRL register
  dmaengine: sh: rz-dmac: Drop goto instruction and label
  dmaengine: sh: rz-dmac: Drop unnecessary local_irq_save() call
  dmaengine: sh: rz-dmac: Add device_{pause,resume}() callbacks

John Madieu (1):
  dmaengine: sh: rz-dmac: Use rz_lmdesc_setup() to invalidate
    descriptors

 drivers/dma/sh/rz-dmac.c | 281 ++++++++++++++++++++++++++++++++-------
 1 file changed, 231 insertions(+), 50 deletions(-)

-- 
2.43.0
Re: (subset) [PATCH v10 0/8] dmaengine: sh: rz-dmac: Add tx_status and pause/resume support
Posted by Vinod Koul 2 weeks, 6 days ago
On Mon, 16 Mar 2026 15:32:44 +0200, Claudiu Beznea wrote:
> Series adds tx_status and pause/resume support for the rz-dmac driver.
> Along with it were added fixes and improvements identified while working
> on the above mentioned enhancements.
> 
> Previous versions were addressed by Biju. The previous versions were
> posted here:
> 
> [...]

Applied, thanks!

[3/8] dmaengine: sh: rz-dmac: Drop read of CHCTRL register
      commit: be342fb7f2bb5f641419fef3109eaffd469b0d44
[4/8] dmaengine: sh: rz-dmac: Drop goto instruction and label
      commit: 7badd294fc82629378b153327c57b8ba453688c7
[5/8] dmaengine: sh: rz-dmac: Drop unnecessary local_irq_save() call
      commit: be25945d0ca3ac736c448b530c47e854c82a0343
[6/8] dmaengine: sh: rz-dmac: Use rz_lmdesc_setup() to invalidate descriptors
      commit: bfaa60be647842cece968769f208e57fa5dee594
[7/8] dmaengine: sh: rz-dmac: Add device_tx_status() callback
      commit: 21323b118c16d287355e6497e1098ce1ca348bd6
[8/8] dmaengine: sh: rz-dmac: Add device_{pause,resume}() callbacks
      commit: 44f991bd6e01bb6a3f78da98eafa6d2a72819a2f

Best regards,
-- 
~Vinod