netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* ep93xx_eth PHY problems
@ 2008-03-04 13:02 Oliver Martin
  2008-03-21 19:22 ` [PATCH] " Oliver Martin
  0 siblings, 1 reply; 13+ messages in thread
From: Oliver Martin @ 2008-03-04 13:02 UTC (permalink / raw)
  To: netdev; +Cc: hvr, buytenh

Hello,

I was having problems with the ep93xx_eth driver: apparently the PHY
auto-negotiated "100/full" with the switch, but the driver didn't care
about it (or is it the other way round?). This led to lots of packets
being dropped under load. Anyway, the patch that was posted last
november (http://marc.info/?l=linux-netdev&m=119520642207001&w=4)
helped.

Now I'm having different problems: When auto-negotiation is enabled, it 
sometimes randomly changes the link state:

PHY: 0:01 - Link is Down
PHY: 0:01 - Link is Up - 100/Full

PHY: 0:01 - Link is Up - 100/Half
PHY: 0:01 - Link is Up - 100/Full

PHY: 0:01 - Link is Up - 10/Half
PHY: 0:01 - Link is Up - 100/Full

It could be related to some kind of error handling - often, when this
happens, our test (a simple RFC 862 UDP echo server, see [1]) loses 
packets, but the message seems to appear only after the test fails.

If I disable auto-negotiation with ethtool, it first changes to the mode
I choose, but seconds later changes to "1000/Full":

PHY: 0:01 - Link is Up - 100/Full
PHY: 0:01 - Link is Up - 1000/Full

This is obviously impossible, and while it mostly works, it seems to
confuse something (PHY? MAC? driver?), as there seem to be more dropped
packets than with the Cirrus 2.4 driver (on a TS-7260 with the default
TS-Linux).

Maybe some error condition isn't handled properly, causing both the 
packet loss and the PHY state change? Of course, I'm just speculating 
and it might be something entirely different.

Any ideas?

-- 
Oliver

[1] http://murli.34sp.com/o/ep93xx-eth/echo/

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

end of thread, other threads:[~2008-09-17  9:13 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-04 13:02 ep93xx_eth PHY problems Oliver Martin
2008-03-21 19:22 ` [PATCH] " Oliver Martin
2008-03-26  4:42   ` Jeff Garzik
2008-03-29 18:13     ` Oliver Martin
2008-03-29 18:17       ` Lennert Buytenhek
2008-09-14  2:11   ` Jeff Garzik
2008-09-14 11:47     ` Lennert Buytenhek
2008-09-14 11:58       ` Herbert Valerio Riedel
2008-09-14 12:11     ` Oliver Martin
2008-09-14 12:12       ` Lennert Buytenhek
2008-09-14 12:24         ` Oliver Martin
2008-09-16 12:51       ` Lennert Buytenhek
2008-09-17  9:13         ` Oliver Martin

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).