linux-riscv.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* Ethernet performance issue on HiFive Unleashed with kernel 4.20
@ 2019-01-11 12:12 Jan Vrany
  2019-01-11 13:15 ` Andreas Schwab
  0 siblings, 1 reply; 6+ messages in thread
From: Jan Vrany @ 2019-01-11 12:12 UTC (permalink / raw)
  To: linux-riscv; +Cc: Boris Shingarov

Hi, 

I'm trying to get Linux 4.20 on HiFive Unleashed working. With some patches
it does boot and runs Debian, however the ethernet is slow and unstable. 
ing shows ~20% packet loss when Unleashed is connected directly to my laptop 
ethernet port. With 4.15 kernel I have no issues: Also RTT time is several orders 
of magnitude higher than when runnin 4.15.

Following is ping output for 4.20:

    ...
    64 bytes from 10.42.0.136: icmp_seq=15 ttl=64 time=986 ms
    64 bytes from 10.42.0.136: icmp_seq=16 ttl=64 time=1920 ms
    64 bytes from 10.42.0.136: icmp_seq=17 ttl=64 time=1000 ms
    ^C
    --- 10.42.0.136 ping statistics ---
    18 packets transmitted, 15 received, 16.6667% packet loss, time 165ms
    rtt min/avg/max/mdev = 287.276/1249.659/2292.006/550.116 ms, pipe 3

If I take interface down manually (after being brought up by DHCP during 
Debian boot) and then bring it up again, it stop working completely
(cannot ping it anymore). This makes it practically unusable 

For comparison, following is taken when running 4.15:

    ...
    64 bytes from 10.42.0.136: icmp_seq=7 ttl=64 time=0.145 ms
    64 bytes from 10.42.0.136: icmp_seq=8 ttl=64 time=0.171 ms
    64 bytes from 10.42.0.136: icmp_seq=9 ttl=64 time=0.155 ms
    ^C
    --- 10.42.0.136 ping statistics ---
    9 packets transmitted, 9 received, 0% packet loss, time 202ms
    rtt min/avg/max/mdev = 0.108/0.140/0.172/0.028 ms

The sources I'm using are here: 
https://github.com/janvrany/riscv-linux/tree/users/jv/riscv-linux-4.20
config is here: 
https://gist.github.com/janvrany/a44b955eff75453ffb7aac524a5b7fc8

Is it known issue? Does anyone have working linux 4.20 running on 
Unleashed? I'd appreciate any hints how to fix this.

Best, 

Jan


_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-01-23 22:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-11 12:12 Ethernet performance issue on HiFive Unleashed with kernel 4.20 Jan Vrany
2019-01-11 13:15 ` Andreas Schwab
2019-01-13 23:03   ` Jan Vrany
2019-01-14 10:14     ` Andreas Schwab
2019-01-15  9:20       ` Jan Vrany
2019-01-15 19:57         ` Andreas Schwab

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).