All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Russell King (Oracle)" <linux@armlinux.org.uk>
To: Vladimir Oltean <olteanv@gmail.com>
Cc: "Marek Behún" <kabel@kernel.org>, "Andrew Lunn" <andrew@lunn.ch>,
	"Heiner Kallweit" <hkallweit1@gmail.com>,
	"Alexandre Belloni" <alexandre.belloni@bootlin.com>,
	"Alvin __ipraga" <alsi@bang-olufsen.dk>,
	"Andy Shevchenko" <andriy.shevchenko@linux.intel.com>,
	"Claudiu Manoil" <claudiu.manoil@nxp.com>,
	"Daniel Scally" <djrscally@gmail.com>,
	"David S. Miller" <davem@davemloft.net>,
	"DENG Qingfang" <dqfext@gmail.com>,
	"Eric Dumazet" <edumazet@google.com>,
	"Florian Fainelli" <f.fainelli@gmail.com>,
	"George McCollister" <george.mccollister@gmail.com>,
	"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
	"Hauke Mehrtens" <hauke@hauke-m.de>,
	"Heikki Krogerus" <heikki.krogerus@linux.intel.com>,
	"Jakub Kicinski" <kuba@kernel.org>,
	"Kurt Kanzenbach" <kurt@linutronix.de>,
	"Landen Chao" <Landen.Chao@mediatek.com>,
	"Linus Walleij" <linus.walleij@linaro.org>,
	linux-acpi@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
	linux-mediatek@lists.infradead.org,
	"Matthias Brugger" <matthias.bgg@gmail.com>,
	netdev@vger.kernel.org, "Paolo Abeni" <pabeni@redhat.com>,
	"Rafael J. Wysocki" <rafael@kernel.org>,
	"Sakari Ailus" <sakari.ailus@linux.intel.com>,
	"Sean Wang" <sean.wang@mediatek.com>,
	UNGLinuxDriver@microchip.com,
	"Vivien Didelot" <vivien.didelot@gmail.com>,
	"Woojung Huh" <woojung.huh@microchip.com>
Subject: Re: [PATCH net-next 3/6] net: dsa: add support for retrieving the interface mode
Date: Thu, 21 Jul 2022 22:14:00 +0100	[thread overview]
Message-ID: <YtnBmFm8Jhokgp7Q@shell.armlinux.org.uk> (raw)
In-Reply-To: <20220721182216.z4vdaj4zfb6w3emo@skbuf>

On Thu, Jul 21, 2022 at 09:22:16PM +0300, Vladimir Oltean wrote:
> On Thu, Jul 21, 2022 at 07:21:45PM +0200, Marek Behún wrote:
> > And then came 6373X switch, which didn't support clause 37 inband AN in
> > 2500base-x mode (the AN reigster returned 0xffff or something when
> > 2500base-x CMODE was set). Maybe 6373X finally supports clause 73 AN
> > (I don't know, but I don't think so) and that is the reason they now
> > forbid clause 37 AN in HW in 2500base-x.
> > 
> > But the problem is that by this time there is software out there then
> > expects 2500base-x to have clause 37 AN enabled. Indeed a passive SFP
> > cable did not work between MOX' SFP port and CN9130-CRB's SFP port
> > when used with Peridot (6190), if C37 AN was disabled on 6393x and left
> > enabled on Peridot.
> > 
> > I managed to work out how to enable C37 AN on 6393x:
> > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=163000dbc772c1eae9bdfe7c8fe30155db1efd74
> > 
> > So currently we try to enable C37 AN in 2500base-x mode, although
> > the standard says that it shouldn't be there, and it shouldn't be there
> > presumably because they want it to work with C73 AN.
> > 
> > I don't know how to solve this issue. Maybe declare a new PHY interface
> > mode constant, 2500base-x-no-c37-an ?
> 
> So this is essentially what I'm asking, and you didn't necessarily fully
> answer. I take it that there exist Marvell switches which enable in-band
> autoneg for 2500base-x and switches which don't, and managed = "in-band-status"
> has nothing to do with that decision. Right?

I think we're getting a little too het up over this.

We have 1000base-X where, when we're not using in-band-status, we don't
use autoneg (some drivers that weren't caught in review annoyingly do
still use autoneg, but they shouldn't). We ignore the ethtool autoneg
bit.

We also have 1000base-X where we're using in-band-status, and we then
respect the ethtool autoneg bit.

So, wouldn't it be logical if 2500base-X were implemented the same way,
and on setups where 2500base-X does not support clause 37 AN, we
clear the ethtool autoneg bit? If we have 2500base-X being used as the
media link, surely this is the right behaviour?

(This has implications for the rate adaption case, since the 2500base-X
link is not the media, and therefore the state of the autoneg bit
shouldn't apply to the 2500base-X link.)

-- 
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!

WARNING: multiple messages have this Message-ID (diff)
From: "Russell King (Oracle)" <linux@armlinux.org.uk>
To: Vladimir Oltean <olteanv@gmail.com>
Cc: "Marek Behún" <kabel@kernel.org>, "Andrew Lunn" <andrew@lunn.ch>,
	"Heiner Kallweit" <hkallweit1@gmail.com>,
	"Alexandre Belloni" <alexandre.belloni@bootlin.com>,
	"Alvin __ipraga" <alsi@bang-olufsen.dk>,
	"Andy Shevchenko" <andriy.shevchenko@linux.intel.com>,
	"Claudiu Manoil" <claudiu.manoil@nxp.com>,
	"Daniel Scally" <djrscally@gmail.com>,
	"David S. Miller" <davem@davemloft.net>,
	"DENG Qingfang" <dqfext@gmail.com>,
	"Eric Dumazet" <edumazet@google.com>,
	"Florian Fainelli" <f.fainelli@gmail.com>,
	"George McCollister" <george.mccollister@gmail.com>,
	"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
	"Hauke Mehrtens" <hauke@hauke-m.de>,
	"Heikki Krogerus" <heikki.krogerus@linux.intel.com>,
	"Jakub Kicinski" <kuba@kernel.org>,
	"Kurt Kanzenbach" <kurt@linutronix.de>,
	"Landen Chao" <Landen.Chao@mediatek.com>,
	"Linus Walleij" <linus.walleij@linaro.org>,
	linux-acpi@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
	linux-mediatek@lists.infradead.org,
	"Matthias Brugger" <matthias.bgg@gmail.com>,
	netdev@vger.kernel.org, "Paolo Abeni" <pabeni@redhat.com>,
	"Rafael J. Wysocki" <rafael@kernel.org>,
	"Sakari Ailus" <sakari.ailus@linux.intel.com>,
	"Sean Wang" <sean.wang@mediatek.com>,
	UNGLinuxDriver@microchip.com,
	"Vivien Didelot" <vivien.didelot@gmail.com>,
	"Woojung Huh" <woojung.huh@microchip.com>
Subject: Re: [PATCH net-next 3/6] net: dsa: add support for retrieving the interface mode
Date: Thu, 21 Jul 2022 22:14:00 +0100	[thread overview]
Message-ID: <YtnBmFm8Jhokgp7Q@shell.armlinux.org.uk> (raw)
In-Reply-To: <20220721182216.z4vdaj4zfb6w3emo@skbuf>

On Thu, Jul 21, 2022 at 09:22:16PM +0300, Vladimir Oltean wrote:
> On Thu, Jul 21, 2022 at 07:21:45PM +0200, Marek Behún wrote:
> > And then came 6373X switch, which didn't support clause 37 inband AN in
> > 2500base-x mode (the AN reigster returned 0xffff or something when
> > 2500base-x CMODE was set). Maybe 6373X finally supports clause 73 AN
> > (I don't know, but I don't think so) and that is the reason they now
> > forbid clause 37 AN in HW in 2500base-x.
> > 
> > But the problem is that by this time there is software out there then
> > expects 2500base-x to have clause 37 AN enabled. Indeed a passive SFP
> > cable did not work between MOX' SFP port and CN9130-CRB's SFP port
> > when used with Peridot (6190), if C37 AN was disabled on 6393x and left
> > enabled on Peridot.
> > 
> > I managed to work out how to enable C37 AN on 6393x:
> > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=163000dbc772c1eae9bdfe7c8fe30155db1efd74
> > 
> > So currently we try to enable C37 AN in 2500base-x mode, although
> > the standard says that it shouldn't be there, and it shouldn't be there
> > presumably because they want it to work with C73 AN.
> > 
> > I don't know how to solve this issue. Maybe declare a new PHY interface
> > mode constant, 2500base-x-no-c37-an ?
> 
> So this is essentially what I'm asking, and you didn't necessarily fully
> answer. I take it that there exist Marvell switches which enable in-band
> autoneg for 2500base-x and switches which don't, and managed = "in-band-status"
> has nothing to do with that decision. Right?

I think we're getting a little too het up over this.

We have 1000base-X where, when we're not using in-band-status, we don't
use autoneg (some drivers that weren't caught in review annoyingly do
still use autoneg, but they shouldn't). We ignore the ethtool autoneg
bit.

We also have 1000base-X where we're using in-band-status, and we then
respect the ethtool autoneg bit.

So, wouldn't it be logical if 2500base-X were implemented the same way,
and on setups where 2500base-X does not support clause 37 AN, we
clear the ethtool autoneg bit? If we have 2500base-X being used as the
media link, surely this is the right behaviour?

(This has implications for the rate adaption case, since the 2500base-X
link is not the media, and therefore the state of the autoneg bit
shouldn't apply to the 2500base-X link.)

-- 
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  reply	other threads:[~2022-07-21 21:14 UTC|newest]

Thread overview: 168+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-15 16:00 [PATCH net-next 0/6] net: dsa: always use phylink Russell King (Oracle)
2022-07-15 16:00 ` Russell King (Oracle)
2022-07-15 16:01 ` [PATCH net-next 1/6] net: phylink: split out and export interface to caps translation Russell King (Oracle)
2022-07-15 16:01   ` Russell King (Oracle)
2022-07-15 16:01 ` [PATCH net-next 2/6] software node: allow named software node to be created Russell King
2022-07-15 16:01   ` Russell King
2022-07-15 19:57   ` Andy Shevchenko
2022-07-15 19:57     ` Andy Shevchenko
2022-07-15 20:17     ` Vladimir Oltean
2022-07-15 20:17       ` Vladimir Oltean
2022-07-15 20:33       ` Andy Shevchenko
2022-07-15 20:33         ` Andy Shevchenko
2022-07-15 20:48         ` Vladimir Oltean
2022-07-15 20:48           ` Vladimir Oltean
2022-07-18 12:29           ` Andy Shevchenko
2022-07-18 12:29             ` Andy Shevchenko
2022-07-18 13:27             ` Russell King (Oracle)
2022-07-18 13:27               ` Russell King (Oracle)
2022-07-18 18:43               ` Andy Shevchenko
2022-07-18 18:43                 ` Andy Shevchenko
2022-07-18 18:53                 ` Andy Shevchenko
2022-07-18 18:53                   ` Andy Shevchenko
2022-07-18 19:14                   ` Russell King (Oracle)
2022-07-18 19:14                     ` Russell King (Oracle)
2022-07-18 19:24                     ` Andy Shevchenko
2022-07-18 19:24                       ` Andy Shevchenko
2022-07-18 20:39                       ` Marek Behún
2022-07-18 20:39                         ` Marek Behún
2022-07-18 20:48                         ` Andy Shevchenko
2022-07-18 20:48                           ` Andy Shevchenko
2022-07-19  7:18                           ` Marek Behún
2022-07-19  7:18                             ` Marek Behún
2022-07-29 12:08                             ` Andy Shevchenko
2022-07-29 12:08                               ` Andy Shevchenko
2022-07-18 19:11                 ` Russell King (Oracle)
2022-07-18 19:11                   ` Russell King (Oracle)
2022-07-18 20:07                   ` Andy Shevchenko
2022-07-18 20:07                     ` Andy Shevchenko
2022-07-18 20:38                     ` Russell King (Oracle)
2022-07-18 20:38                       ` Russell King (Oracle)
2022-07-19  8:50                       ` Sakari Ailus
2022-07-19  8:50                         ` Sakari Ailus
2022-07-20 22:56                         ` Vladimir Oltean
2022-07-20 22:56                           ` Vladimir Oltean
2022-07-22  6:21                           ` Sakari Ailus
2022-07-22  6:21                             ` Sakari Ailus
2022-07-18 20:42                   ` Andrew Lunn
2022-07-18 20:42                     ` Andrew Lunn
2022-07-15 16:01 ` [PATCH net-next 3/6] net: dsa: add support for retrieving the interface mode Russell King (Oracle)
2022-07-15 16:01   ` Russell King (Oracle)
2022-07-15 17:24   ` Vladimir Oltean
2022-07-15 17:24     ` Vladimir Oltean
2022-07-15 21:31     ` Russell King (Oracle)
2022-07-15 21:31       ` Russell King (Oracle)
2022-07-15 22:23       ` Vladimir Oltean
2022-07-15 22:23         ` Vladimir Oltean
2022-07-15 22:57         ` Russell King (Oracle)
2022-07-15 22:57           ` Russell King (Oracle)
2022-07-16 10:57           ` Vladimir Oltean
2022-07-16 10:57             ` Vladimir Oltean
2022-07-16 11:13             ` Russell King (Oracle)
2022-07-16 11:13               ` Russell King (Oracle)
2022-07-16 12:36               ` Vladimir Oltean
2022-07-16 12:36                 ` Vladimir Oltean
2022-07-18  8:48                 ` Russell King (Oracle)
2022-07-18  8:48                   ` Russell King (Oracle)
2022-07-20 22:44                   ` Vladimir Oltean
2022-07-20 22:44                     ` Vladimir Oltean
2022-07-21 13:46                     ` Vladimir Oltean
2022-07-21 13:46                       ` Vladimir Oltean
2022-07-21 14:46                       ` Andrew Lunn
2022-07-21 14:46                         ` Andrew Lunn
2022-07-21 14:54                       ` Russell King (Oracle)
2022-07-21 14:54                         ` Russell King (Oracle)
2022-07-21 15:15                         ` Vladimir Oltean
2022-07-21 15:15                           ` Vladimir Oltean
2022-07-21 17:21                           ` Marek Behún
2022-07-21 17:21                             ` Marek Behún
2022-07-21 18:15                             ` Russell King (Oracle)
2022-07-21 18:15                               ` Russell King (Oracle)
2022-07-21 18:22                             ` Vladimir Oltean
2022-07-21 18:22                               ` Vladimir Oltean
2022-07-21 21:14                               ` Russell King (Oracle) [this message]
2022-07-21 21:14                                 ` Russell King (Oracle)
2022-07-21 21:36                                 ` Vladimir Oltean
2022-07-21 21:36                                   ` Vladimir Oltean
2022-07-22  8:28                                   ` Russell King (Oracle)
2022-07-22  8:28                                     ` Russell King (Oracle)
2022-07-22 10:52                                     ` Vladimir Oltean
2022-07-22 10:52                                       ` Vladimir Oltean
2022-07-22 11:44                                       ` Russell King (Oracle)
2022-07-22 11:44                                         ` Russell King (Oracle)
2022-07-22 12:14                                         ` Russell King (Oracle)
2022-07-22 12:14                                           ` Russell King (Oracle)
2022-07-22 12:46                                         ` Vladimir Oltean
2022-07-22 12:46                                           ` Vladimir Oltean
2022-07-22 13:16                                           ` Russell King (Oracle)
2022-07-22 13:16                                             ` Russell King (Oracle)
2022-07-22 16:56                                             ` Vladimir Oltean
2022-07-22 16:56                                               ` Vladimir Oltean
2022-07-22 21:20                                               ` Russell King (Oracle)
2022-07-22 21:20                                                 ` Russell King (Oracle)
2022-07-22 21:53                                                 ` Andrew Lunn
2022-07-22 21:53                                                   ` Andrew Lunn
2022-07-22 22:35                                                 ` Andrew Lunn
2022-07-22 22:35                                                   ` Andrew Lunn
2022-07-22 22:39                                                 ` Vladimir Oltean
2022-07-22 22:39                                                   ` Vladimir Oltean
2022-07-23  7:12                                                   ` Russell King (Oracle)
2022-07-23  7:12                                                     ` Russell King (Oracle)
2022-07-23 13:44                                                     ` Vladimir Oltean
2022-07-23 13:44                                                       ` Vladimir Oltean
2022-07-25 10:11                                                       ` Russell King (Oracle)
2022-07-25 10:11                                                         ` Russell King (Oracle)
2022-07-23 17:26                                                   ` Marek Behún
2022-07-23 17:26                                                     ` Marek Behún
2022-07-24 17:39                                                     ` Vladimir Oltean
2022-07-24 17:39                                                       ` Vladimir Oltean
2022-07-22 13:20                                         ` Andrew Lunn
2022-07-22 13:20                                           ` Andrew Lunn
2022-07-22 12:59                               ` Marek Behún
2022-07-22 12:59                                 ` Marek Behún
2022-07-22 13:23                                 ` Russell King (Oracle)
2022-07-22 13:23                                   ` Russell King (Oracle)
2022-07-22 14:19                                   ` Marek Behún
2022-07-22 14:19                                     ` Marek Behún
2022-07-15 16:01 ` [PATCH net-next 4/6] net: dsa: mv88e6xxx: report the default interface mode for the port Russell King (Oracle)
2022-07-15 16:01   ` Russell King (Oracle)
2022-07-15 16:01 ` [PATCH net-next 5/6] net: dsa: use swnode fixed-link if using default params Russell King (Oracle)
2022-07-15 16:01   ` Russell King (Oracle)
2022-07-15 20:11   ` Andy Shevchenko
2022-07-15 20:11     ` Andy Shevchenko
2022-07-15 21:36     ` Russell King (Oracle)
2022-07-15 21:36       ` Russell King (Oracle)
2022-07-18 18:59       ` Andy Shevchenko
2022-07-18 18:59         ` Andy Shevchenko
2022-07-18 19:13         ` Russell King (Oracle)
2022-07-18 19:13           ` Russell King (Oracle)
2022-07-18 20:08           ` Andy Shevchenko
2022-07-18 20:08             ` Andy Shevchenko
2022-07-15 16:01 ` [PATCH net-next 6/6] net: dsa: mv88e6xxx: remove handling for DSA and CPU ports Russell King (Oracle)
2022-07-15 16:01   ` Russell King (Oracle)
2022-07-15 17:17 ` [PATCH net-next 0/6] net: dsa: always use phylink Vladimir Oltean
2022-07-15 17:17   ` Vladimir Oltean
2022-07-15 20:59   ` Russell King (Oracle)
2022-07-15 20:59     ` Russell King (Oracle)
2022-07-15 23:03     ` Jakub Kicinski
2022-07-15 23:03       ` Jakub Kicinski
2022-07-16 11:15       ` Vladimir Oltean
2022-07-16 11:15         ` Vladimir Oltean
2022-07-16 11:43         ` Russell King (Oracle)
2022-07-16 11:43           ` Russell King (Oracle)
2022-07-16 13:13           ` Vladimir Oltean
2022-07-16 13:13             ` Vladimir Oltean
2022-07-18  8:53             ` Russell King (Oracle)
2022-07-18  8:53               ` Russell King (Oracle)
2022-07-18 12:45               ` Vladimir Oltean
2022-07-18 12:45                 ` Vladimir Oltean
2022-07-18 13:02                 ` Russell King (Oracle)
2022-07-18 13:02                   ` Russell King (Oracle)
2022-07-18 14:25                   ` Vladimir Oltean
2022-07-18 14:25                     ` Vladimir Oltean
2022-07-16 23:44         ` Jakub Kicinski
2022-07-16 23:44           ` Jakub Kicinski
2022-07-27  9:00 ` Marek Behún
2022-07-27  9:00   ` Marek Behún
2022-07-27 13:38   ` Vladimir Oltean
2022-07-27 13:38     ` Vladimir Oltean

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YtnBmFm8Jhokgp7Q@shell.armlinux.org.uk \
    --to=linux@armlinux.org.uk \
    --cc=Landen.Chao@mediatek.com \
    --cc=UNGLinuxDriver@microchip.com \
    --cc=alexandre.belloni@bootlin.com \
    --cc=alsi@bang-olufsen.dk \
    --cc=andrew@lunn.ch \
    --cc=andriy.shevchenko@linux.intel.com \
    --cc=claudiu.manoil@nxp.com \
    --cc=davem@davemloft.net \
    --cc=djrscally@gmail.com \
    --cc=dqfext@gmail.com \
    --cc=edumazet@google.com \
    --cc=f.fainelli@gmail.com \
    --cc=george.mccollister@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=hauke@hauke-m.de \
    --cc=heikki.krogerus@linux.intel.com \
    --cc=hkallweit1@gmail.com \
    --cc=kabel@kernel.org \
    --cc=kuba@kernel.org \
    --cc=kurt@linutronix.de \
    --cc=linus.walleij@linaro.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-mediatek@lists.infradead.org \
    --cc=matthias.bgg@gmail.com \
    --cc=netdev@vger.kernel.org \
    --cc=olteanv@gmail.com \
    --cc=pabeni@redhat.com \
    --cc=rafael@kernel.org \
    --cc=sakari.ailus@linux.intel.com \
    --cc=sean.wang@mediatek.com \
    --cc=vivien.didelot@gmail.com \
    --cc=woojung.huh@microchip.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.