Messages in this thread | | | Date | Fri, 30 Jun 2017 15:39:15 +0200 | From | Andrew Lunn <> | Subject | Re: [PATCH NET V5 2/2] net: hns: Use phy_driver to setup Phy loopback |
| |
> Any idea?
Maybe consider what the self test is good for.
My guess is, self test was added when a network interface card was a full size VME card, and had a couple of hundred components or more. They did break during there life, due to heat, mechanism stresses, causing parts to pop off the PCB, or out of their sockets.
Nowadays, the Ethernet interface is part of the SoC, and just has maybe 10 external parts for the PHY. What does a failed "MAC loopback test" tell you? Probably that the driver has a bug, or there is a silicon bug. What does "SERDES loopback test" tell you? Probably that the driver has a bug, or there is a silicon bug. And since this is all inside the silicon, if it fails for you, it is going to fail for everybody, making the test pretty pointless.
What does a "PHY loopback test" tell you? There is a slim chance it tells you the device has been hit by lightning, and the PHY is fried. But more likely, that the driver has a bug, or there is a silicon bug.
I really expect your own Q&A testing is much better at finding driver and silicon bugs. You don't use the ethtool --selftest for this.
So i personally would just delete the whole selftest code, it is pretty pointless.
Andrew
| |