netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* genphy_read_status() vs. 1000bT Pause capability
@ 2017-03-28  0:49 Benjamin Herrenschmidt
  2017-03-28  1:09 ` Andrew Lunn
  0 siblings, 1 reply; 11+ messages in thread
From: Benjamin Herrenschmidt @ 2017-03-28  0:49 UTC (permalink / raw)
  To: netdev

Hi !

I noticed that flow control isn't being enabled on a system I'm
working on by default. I've tracked it down to two things:

 - The realtec.c PHY driver doesn't have Pause or Asym_Pause in
its exposed capabilities. This is in part because PHY_GBIT_FEATURES
does not include SUPPORTED_Pause and SUPPORTED_Asym_Pause. Is there
a specific reason for that ?

 - After I've hacked the above, I get in genphy_read_status():

lpa=c1e1 lpagb=3800 adv=de1 common_adv=1e1 common_adv_gb=800

So we have negociated 1000bT full duplex. LPA_PAUSE's aren't set
but I was under the impression that in Gigabit mode, LPA bit 0x80
which *is* set, meant ADVERTISE_1000XPAUSE which is the pause
capability isn't it ? Or am I confusing with something else ?
This seems to be how mii_adv_to_ethtool_adv_x() decodes them
but that function is not called by genphy_read_status()...

Now it's been a while since I hacked network drivers and back then
everybody did their own salad with gigabit PHYs so it's very possible
that I missed something here.

Should we update genphy_read_status() to grab the pause details
from mii_adv_to_ethtool_adv_x() when in 1000bT mode ?

Thanks !

Cheers,
Ben.

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

end of thread, other threads:[~2017-03-28 20:33 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-28  0:49 genphy_read_status() vs. 1000bT Pause capability Benjamin Herrenschmidt
2017-03-28  1:09 ` Andrew Lunn
2017-03-28  2:28   ` Benjamin Herrenschmidt
2017-03-28  2:55     ` Benjamin Herrenschmidt
2017-03-28  4:14       ` Florian Fainelli
     [not found]       ` <20170328041405.045FEB206B@b01ledav03.gho.pok.ibm.com>
2017-03-28  5:17         ` Benjamin Herrenschmidt
2017-03-28  5:19           ` Benjamin Herrenschmidt
2017-03-28  9:42           ` Russell King - ARM Linux
2017-03-28 11:11             ` Benjamin Herrenschmidt
2017-03-28 11:31               ` Russell King - ARM Linux
2017-03-28 20:32                 ` Benjamin Herrenschmidt

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