Fwd: Question abount VSOL/CarlitoxxPro SFP Patch on Marvell Armada (MCBIN DS)

Giammarco lynx stich86 at gmail.com
Mon Mar 7 12:12:45 PST 2022


adding

linux-arm-kernel at lists.infradead.org

Il giorno lun 7 mar 2022 alle ore 21:09 Giammarco lynx
<stich86 at gmail.com> ha scritto:
>
> ok, doing in the way that you suggest, the link is bringing up.
> Here is the logs (without ifconfig eth3 up and module plugged):
>
> [    3.035643] mvpp2 f4000000.ethernet eth3: Using firmware node mac
> address 00:51:82:11:22:03
> [   11.872410] sfp sfp-eth3: Host maximum power 2.0W
> [   11.877149] sfp sfp-eth3: tx disable 1 -> 1
> [   11.877155] sfp sfp-eth3: SM: enter empty:detached:down event insert
> [   11.877159] sfp sfp-eth3: SM: exit probe:detached:down
> [   11.877410] sfp sfp-eth3: SM: enter probe:detached:down event dev_attach
> [   11.877414] sfp sfp-eth3: SM: exit probe:down:down
> [   12.180129] sfp sfp-eth3: SM: enter probe:down:down event timeout
> [   12.187906] sfp sfp-eth3: Detected broken RTL8672/RTL9601C emulated EEPROM
> [   12.194814] sfp sfp-eth3: Switching to reading EEPROM to one byte at a time
> [   12.242005] sfp sfp-eth3: module OEM              V2801F
> rev 1.0  sn 202101195032     dc 210119
> [   12.251800] mvpp2 f4000000.ethernet eth3: requesting link mode
> inband/1000base-x with support 0000000,00000200,00000440
> [   12.251804] mvpp2 f4000000.ethernet eth3: switched to
> inband/1000base-x link mode
> [   12.259318] sfp sfp-eth3: SM: exit present:down:down
> [   12.270123] sfp sfp-eth3: skipping hwmon device registration due to
> broken EEPROM
> [   12.277636] sfp sfp-eth3: diagnostic EEPROM area cannot be read
> atomically to guarantee data coherency
> [   35.174143] mvpp2 f4000000.ethernet eth3: configuring for
> inband/1000base-x link mode
> [   35.182026] mvpp2 f4000000.ethernet eth3: major config 1000base-x
> [   35.188158] mvpp2 f4000000.ethernet eth3: phylink_mac_config:
> mode=inband/1000base-x/Unknown/Unknown adv=0000000,00000200,00000440
> pause=04 link=0 an=1
> [   35.202945] sfp sfp-eth3: SM: enter present:down:down event dev_up
> [   35.209152] sfp sfp-eth3: tx disable 1 -> 0
> [   35.213387] sfp sfp-eth3: SM: exit present:up:wait
> [   35.280129] sfp sfp-eth3: SM: enter present:up:wait event timeout
> [   35.286253] sfp sfp-eth3: SM: exit present:up:link_up
> [   56.097724] sfp sfp-eth3: los 0 -> 1
> [   56.101324] sfp sfp-eth3: SM: enter present:up:link_up event los_high
> [   56.107792] sfp sfp-eth3: SM: exit present:up:link_up
> [   56.112876] sfp sfp-eth3: mod-def0 1 -> 0
> [   56.116903] sfp sfp-eth3: tx-fault 0 -> 1
> [   56.120933] sfp sfp-eth3: SM: enter present:up:link_up event remove
>
> Then after "ifconfig eth3 up" i've removed and reinserted the SFP,
> this is the log:
>
> [   56.127227] sfp sfp-eth3: module removed
> [   56.131175] sfp sfp-eth3: tx disable 0 -> 1
> [   56.135432] sfp sfp-eth3: SM: exit empty:up:down
> [   56.140067] sfp sfp-eth3: SM: enter empty:up:down event tx_fault
> [   56.146103] sfp sfp-eth3: SM: exit empty:up:down
> [   59.350731] sfp sfp-eth3: mod-def0 0 -> 1
> [   59.354757] sfp sfp-eth3: SM: enter empty:up:down event insert
> [   59.360619] sfp sfp-eth3: SM: exit probe:up:down
> [   59.680123] sfp sfp-eth3: SM: enter probe:up:down event timeout
> [   59.686185] sfp sfp-eth3: SM: exit probe:up:down
> [   59.800122] sfp sfp-eth3: SM: enter probe:up:down event timeout
> [   59.806179] sfp sfp-eth3: SM: exit probe:up:down
> [   59.920122] sfp sfp-eth3: SM: enter probe:up:down event timeout
> [   59.926179] sfp sfp-eth3: SM: exit probe:up:down
> [   60.040122] sfp sfp-eth3: SM: enter probe:up:down event timeout
> [   60.046178] sfp sfp-eth3: SM: exit probe:up:down
> [   60.160123] sfp sfp-eth3: SM: enter probe:up:down event timeout
> [   60.166178] sfp sfp-eth3: SM: exit probe:up:down
> [   60.270122] sfp sfp-eth3: SM: enter probe:up:down event timeout
> [   60.276177] sfp sfp-eth3: SM: exit probe:up:down
> [   60.380122] sfp sfp-eth3: SM: enter probe:up:down event timeout
> [   60.386178] sfp sfp-eth3: SM: exit probe:up:down
> [   60.500122] sfp sfp-eth3: SM: enter probe:up:down event timeout
> [   60.506177] sfp sfp-eth3: SM: exit probe:up:down
> [   60.620121] sfp sfp-eth3: SM: enter probe:up:down event timeout
> [   60.626176] sfp sfp-eth3: SM: exit probe:up:down
> [   60.740122] sfp sfp-eth3: SM: enter probe:up:down event timeout
> [   60.746177] sfp sfp-eth3: please wait, module slow to respond
> [   60.751982] sfp sfp-eth3: SM: exit probe:up:down
> [   65.840198] sfp sfp-eth3: SM: enter probe:up:down event timeout
> [   65.846262] sfp sfp-eth3: SM: exit probe:up:down
> [   70.870128] sfp sfp-eth3: SM: enter probe:up:down event timeout
> [   70.876192] sfp sfp-eth3: SM: exit probe:up:down
> [   75.920133] sfp sfp-eth3: SM: enter probe:up:down event timeout
> [   75.926196] sfp sfp-eth3: SM: exit probe:up:down
> [   80.896801] mvpp2 f4000000.ethernet eth3: mac link up
> [   80.960124] sfp sfp-eth3: SM: enter probe:up:down event timeout
> [   80.966183] sfp sfp-eth3: SM: exit probe:up:down
> [   81.330385] sfp sfp-eth3: los 1 -> 0
> [   81.333978] sfp sfp-eth3: tx-fault 1 -> 0
> [   81.338004] sfp sfp-eth3: SM: enter probe:up:down event tx_clear
> [   81.344044] sfp sfp-eth3: SM: exit probe:up:down
> [   81.348680] sfp sfp-eth3: SM: enter probe:up:down event los_low
> [   81.354629] sfp sfp-eth3: SM: exit probe:up:down
> [   86.000154] sfp sfp-eth3: SM: enter probe:up:down event timeout
> [   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
> [   86.092636] sfp sfp-eth3: SM: exit present:up:wait
> [   86.097448] sfp sfp-eth3: skipping hwmon device registration due to
> broken EEPROM
> [   86.104965] sfp sfp-eth3: diagnostic EEPROM area cannot be read
> atomically to guarantee data coherency
> [   86.160128] sfp sfp-eth3: SM: enter present:up:wait event timeout
> [   86.166252] sfp sfp-eth3: SM: exit present:up:link_up
> [   86.171404] mvpp2 f4000000.ethernet eth3: Link is Up - 1Gbps/Full -
> flow control off
> [   86.179193] IPv6: ADDRCONF(NETDEV_CHANGE): eth3: link becomes ready
>
> In that way it goes up. So how can we avoid this behaviour?
>
> Thanks
>
> Il giorno lun 7 mar 2022 alle ore 20:13 Russell King (Oracle)
> <linux at armlinux.org.uk> ha scritto:
> >
> > Please keep follow-ups on the mailing list.
> >
> > On Mon, Mar 07, 2022 at 08:04:21PM +0100, Giammarco lynx wrote:
> > > ok may be i've enabled it, here is the output:
> > >
> > > root at mcbin:~# dmesg | grep eth3
> > > [    3.035655] mvpp2 f4000000.ethernet eth3: Using firmware node mac
> > > address 00:51:82:11:22:03
> > > [   11.759569] sfp sfp-eth3: Host maximum power 2.0W
> > > [   11.764323] sfp sfp-eth3: tx disable 1 -> 1
> > > [   11.764329] sfp sfp-eth3: SM: enter empty:detached:down event insert
> > > [   11.764333] sfp sfp-eth3: SFP_S_DOWN
> > > [   11.767925] sfp sfp-eth3: SM: exit probe:detached:down
> > > [   11.768259] sfp sfp-eth3: SM: enter probe:detached:down event dev_attach
> > > [   11.768263] sfp sfp-eth3: SFP_MOD_PROBE
> > > [   11.772123] sfp sfp-eth3: SFP_S_DOWN
> > > [   11.775715] sfp sfp-eth3: SM: exit probe:down:down
> > > [   12.080088] sfp sfp-eth3: SM: enter probe:down:down event timeout
> > > [   12.080093] sfp sfp-eth3: SFP_MOD_PROBE
> > > [   12.091720] sfp sfp-eth3: Detected broken RTL8672/RTL9601C emulated EEPROM
> > > [   12.098622] sfp sfp-eth3: Switching to reading EEPROM to one byte at a time
> > > [   12.145814] sfp sfp-eth3: module OEM              V2801F
> > > rev 1.0  sn 202101195032     dc 210119
> > > [   12.155598] sfp sfp-eth3: module_t_start_up
> > > [   12.159799] sfp sfp-eth3: SFP_MOD_WAITDEV
> > > [   12.163834] mvpp2 f4000000.ethernet eth3: requesting link mode
> > > inband/1000base-x with support 0000000,00000200,00000440
> > > [   12.163838] mvpp2 f4000000.ethernet eth3: switched to
> > > inband/1000base-x link mode
> > > [   12.171354] sfp sfp-eth3: SFP_S_DOWN
> > > [   12.174944] sfp sfp-eth3: SM: exit present:down:down
> > > [   12.174949] sfp sfp-eth3: skipping hwmon device registration due to
> > > broken EEPROM
> > > [   12.182465] sfp sfp-eth3: diagnostic EEPROM area cannot be read
> > > atomically to guarantee data coherency
> > > [   58.634098] mvpp2 f4000000.ethernet eth3: configuring for
> > > inband/1000base-x link mode
> > > [   58.641979] mvpp2 f4000000.ethernet eth3: major config 1000base-x
> > > [   58.648113] mvpp2 f4000000.ethernet eth3: phylink_mac_config:
> > > mode=inband/1000base-x/Unknown/Unknown adv=0000000,00000200,00000440
> > > pause=04 link=0 an=1
> > > [   58.662900] sfp sfp-eth3: SM: enter present:down:down event dev_up
> > > [   58.669107] sfp sfp-eth3: SFP_MOD_PRESENT
> > > [   58.673137] sfp sfp-eth3: SFP_MOD_ERROR
> > > [   58.677019] sfp sfp-eth3: SFP_S_DOWN
> > > [   58.680643] sfp sfp-eth3: tx disable 1 -> 0
> > > [   58.684852] sfp sfp-eth3: SM: exit present:up:wait
> > > [   58.740088] sfp sfp-eth3: SM: enter present:up:wait event timeout
> > > [   58.746210] sfp sfp-eth3: SFP_MOD_PRESENT
> > > [   58.750243] sfp sfp-eth3: SFP_MOD_ERROR
> > > [   58.754094] sfp sfp-eth3: SFP_S_WAIT
> > > [   58.757682] sfp sfp-eth3: event == SFP_E_TIMEOUT
> > > [   58.762322] sfp sfp-eth3: SFP_F_TX_FAULT bit basso
> > > [   58.767164] sfp sfp-eth3: sfp_sm_link_check_los
> > > [   58.771715] sfp sfp-eth3: los ok
> > > [   58.774988] sfp sfp-eth3: SM: exit present:up:link_up
> > > root at mcbin:~#
> >
> > So yes, here we believe that the module is operational, but there
> > appears to be nothing from the MAC, meaning the 1000base-X link
> > didn't establish.
> >
> > If the module supports 2500base-x and 1000base-x, the problem could
> > be that the module is trying to use 2500base-x but is indicating
> > 1000base-x in its EEPROM.
> >
> > It could be trying to detect the speed at power-on time - have you
> > tried unplugging and re-plugging it after bringing the interface up?
> >
> > GPON modules seem to always be a pain to get working.
> >
> > --
> > RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
> > FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!



More information about the linux-arm-kernel mailing list