mbox series

[v2,0/5] RZ/G2L DMAC enhancements

Message ID 20230405140842.201883-1-biju.das.jz@bp.renesas.com (mailing list archive)
Headers show
Series RZ/G2L DMAC enhancements | expand

Message

Biju Das April 5, 2023, 2:08 p.m. UTC
This patch series aims to add enhancement to RZ/G2L DMAC driver.
It is basically for supporting SCIF DMA.

It is based on a patch in the BSP by Long Luu which is similar to
rcar-dmac implementation.

v1->v2:
 * Updated commit description for patch#{1,2,3}
 * Introduced rz_dmac_invalidate_lmdesc(), so that same code is shared
   between rz_dmac_free_chan_resources() and rz_dmac_terminate_all()
   for invalidating hardware descriptors.
 * Replaced the loop for->for_each_sg and dropped sgl and sg_len variables
   from calculate_total_bytes_in_vd().
 * Added resume callback().
 * Added patch#4 trivial code clean-ups for rz_dmac_lmdesc_recycle() and
   rz_dmac_prep_slave_sg().
 * Added patch#5 for rz_dmac_prepare_descs_for_slave_sg() improvements.
 
Tested audio, RSPI and scifa with these changes.
 14:      67366          0     GICv3 157 Edge      11820000.dma-controller:0
 15:      67410          0     GICv3 158 Edge      11820000.dma-controller:1
 16:      56353          0     GICv3 159 Edge      11820000.dma-controller:2
 17:      56353          0     GICv3 160 Edge      11820000.dma-controller:3
 18:       8192          0     GICv3 161 Edge      11820000.dma-controller:4
 19:       5952          0     GICv3 162 Edge      11820000.dma-controller:5
 20:          0          0     GICv3 163 Edge      11820000.dma-controller:6
 21:          0          0     GICv3 164 Edge      11820000.dma-controller:7
 22:          0          0     GICv3 165 Edge      11820000.dma-controller:8
 23:          0          0     GICv3 166 Edge      11820000.dma-controller:9
 24:          0          0     GICv3 167 Edge      11820000.dma-controller:10
 25:          0          0     GICv3 168 Edge      11820000.dma-controller:11
 26:          0          0     GICv3 169 Edge      11820000.dma-controller:12
 27:          0          0     GICv3 170 Edge      11820000.dma-controller:13
 28:          0          0     GICv3 171 Edge      11820000.dma-controller:14
 29:          0          0     GICv3 172 Edge      11820000.dma-controller:15

Biju Das (5):
  dmaengine: sh: rz-dmac: Add rz_dmac_invalidate_lmdesc()
  dmaengine: sh: rz-dmac: Add device_tx_status() callback
  dmaengine: sh: rz-dmac: Add device_{pause,resume}() callbacks
  dmaengine: sh: rz-dmac: Trivial code clean-ups
  dmaengine: sh: rz-dmac: rz_dmac_prepare_descs_for_slave_sg()
    improvements

 drivers/dma/sh/rz-dmac.c | 246 +++++++++++++++++++++++++++++++++++----
 1 file changed, 222 insertions(+), 24 deletions(-)