[PATCH] riscv: k210: Reduce DMA block size

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[PATCH] riscv: k210: Reduce DMA block size

Sean Anderson
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 <[hidden email]>
Signed-off-by: Sean Anderson <[hidden email]>
---

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

diff --git a/arch/riscv/dts/k210.dtsi b/arch/riscv/dts/k210.dtsi
index 84cff51c36..2e1e2683c1 100644
--- a/arch/riscv/dts/k210.dtsi
+++ b/arch/riscv/dts/k210.dtsi
@@ -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";
  };
--
2.28.0

Reply | Threaded
Open this post in threaded view
|

Re: [PATCH] riscv: k210: Reduce DMA block size

Rick Chen
> 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 <[hidden email]>
> Signed-off-by: Sean Anderson <[hidden email]>
> ---
>
>  arch/riscv/dts/k210.dtsi | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>

Reviewed-by: Rick Chen <[hidden email]>