All of lore.kernel.org
 help / color / mirror / Atom feed
From: Giammarco lynx <stich86@gmail.com>
To: "Pali Rohár" <pali@kernel.org>
Cc: "Russell King (Oracle)" <linux@armlinux.org.uk>,
	linux-arm-kernel@lists.infradead.org
Subject: Re: Question abount VSOL/CarlitoxxPro SFP Patch on Marvell Armada (MCBIN DS)
Date: Mon, 9 May 2022 13:13:04 +0200	[thread overview]
Message-ID: <CAJbjdrSAmi3uBXK0sqKJZT-RFn_pXD2jUJiGp7_4ZAVDRBeTyw@mail.gmail.com> (raw)
In-Reply-To: <20220508163137.oj5dkzbxir7vu63i@pali>

Hi Pali,

no, the stick can do 2.5GbE. Both RTL9601CI and RTL 9601D support
HiSGMII mode. I’m currently running another stick (DFP-34X-C2C) at
2.5GbE with my FTTH line here in Italy :)

the problem seems related only to SFP driver of macchiato-bin, into a
BCM57810s, the stick is working as expected ;)

Il giorno dom 8 mag 2022 alle ore 18:31 Pali Rohár <pali@kernel.org> ha scritto:
>
> Hello!
>
> On Monday 07 March 2022 23:01:18 Russell King (Oracle) wrote:
> > > > [   86.013661] sfp sfp-eth3: Detected broken RTL8672/RTL9601C emulated EEPROM
> > > > [   86.020569] sfp sfp-eth3: Switching to reading EEPROM to one byte at a time
> > > > [   86.067758] sfp sfp-eth3: module OEM              V2801F
> > > > rev 1.0  sn 202101195032     dc 210119
> > > > [   86.077555] mvpp2 f4000000.ethernet eth3: requesting link mode
> > > > inband/1000base-x with support 0000000,00000200,00000440
> > > > [   86.088390] sfp sfp-eth3: tx disable 1 -> 0
> >
> > We've now detected what the module is, and we configure for it, which
> > the EEPROM indicates it supports 1200Mbaud, which is 1G speed.
> ...
> > > > In that way it goes up. So how can we avoid this behaviour?
> >
> > Very difficult to avoid it. My guess is that when you power up the
> > system with the module inserted, it sees the interface operating at
> > 2.5G speed and locks itself to 2.5G speed.
> >
> > Eventually, our kernel boots, and sfp reads the EEPROM. The EEPROM
> > indicates that it supports 1G speed, so we switch the host interface
> > to 1000base-X, and that causes link to be lost (although I don't see
> > any sign of that happening in your debug.)
> >
> > That means that the module has decided to use 2.5G speed, but its
> > reporting it supports 1G speed in the EEPROM... so its doing something
> > different. No surprises that the link fails to come up.
> >
> > We could add an entry to the sfp_quirks[] table in sfp-bus.c for this
> > module using the sfp_quirk_2500basex function to also indicate it
> > supports 2.5G speed:
> >
> >       }, {
> >               // VSOL/CarlitoxxPro SFP can also work at 2.5G speed
> >               .part = "V2801F",
> >               .modes = sfp_quirk_2500basex,
>
> RTL8672/RTL9601C chips support only 1000base-x mode and therefore SFP
> cannot operate on CPU side at 2500base-x nor in other way at 2.5G.
>
> Trying to "force" mode to 2500base-x would not work.

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

  reply	other threads:[~2022-05-09 11:15 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAJbjdrQbAd01WmW-ZQ9d9QKAtUqbQcRkpadtfSH94o9ZUqkhAg@mail.gmail.com>
2022-03-07 16:18 ` Fwd: Question abount VSOL/CarlitoxxPro SFP Patch on Marvell Armada (MCBIN DS) Giammarco lynx
2022-03-07 17:13   ` Russell King (Oracle)
     [not found]     ` <CAJbjdrRiJMnQJEDCABOVxFyaqnSdBbq7Q-ixqBwW2ni49+gfgQ@mail.gmail.com>
     [not found]       ` <YiZZbskbuqq+I2PW@shell.armlinux.org.uk>
     [not found]         ` <CAJbjdrReN4B0XXFFLaTsPj_graAkguQPzP4xtRGbHeGozbJycQ@mail.gmail.com>
2022-03-07 20:12           ` Giammarco lynx
2022-03-07 23:01             ` Russell King (Oracle)
2022-03-08 10:08               ` Giammarco lynx
2022-03-08 11:15                 ` Russell King (Oracle)
2022-03-08 11:54                   ` Giammarco lynx
2022-03-08 12:12                     ` Russell King (Oracle)
     [not found]                       ` <CAJbjdrSRcGVavaWJHuO3_RnP8A30b_ZQS_yAUCUWKCqxrUMwLw@mail.gmail.com>
     [not found]                         ` <Yid39zuckqVLVJts@shell.armlinux.org.uk>
2022-03-08 15:51                           ` Giammarco lynx
2022-05-08 16:51                   ` Pali Rohár
2022-05-09 15:41                     ` Russell King (Oracle)
2022-05-09 17:08                       ` Pali Rohár
2022-05-09 20:27                         ` Russell King (Oracle)
2022-05-08 16:31               ` Pali Rohár
2022-05-09 11:13                 ` Giammarco lynx [this message]
2022-05-09 11:24                   ` Pali Rohár
     [not found]                 ` <dc809ba8-ec64-4ba7-a8e1-60c24bd30296@Spark>
2022-05-09 15:47                   ` Russell King (Oracle)
2022-05-08 16:38             ` Pali Rohár

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=CAJbjdrSAmi3uBXK0sqKJZT-RFn_pXD2jUJiGp7_4ZAVDRBeTyw@mail.gmail.com \
    --to=stich86@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux@armlinux.org.uk \
    --cc=pali@kernel.org \
    /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.