Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1523348

Re: [PATCH net 1/3] net: phy: realtek: add eee advertisement disable options

From Jerome Brunet <jbrunet@baylibre.com>
Newsgroups linux.kernel
Subject Re: [PATCH net 1/3] net: phy: realtek: add eee advertisement disable options
Date 2016-11-16 11:00 +0100
Message-ID <sE5ay-198-19@gated-at.bofh.it> (permalink)
References <sDMUh-65N-7@gated-at.bofh.it> <sDMUh-65N-21@gated-at.bofh.it> <sDOW6-7mP-29@gated-at.bofh.it> <sDPp8-7LU-27@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue, 2016-11-15 at 09:03 -0800, Florian Fainelli wrote:
> On 11/15/2016 08:30 AM, Andrew Lunn wrote:
> > 
> > On Tue, Nov 15, 2016 at 03:29:12PM +0100, Jerome Brunet wrote:
> > > 
> > > On some platforms, energy efficient ethernet with rtl8211 devices
> > > is
> > > causing issue, like throughput drop or broken link.
> > > 
> > > This was reported on the OdroidC2 (DWMAC + RTL8211F). While the
> > > issue root
> > > cause is not fully understood yet, disabling EEE advertisement
> > > prevent auto
> > > negotiation from enabling EEE.
> > > 
> > > This patch provides options to disable 1000T and 100TX EEE
> > > advertisement
> > > individually for the realtek phys supporting this feature.
> > 
> > Looking at the code, i don't see anything specific to RealTek
> > here. This all seems generic. So should it be in phy.c and made a
> > generic OF property which can be applied to any PHY which supports
> > EEE.
> 
> Agreed.

Good point, Thanks for pointing this out.

> Just to be sure, Jerome, you did verify that with EEE no longer
> advertised, ethtool --set-eee fails, right? The point is that you may
> be
> able to disable EEE on boot, but if there is a way to re-enable it
> later
> on, we would want to disable that too.

I was focused on getting the issue out of way I did not think that
someone could try something like this :)
I just tried and it is possible to re-enable eee, though it is not
simplest thing to do: using ethtool enable eee advertisement, enable
eee, restart the autonegotiation without bringing the interface down
(otherwise the phy config kicks and disable eee again). I reckon this
is not good and I need to address this.

There two kind of PHYs supporting eee, the one advertising eee by
default (like realtek) and the one not advertising it (like micrel).
If the property is going to be generic, I see two options and I'd like
your view on this:

1) The DT provided value could be seen as "preferred" (or boot
setting), which can be cleanly changed with ethtool later on. In this
case, I guess I need to provide a way to force eee advertisement as
well to be consistent.

2) The DT provided value could forbid the advertisement of eee. In this
case I need to return an error if ethtool tries to re-enable it. Phy
with eee advertisement off by default (and not forbidden) would still
need to activate it manually with ethtool after boot. I don't see why
someone would absolutely want eee activated at boot time so I guess
this is OK.

Do you have a preference ?

Thanks for this quick feedback !
Cheers

Jerome

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH net 0/3] Fix OdroidC2 Gigabit Tx link issue Jerome Brunet <jbrunet@baylibre.com> - 2016-11-15 15:30 +0100
  [PATCH net 1/3] net: phy: realtek: add eee advertisement disable options Jerome Brunet <jbrunet@baylibre.com> - 2016-11-15 15:30 +0100
    Re: [PATCH net 1/3] net: phy: realtek: add eee advertisement disable  options Andrew Lunn <andrew@lunn.ch> - 2016-11-15 17:40 +0100
      Re: [PATCH net 1/3] net: phy: realtek: add eee advertisement disable  options Florian Fainelli <f.fainelli@gmail.com> - 2016-11-15 18:10 +0100
        Re: [PATCH net 1/3] net: phy: realtek: add eee advertisement  disable options Jerome Brunet <jbrunet@baylibre.com> - 2016-11-16 11:00 +0100
          Re: [PATCH net 1/3] net: phy: realtek: add eee advertisement disable  options Andrew Lunn <andrew@lunn.ch> - 2016-11-16 14:30 +0100
            Re: [PATCH net 1/3] net: phy: realtek: add eee advertisement  disable options Jerome Brunet <jbrunet@baylibre.com> - 2016-11-16 16:00 +0100
              Re: [PATCH net 1/3] net: phy: realtek: add eee advertisement disable  options Andrew Lunn <andrew@lunn.ch> - 2016-11-16 16:10 +0100
                Re: [PATCH net 1/3] net: phy: realtek: add eee advertisement  disable options Jerome Brunet <jbrunet@baylibre.com> - 2016-11-16 16:40 +0100
                Re: [PATCH net 1/3] net: phy: realtek: add eee advertisement disable  options Florian Fainelli <f.fainelli@gmail.com> - 2016-11-16 18:10 +0100
    Re: [PATCH net 1/3] net: phy: realtek: add eee advertisement disable options Anand Moon <linux.amoon@gmail.com> - 2016-11-16 18:10 +0100
      Re: [PATCH net 1/3] net: phy: realtek: add eee advertisement  disable options Jerome Brunet <jbrunet@baylibre.com> - 2016-11-17 11:30 +0100
        Re: [PATCH net 1/3] net: phy: realtek: add eee advertisement disable options Anand Moon <linux.amoon@gmail.com> - 2016-11-17 19:10 +0100
          Re: [PATCH net 1/3] net: phy: realtek: add eee advertisement  disable options Jerome Brunet <jbrunet@baylibre.com> - 2016-11-17 22:50 +0100
  [PATCH net 2/3] dt-bindings: net: add DT bindings for realtek phys Jerome Brunet <jbrunet@baylibre.com> - 2016-11-15 15:40 +0100
    Re: [PATCH net 2/3] dt-bindings: net: add DT bindings for realtek  phys Rob Herring <robh@kernel.org> - 2016-11-16 16:20 +0100
      Re: [PATCH net 2/3] dt-bindings: net: add DT bindings for realtek  phys Jerome Brunet <jbrunet@baylibre.com> - 2016-11-16 16:30 +0100
  [PATCH net 3/3] ARM64: dts: meson: odroidc2: disable 1000t-eee advertisement Jerome Brunet <jbrunet@baylibre.com> - 2016-11-15 15:40 +0100

csiph-web