I can confirm similar issue with 5.0.7 kernel on an A10s box, dmesg report speed of 10Mb/s. While 5.1.0-rc3 works just fine, and run at full speed (90+Mbit/s) tested with iperf3.
When using 5.0.7 kernel, if force 100Mbps with: ethtool -s eth0 speed 100 duplex full autoneg off It can switch to 100Mbps mode, but iperf3 speed jumps around 20 to 50Mbit/s. Cheers, On Wednesday, March 20, 2019 at 6:49:44 AM UTC+8, Adam Sampson wrote: > > Hi all, > > On an A10 Cubieboard, there seems to be something odd going on with the > sun4i-emac driver with 5.0... > > With 4.20.12, the driver correctly reports the switch's supported modes > and negotiates 100baseT full duplex: > > # ethtool eth0 [...] > Link partner advertised link modes: 10baseT/Half 10baseT/Full > 100baseT/Half 100baseT/Full > Link partner advertised pause frame use: No > Link partner advertised auto-negotiation: Yes > Speed: 100Mb/s > Duplex: Full > > With 5.0.3, it ends up at 10baseT half duplex: > > Link partner advertised link modes: 10baseT/Half > Link partner advertised pause frame use: No > Link partner advertised auto-negotiation: No > Speed: 10Mb/s > Duplex: Half > > After it's been running for a while, I'm also getting a report like this > (from emac_interrupt) in dmesg every few seconds: > > [ 571.518667] sun4i-emac 1c0b000.ethernet eth0: ab : 40004 > [ 572.318132] sun4i-emac 1c0b000.ethernet eth0: ab : 40004 > > [ 572.707625] sun4i-emac 1c0b000.ethernet eth0: ab : 40008 > > [ 573.491298] sun4i-emac 1c0b000.ethernet eth0: ab : 40004 > > [ 574.399618] sun4i-emac 1c0b000.ethernet eth0: ab : 40004 > > [ 574.941244] sun4i-emac 1c0b000.ethernet eth0: ab : 40004 > > > I can't see any non-trivial differences to either sun4i-emac or the A10 > device trees between 4.20 and 5.0; any ideas what else might be causing > this? > > Cheers, > > -- > Adam Sampson <a...@offog.org <javascript:>> < > http://offog.org/> > -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.