dmaengine: ti: k3-udma: Only allow MEM_TO_MEM transfer on the main UDMA
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Wed, 28 Nov 2018 13:57:47 +0000 (15:57 +0200)
committerTero Kristo <t-kristo@ti.com>
Mon, 3 Dec 2018 18:47:10 +0000 (20:47 +0200)
commit7a8fb28bfc57aee8e61746c4054cc7bceff03c1f
treeb5c6cdfbb3551ed595584412928ffc2252034ed4
parent4cdae38d40395b31bcd9d6cc192db35236faacf2
dmaengine: ti: k3-udma: Only allow MEM_TO_MEM transfer on the main UDMA

memcpy via the mcu UDMA is much slower compared to main UDMA:

mcu_udma:  dmatest: dma0chan0-copy0: summary 200 tests, 0 failures 41 iops 165997 KB/s (0)
main_udma: dmatest: dma1chan2-copy0: summary 200 tests, 0 failures 87 iops 308840 KB/s (0)

We have enough channels on the main UDMA for memcpy, so disable the support
for MEM_TO_MEM on the mcu side.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
drivers/dma/ti/k3-udma.c