ep93xx_eth PHY problems

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Oliver Martin
Date: Tuesday, March 4, 2008 - 6:02 am

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/
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
ep93xx_eth PHY problems, Oliver Martin, (Tue Mar 4, 6:02 am)
[PATCH] Re: ep93xx_eth PHY problems, Oliver Martin, (Fri Mar 21, 12:22 pm)
Re: [PATCH] Re: ep93xx_eth PHY problems, Jeff Garzik, (Tue Mar 25, 9:42 pm)
Re: [PATCH] Re: ep93xx_eth PHY problems, Oliver Martin, (Sat Mar 29, 11:13 am)
Re: [PATCH] Re: ep93xx_eth PHY problems, Lennert Buytenhek, (Sat Mar 29, 11:17 am)
Re: [PATCH] Re: ep93xx_eth PHY problems, Jeff Garzik, (Sat Sep 13, 7:11 pm)
Re: [PATCH] Re: ep93xx_eth PHY problems, Lennert Buytenhek, (Sun Sep 14, 4:47 am)
Re: [PATCH] Re: ep93xx_eth PHY problems, Herbert Valerio Riedel, (Sun Sep 14, 4:58 am)
Re: [PATCH] Re: ep93xx_eth PHY problems, Oliver Martin, (Sun Sep 14, 5:11 am)
Re: [PATCH] Re: ep93xx_eth PHY problems, Lennert Buytenhek, (Sun Sep 14, 5:12 am)
Re: [PATCH] Re: ep93xx_eth PHY problems, Oliver Martin, (Sun Sep 14, 5:24 am)
Re: [PATCH] Re: ep93xx_eth PHY problems, Lennert Buytenhek, (Tue Sep 16, 5:51 am)
Re: [PATCH] Re: ep93xx_eth PHY problems, Oliver Martin, (Wed Sep 17, 2:13 am)