mbox series

[-next,v1,0/1] Fix StarFive JH7110 gmac TCP RX speed issue

Message ID 20230810074646.19076-1-samin.guo@starfivetech.com (mailing list archive)
Headers show
Series Fix StarFive JH7110 gmac TCP RX speed issue | expand

Message

Guo Samin Aug. 10, 2023, 7:46 a.m. UTC
This patch fixes the StarFive JH7110 gmac TCP RX slow issue. And it has been
tested on VisionFive 2.

Here is the result of the test (iperf3):

  Before:
      # iperf3 -s
      -----------------------------------------------------------
      Server listening on 5201 (test #1)
      -----------------------------------------------------------
      Accepted connection from 192.168.1.4, port 47604
      [  5] local 192.168.1.3 port 5201 connected to 192.168.1.4 port 47612
      [ ID] Interval           Transfer     Bitrate
      [  5]   0.00-1.00   sec  36.3 MBytes   305 Mbits/sec
      [  5]   1.00-2.00   sec  35.6 MBytes   299 Mbits/sec
      [  5]   2.00-3.00   sec  36.5 MBytes   306 Mbits/sec
      [  5]   3.00-4.00   sec  36.5 MBytes   306 Mbits/sec
      [  5]   4.00-5.00   sec  35.7 MBytes   300 Mbits/sec
      [  5]   5.00-6.00   sec  35.4 MBytes   297 Mbits/sec
      [  5]   6.00-7.00   sec  37.1 MBytes   311 Mbits/sec
      [  5]   7.00-8.00   sec  35.6 MBytes   298 Mbits/sec
      [  5]   8.00-9.00   sec  36.4 MBytes   305 Mbits/sec
      [  5]   9.00-10.00  sec  36.3 MBytes   304 Mbits/sec
      - - - - - - - - - - - - - - - - - - - - - - - - -
      [ ID] Interval           Transfer     Bitrate
      [  5]   0.00-10.00  sec   361 MBytes   303 Mbits/sec        receiver

  After:
      # iperf3 -s
      -----------------------------------------------------------
      Server listening on 5201 (test #1)
      -----------------------------------------------------------
      Accepted connection from 192.168.1.4, port 47710
      [  5] local 192.168.1.3 port 5201 connected to 192.168.1.4 port 47720
      [ ID] Interval           Transfer     Bitrate
      [  5]   0.00-1.00   sec   111 MBytes   932 Mbits/sec
      [  5]   1.00-2.00   sec   111 MBytes   934 Mbits/sec
      [  5]   2.00-3.00   sec   111 MBytes   934 Mbits/sec
      [  5]   3.00-4.00   sec   111 MBytes   934 Mbits/sec
      [  5]   4.00-5.00   sec   111 MBytes   934 Mbits/sec
      [  5]   5.00-6.00   sec   111 MBytes   935 Mbits/sec
      [  5]   6.00-7.00   sec   111 MBytes   934 Mbits/sec
      [  5]   7.00-8.00   sec   111 MBytes   935 Mbits/sec
      [  5]   8.00-9.00   sec   111 MBytes   934 Mbits/sec
      [  5]   9.00-10.00  sec   111 MBytes   934 Mbits/sec
      [  5]  10.00-10.00  sec   167 KBytes   933 Mbits/sec
      - - - - - - - - - - - - - - - - - - - - - - - - -
      [ ID] Interval           Transfer     Bitrate
      [  5]   0.00-10.00  sec  1.09 GBytes   934 Mbits/sec        receiver


For more information and support, you can visit RVspace wiki[1].

[1]: https://wiki.rvspace.org/

Samin Guo (1):
  riscv: starfive: jh7110: Fix GMAC configuration

 arch/riscv/boot/dts/starfive/jh7110.dtsi | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

--
2.17.1

Comments

Conor Dooley Aug. 10, 2023, 3:37 p.m. UTC | #1
From: Conor Dooley <conor.dooley@microchip.com>

On Thu, 10 Aug 2023 15:46:45 +0800, Samin Guo wrote:
> This patch fixes the StarFive JH7110 gmac TCP RX slow issue. And it has been
> tested on VisionFive 2.
> 
> Here is the result of the test (iperf3):
> 
>   Before:
>       # iperf3 -s
>       -----------------------------------------------------------
>       Server listening on 5201 (test #1)
>       -----------------------------------------------------------
>       Accepted connection from 192.168.1.4, port 47604
>       [  5] local 192.168.1.3 port 5201 connected to 192.168.1.4 port 47612
>       [ ID] Interval           Transfer     Bitrate
>       [  5]   0.00-1.00   sec  36.3 MBytes   305 Mbits/sec
>       [  5]   1.00-2.00   sec  35.6 MBytes   299 Mbits/sec
>       [  5]   2.00-3.00   sec  36.5 MBytes   306 Mbits/sec
>       [  5]   3.00-4.00   sec  36.5 MBytes   306 Mbits/sec
>       [  5]   4.00-5.00   sec  35.7 MBytes   300 Mbits/sec
>       [  5]   5.00-6.00   sec  35.4 MBytes   297 Mbits/sec
>       [  5]   6.00-7.00   sec  37.1 MBytes   311 Mbits/sec
>       [  5]   7.00-8.00   sec  35.6 MBytes   298 Mbits/sec
>       [  5]   8.00-9.00   sec  36.4 MBytes   305 Mbits/sec
>       [  5]   9.00-10.00  sec  36.3 MBytes   304 Mbits/sec
>       - - - - - - - - - - - - - - - - - - - - - - - - -
>       [ ID] Interval           Transfer     Bitrate
>       [  5]   0.00-10.00  sec   361 MBytes   303 Mbits/sec        receiver
> 
> [...]

Applied to riscv-dt-for-next with the conversion to decimal, thanks!

[1/1] riscv: dts: starfive: jh7110: Fix GMAC configuration
      https://git.kernel.org/conor/c/1273f7e96a70

Thanks,
Conor.
Guo Samin Aug. 11, 2023, 1:42 a.m. UTC | #2
On 2023/8/10 23:37:13, Conor Dooley wrote:
> From: Conor Dooley <conor.dooley@microchip.com>
> 
> On Thu, 10 Aug 2023 15:46:45 +0800, Samin Guo wrote:
>> This patch fixes the StarFive JH7110 gmac TCP RX slow issue. And it has been
>> tested on VisionFive 2.
>>
>> Here is the result of the test (iperf3):
>>
>>   Before:
>>       # iperf3 -s
>>       -----------------------------------------------------------
>>       Server listening on 5201 (test #1)
>>       -----------------------------------------------------------
>>       Accepted connection from 192.168.1.4, port 47604
>>       [  5] local 192.168.1.3 port 5201 connected to 192.168.1.4 port 47612
>>       [ ID] Interval           Transfer     Bitrate
>>       [  5]   0.00-1.00   sec  36.3 MBytes   305 Mbits/sec
>>       [  5]   1.00-2.00   sec  35.6 MBytes   299 Mbits/sec
>>       [  5]   2.00-3.00   sec  36.5 MBytes   306 Mbits/sec
>>       [  5]   3.00-4.00   sec  36.5 MBytes   306 Mbits/sec
>>       [  5]   4.00-5.00   sec  35.7 MBytes   300 Mbits/sec
>>       [  5]   5.00-6.00   sec  35.4 MBytes   297 Mbits/sec
>>       [  5]   6.00-7.00   sec  37.1 MBytes   311 Mbits/sec
>>       [  5]   7.00-8.00   sec  35.6 MBytes   298 Mbits/sec
>>       [  5]   8.00-9.00   sec  36.4 MBytes   305 Mbits/sec
>>       [  5]   9.00-10.00  sec  36.3 MBytes   304 Mbits/sec
>>       - - - - - - - - - - - - - - - - - - - - - - - - -
>>       [ ID] Interval           Transfer     Bitrate
>>       [  5]   0.00-10.00  sec   361 MBytes   303 Mbits/sec        receiver
>>
>> [...]
> 
> Applied to riscv-dt-for-next with the conversion to decimal, thanks!
> 
> [1/1] riscv: dts: starfive: jh7110: Fix GMAC configuration
>       https://git.kernel.org/conor/c/1273f7e96a70
> 
> Thanks,
> Conor.

Hi Conor,

Thank a lot for for merging into the next branch so promptly!
 
Best regards,
Samin