From: "Pali Rohár" <pali@kernel.org>
To: "Russell King (Oracle)" <linux@armlinux.org.uk>
Cc: Giammarco lynx <stich86@gmail.com>, linux-arm-kernel@lists.infradead.org
Subject: Re: Question abount VSOL/CarlitoxxPro SFP Patch on Marvell Armada (MCBIN DS)
Date: Mon, 9 May 2022 19:08:32 +0200 [thread overview]
Message-ID: <20220509170832.4wchp4tje2fvhpyh@pali> (raw)
In-Reply-To: <Ynk2Gij+5C/Hb5Mk@shell.armlinux.org.uk>
On Monday 09 May 2022 16:41:14 Russell King (Oracle) wrote:
> On Sun, May 08, 2022 at 06:51:59PM +0200, Pali Rohár wrote:
> > Russell, is there any option to ignore speed information stored in SFP
> > EEPROM and try to choose speed at linux runtime?
>
> If sfp_parse_support() fills in a support mask containing both
> 1000base-X and 2500base-X, then yes. By default, phylink will choose
> 2500base-X because that's the fastest speed. ethtool will report that
> both 1000base-X and 2500base-X is supported, and 2500base-X is being
> advertised.
>
> If you change the advertisement to 1000base-X, then phylink will switch
> to 1000base-X, and vice versa.
I see...
> > And how to correctly handle behavior of SFP module which changes speed
> > during usage time?
>
> I know of no way that a SFP module can signal to the host that its host
> interface has changed in some way. There is no provision for a module to
> state what the host interface actually is of the module - most of what
> the kernel does is heuristics based on modules that I've had available.
One GPON module which I tested, signals TX_FAULT when CPU tried to link
at wrong speed. This is just my observation, nor sure if it is
coincidence...
So when kernel set phylink to 2500base-x and GPON SFP module expected
CPU to set phylink to 1000base-x then kernel received TX_FAULT. After I
switched 2500base-x to 1000base-x TX_FAULT stopped and link started
working.
Btw, what does TX_FAULT signal means?
> SFPs suck in this regard. GPON SFPs suck way harder because they claim
> SFP MSA compliance but they always seem to be violating the SFP MSA in
> some regard.
Yes, this sucks. Importance is that GPON ONU/ONT box (either in media
box form factor or SFP form factor) is compliant to GPON standards and
then that is also compliant to the vendor OMCI extension for correct
provisioning from vendor OLT. For SFP the last importance is that it
works in vendor's media box with SFP cage. And that is all. Nobody care
about SFF standards compliance.
I do not know what we can done here. Maybe SFP subsystem should cycle
between phy modes returned by sfp_parse_support() until one start
working?
Dedicated GPON media boxes are in better shape because they have RJ45
with copper ethernet over twisted pair and this has standardized
autonegotiation of speed. So here if provisioning force speed 1Gbps then
on LAN RJ45 port is mode changed to 1000base-t.
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2022-05-09 17:09 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 [this message]
2022-05-09 20:27 ` Russell King (Oracle)
2022-05-08 16:31 ` Pali Rohár
2022-05-09 11:13 ` Giammarco lynx
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=20220509170832.4wchp4tje2fvhpyh@pali \
--to=pali@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux@armlinux.org.uk \
--cc=stich86@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox