]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
riscv: k210: Reduce DMA block size
authorSean Anderson <seanga2@gmail.com>
Mon, 12 Oct 2020 18:18:15 +0000 (14:18 -0400)
committerAndes <uboot@andestech.com>
Mon, 26 Oct 2020 01:27:24 +0000 (09:27 +0800)
Although the max DMA size supported by the hardware register is 22 bits (or
4M), the Linux driver for this device only supports transfers of up to 2M.
On a device with 8M total memory, I don't think it will make too much of a
difference.

Reported-by: Damien Le Moal <Damien.LeMoal@wdc.com>
Signed-off-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Rick Chen <rick@andestech.com>
arch/riscv/dts/k210.dtsi

index 7605c01f3c285edea36128be4a386cb2a3bb137e..81ef8ca4f71e1022bc426e759f295df193ee7382 100644 (file)
                        dma-channels = <6>;
                        snps,dma-masters = <2>;
                        snps,data-width = <5>;
-                       snps,block-size = <0x400000 0x400000 0x400000
-                                          0x400000 0x400000 0x400000>;
+                       snps,block-size = <0x200000 0x200000 0x200000
+                                          0x200000 0x200000 0x200000>;
                        snps,axi-max-burst-len = <256>;
                        status = "disabled";
                };