Sugar Zhang
070a9a046d
dmaengine: pl330: _prep_dma_memcpy: Fix wrong burst size
...
[ Upstream commit e773ca7da8beeca7f17fe4c9d1284a2b66839cc1 ]
Actually, burst size is equal to '1 << desc->rqcfg.brst_size'.
we should use burst size, not desc->rqcfg.brst_size.
dma memcpy performance on Rockchip RV1126
@ 1512MHz A7, 1056MHz LPDDR3, 200MHz DMA:
dmatest:
/# echo dma0chan0 > /sys/module/dmatest/parameters/channel
/# echo 4194304 > /sys/module/dmatest/parameters/test_buf_size
/# echo 8 > /sys/module/dmatest/parameters/iterations
/# echo y > /sys/module/dmatest/parameters/norandom
/# echo y > /sys/module/dmatest/parameters/verbose
/# echo 1 > /sys/module/dmatest/parameters/run
dmatest: dma0chan0-copy0: result #1 : 'test passed' with src_off=0x0 dst_off=0x0 len=0x400000
dmatest: dma0chan0-copy0: result #2 : 'test passed' with src_off=0x0 dst_off=0x0 len=0x400000
dmatest: dma0chan0-copy0: result #3 : 'test passed' with src_off=0x0 dst_off=0x0 len=0x400000
dmatest: dma0chan0-copy0: result #4 : 'test passed' with src_off=0x0 dst_off=0x0 len=0x400000
dmatest: dma0chan0-copy0: result #5 : 'test passed' with src_off=0x0 dst_off=0x0 len=0x400000
dmatest: dma0chan0-copy0: result #6 : 'test passed' with src_off=0x0 dst_off=0x0 len=0x400000
dmatest: dma0chan0-copy0: result #7 : 'test passed' with src_off=0x0 dst_off=0x0 len=0x400000
dmatest: dma0chan0-copy0: result #8 : 'test passed' with src_off=0x0 dst_off=0x0 len=0x400000
Before:
dmatest: dma0chan0-copy0: summary 8 tests, 0 failures 48 iops 200338 KB/s (0)
After this patch:
dmatest: dma0chan0-copy0: summary 8 tests, 0 failures 179 iops 734873 KB/s (0)
After this patch and increase dma clk to 400MHz:
dmatest: dma0chan0-copy0: summary 8 tests, 0 failures 259 iops 1062929 KB/s (0)
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Link: https://lore.kernel.org/r/1605326106-55681-1-git-send-email-sugar.zhang@rock-chips.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-12-02 08:49:48 +01:00
..
2019-06-19 17:09:55 +02:00
2020-10-29 09:58:09 +01:00
2019-06-08 12:46:31 -07:00
2020-09-09 19:12:35 +02:00
2019-07-17 09:55:43 -07:00
2020-07-29 10:18:37 +02:00
2019-06-19 17:09:55 +02:00
2020-10-01 13:17:18 +02:00
2019-05-21 11:28:40 +02:00
2019-10-18 13:27:58 +05:30
2020-07-22 09:33:00 +02:00
2020-01-26 10:01:08 +01:00
2020-12-02 08:49:48 +01:00
2020-09-17 13:47:45 +02:00
2019-05-30 11:26:32 -07:00
2019-07-17 09:55:43 -07:00
2019-05-30 11:26:32 -07:00
2020-09-09 19:12:23 +02:00
2019-07-17 09:55:43 -07:00
2019-09-17 19:04:40 -07:00
2019-06-14 11:14:58 +05:30
2019-05-30 11:29:22 -07:00
2020-03-12 13:00:30 +01:00
2019-05-30 11:29:22 -07:00
2020-02-14 16:34:19 -05:00
2020-11-05 11:43:29 +01:00
2020-02-24 08:36:40 +01:00
2020-10-29 09:57:41 +01:00
2019-05-30 11:26:32 -07:00
2020-07-29 10:18:37 +02:00
2020-07-22 09:33:15 +02:00
2020-07-22 09:33:15 +02:00
2020-02-24 08:36:29 +01:00
2019-08-20 19:42:34 -05:00
2020-09-09 19:12:22 +02:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2019-06-05 17:37:15 +02:00
2019-07-31 20:49:04 +05:30
2020-03-12 13:00:23 +01:00
2019-09-17 19:04:40 -07:00
2019-08-14 15:36:22 +02:00
2020-01-17 19:49:06 +01:00
2019-09-22 09:30:30 -07:00
2019-06-19 17:09:55 +02:00
2019-07-30 10:41:53 -07:00
2020-07-22 09:33:15 +02:00
2019-07-17 09:55:43 -07:00
2019-06-05 17:36:38 +02:00
2019-06-19 17:09:55 +02:00
2020-05-20 08:20:14 +02:00
2019-05-21 11:28:40 +02:00
2019-08-20 17:06:36 +05:30
2019-06-05 17:36:37 +02:00
2019-06-05 17:36:37 +02:00
2019-07-17 09:55:43 -07:00
2019-04-29 10:47:15 +05:30
2020-09-09 19:12:23 +02:00
2020-05-27 17:46:43 +02:00
2020-05-20 08:20:13 +02:00
2020-12-02 08:49:48 +01:00
2019-07-17 09:55:43 -07:00
2019-07-31 20:50:53 +05:30
2019-06-19 17:09:55 +02:00
2019-05-21 11:28:40 +02:00
2019-10-15 15:47:24 +05:30
2019-07-31 20:50:53 +05:30
2019-05-30 11:26:32 -07:00
2019-05-30 11:29:22 -07:00
2019-05-30 11:29:22 -07:00
2019-07-22 20:58:33 +05:30
2020-10-01 13:17:36 +02:00
2019-07-29 12:25:21 +05:30
2020-10-01 13:17:35 +02:00
2019-07-31 20:50:53 +05:30
2019-07-31 20:50:53 +05:30
2020-10-01 13:17:36 +02:00
2020-07-29 10:18:36 +02:00
2019-05-30 11:26:41 -07:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2019-07-31 20:50:53 +05:30
2020-01-09 10:20:00 +01:00
2019-07-17 09:55:43 -07:00
2019-07-31 20:50:53 +05:30
2019-06-19 17:09:55 +02:00