linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: "Russell King (Oracle)" <linux@armlinux.org.uk>
To: Giammarco lynx <stich86@gmail.com>
Cc: linux-arm-kernel@lists.infradead.org
Subject: Re: Fwd: Question abount VSOL/CarlitoxxPro SFP Patch on Marvell Armada (MCBIN DS)
Date: Tue, 8 Mar 2022 12:12:54 +0000	[thread overview]
Message-ID: <YidIRtfk52PryXVQ@shell.armlinux.org.uk> (raw)
In-Reply-To: <CAJbjdrQvvOPEPq442rGfdHK5QHVLkMTX=+T=LwSi7x70B_nenQ@mail.gmail.com>

On Tue, Mar 08, 2022 at 12:54:09PM +0100, Giammarco lynx wrote:
> Hi Russell,
> 
> here is the output of devmem without sfp-bus.c quirk:
> 
> root@mcbin:~# devmem 0xf4133e10
> 0x0000600A

So yes, bit 14 is set, meaning it's in sync, but negotiation has not
completed. I think that probably means my theory that the module is
operating in SGMII mode is likely to be correct.

I would need to check, but I would guess that u-boot configures eth3
for SGMII at boot (despite it always being connected to a SFP cage
which doesn't actually make that much sense) and the SFP module
detects that the host is in SGMII mode at boot, and locks itself to
that.

When the kernel boots, it reconfigures the interface to be in
1000base-X mode, which would be way more sensible for the SFP cage
given that SFPs are normally used for fibre, and the GPON module
no longer links.

If we were to add hacks so that this module caused the mcbin to stay
in SGMII mode, this would break existing systems where the host
boots in 1000base-X mode, causing the module to lock to 1000base-X.
So, there is no solution here for the kernel that will work for
everyone.

This also means that what mode the module is in will depend on what
module was _previously_ inserted in the SFP cage, since that will
determine the host configuration at the point when the module is
inserted.

I guess the module has been designed with the assumption that the
host it is plugged into will only be capable of operating with a
single protocol.

I can't see a clean solution to this one that will work for everyone.
Sorry.

-- 
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-03-08 12:14 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) [this message]
     [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
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=YidIRtfk52PryXVQ@shell.armlinux.org.uk \
    --to=linux@armlinux.org.uk \
    --cc=linux-arm-kernel@lists.infradead.org \
    --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;
as well as URLs for NNTP newsgroup(s).