RISCV: dts: starfive: Change wr/rd_osr_lmt value from 4 to 0xf 29/295629/2
authorJaehoon Chung <jh80.chung@samsung.com>
Wed, 12 Jul 2023 02:08:29 +0000 (11:08 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 12 Jul 2023 03:21:00 +0000 (03:21 +0000)
Change wr/rd_osr_lmt value from 4 to 0xf.
When value is using to 4, ethernet Rx Performance is decreasing.

Vendor kernel(v5.15) is using its value as 0xf.

The below is iperf result.
- Using to 4   - Rx is 45MBits/sec, Tx is 980MBits/sec
- Using to 0xf - Rx is 750MBits/sec, Tx is 930Mbits/sec

Change-Id: Ie6763a00ec2795e43bdbae2f224638732c789490
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
arch/riscv/boot/dts/starfive/jh7110.dtsi

index 7e6361d..2848fb8 100644 (file)
 
        stmmac_axi_setup: stmmac-axi-config {
                snps,lpi_en;
-               snps,wr_osr_lmt = <4>;
-               snps,rd_osr_lmt = <4>;
+               snps,wr_osr_lmt = <0xf>;
+               snps,rd_osr_lmt = <0xf>;
                snps,blen = <256 128 64 32 0 0 0>;
        };