Skip to contentSkip to conversation

riscv: k210: Reduce DMA block size

PATCH New Sean Anderson 2 participants 2 messages Oct 12, 2020 – Oct 21, 2020 RISC-V

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 riscv: k210: Reduce DMA block size

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.

---

 arch/riscv/dts/k210.dtsi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/riscv/dts/k210.dtsi +2 -2
index 84cff51c36..2e1e2683c1 100644
@@ -199,8 +199,8 @@
 			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";
 		};
Signature · 1 line
2.28.0
#1 lore raw

PATCH 1/1 riscv: k210: Reduce DMA block size

Quoted 5 lines

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.

Quoted 7 lines

---

 arch/riscv/dts/k210.dtsi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)