dmaengine: ti: k3-udma: Try to use the highest TPL channels for MEM_TO_MEM
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Thu, 29 Nov 2018 08:06:42 +0000 (10:06 +0200)
committerTero Kristo <t-kristo@ti.com>
Mon, 3 Dec 2018 18:47:10 +0000 (20:47 +0200)
commit4edb5193d9acb1d61e7ac137257759af342129ed
tree79f35fd3094d3f7d39018e43d0bf1b26bdbc85b6
parent7a8fb28bfc57aee8e61746c4054cc7bceff03c1f
dmaengine: ti: k3-udma: Try to use the highest TPL channels for MEM_TO_MEM

When running memcpy test with big buffers:

echo 800000 > /sys/module/dmatest/parameters/test_buf_size
echo 2000 > /sys/module/dmatest/parameters/timeout
echo 20 > /sys/module/dmatest/parameters/iterations
echo 10 > /sys/module/dmatest/parameters/max_channels
echo 1 > /sys/module/dmatest/parameters/run

The throughput with normal channels is:
dmatest: dma1chan2-copy0: summary 200 tests, 0 failures 87 iops 308840 KB/s (0)

Using High Throughput channel with the same setup:
dmatest: dma1chan2-copy0: summary 200 tests, 0 failures 295 iops 1206172 KB/s (0)

The speed increase is about 4x.

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