Frank Chang
ae000c5f65
hw/dma: sifive_pdma: don't set Control.error if 0 bytes to transfer
Real PDMA doesn't set Control.error if there are 0 bytes to be
transferred. The DMA transfer is still success.
The following result is PDMA tested in U-Boot on Unmatched board:
=> mw.l 0x3000000 0x0 <= Disclaim channel 0
=> mw.l 0x3000000 0x1 <= Claim channel 0
=> mw.l 0x3000004 0x55000000 <= wsize = rsize = 5 (2^5 = 32 bytes)
=> mw.q 0x3000008 0x0 <= NextBytes = 0
=> mw.q 0x3000010 0x84000000 <= NextDestination = 0x84000000
=> mw.q 0x3000018 0x84001000 <= NextSource = 0x84001000
=> mw.l 0x84000000 0x87654321 <= Fill test data to dst
=> mw.l 0x84001000 0x12345678 <= Fill test data to src
=> md.l 0x84000000 1; md.l 0x84001000 1 <= Dump src/dst memory contents
84000000: 87654321 !Ce.
84001000: 12345678 xV4.
=> md.l 0x3000000 8 <= Dump PDMA status
03000000: 00000001 55000000 00000000 00000000 .......U........
03000010: 84000000 00000000 84001000 00000000 ................
=> mw.l 0x3000000 0x3 <= Set channel 0 run and claim bits
=> md.l 0x3000000 8 <= Dump PDMA status
03000000: 40000001 55000000 00000000 00000000 ...@...U........
03000010: 84000000 00000000 84001000 00000000 ................
=> md.l 0x84000000 1; md.l 0x84001000 1 <= Dump src/dst memory contents
84000000: 87654321 !Ce.
84001000: 12345678 xV4.
Signed-off-by: Frank Chang <frank.chang@sifive.com>
Tested-by: Max Hsu <max.hsu@sifive.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Bin Meng <bmeng.cn@gmail.com>
Message-id: 20210912130553.179501-5-frank.chang@sifive.com
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2021-09-21 07:56:49 +10:00
..
2021-09-02 13:26:22 +02:00
2021-09-04 17:34:05 -04:00
2021-06-17 07:10:32 -05:00
2021-06-28 07:27:32 -07:00
2021-09-13 21:01:08 +01:00
2021-07-26 07:07:07 -10:00
2021-05-13 19:11:42 +02:00
2021-07-09 14:30:01 +01:00
2021-09-13 16:07:21 +01:00
2021-09-02 13:00:52 +01:00
2021-04-09 16:05:16 -04:00
2021-05-02 17:24:51 +02:00
2021-09-15 08:42:00 +02:00
2021-09-21 07:56:49 +10:00
2021-07-27 11:00:00 +01:00
2021-06-02 06:51:09 +02:00
2021-07-06 18:04:38 -04:00
2021-07-29 10:59:49 +10:00
2021-09-16 11:55:02 +02:00
2021-07-20 15:30:42 +02:00
2021-09-10 07:32:32 +02:00
2021-09-21 07:56:49 +10:00
2020-09-18 14:12:32 -04:00
2021-07-08 14:15:01 -05:00
2021-09-04 09:07:45 -04:00
2021-09-08 15:37:40 +02:00
2021-06-02 06:51:09 +02:00
2021-05-02 17:24:50 +02:00
2021-08-26 17:02:00 +01:00
2021-09-13 16:07:20 +01:00
2021-09-17 16:07:52 +08:00
2021-05-02 17:24:51 +02:00
2021-05-02 17:24:50 +02:00
2021-08-09 12:52:16 +02:00
2021-09-13 13:56:26 +02:00
2021-05-02 17:24:51 +02:00
2021-07-16 11:10:45 -04:00
2021-08-03 16:31:07 -04:00
2021-09-04 17:34:05 -04:00
2021-05-02 17:24:50 +02:00
2021-09-01 11:08:16 +01:00
2021-07-04 22:47:51 +03:00
2021-08-26 17:15:28 +02:00
2021-09-21 07:56:49 +10:00
2021-06-02 06:51:09 +02:00
2021-05-03 10:07:41 +02:00
2021-09-07 13:36:43 +02:00
2021-08-26 17:15:28 +02:00
2021-08-03 19:34:51 +02:00
2021-07-08 14:42:00 -05:00
2021-05-02 17:24:51 +02:00
2021-05-14 10:26:18 -04:00
2021-09-08 11:09:45 +01:00
2021-06-25 08:53:28 -04:00
2021-05-05 13:52:00 +01:00
2021-09-21 07:56:49 +10:00
2021-06-02 06:51:09 +02:00
2021-07-20 20:10:21 +02:00
2021-09-01 06:37:13 +02:00
2021-09-16 11:57:01 +02:00
2021-09-04 17:34:05 -04:00
2021-06-02 06:51:09 +02:00
2021-06-02 06:51:09 +02:00
2020-08-21 06:30:33 -04:00
2021-05-02 17:24:51 +02:00
2021-06-17 07:10:32 -05:00
2021-06-17 07:10:32 -05:00