MacchiatoBIN DoubleShot + SFP GPON

Hi all,

i’m doing some tests with MacchiatoBIN DS and various SFP GPON on the 2.5Gbit/s SFP cage.
Test were successful with Huawei MA5671 in 2500Base-X mode, now i’m trying to make it work with VSOL 2801F (same as CarlitoX V2.0).

I’ve found this thread that is changing some quirks for another SFP GPON (Sercom FGS-202):

I’ve made same changes for my VSOL 2801F but without success. The SFP port is not enabled :frowning:

Putting some logs in the various phases of sfp.c kernel driver here is the output:

root@mcbin:~# dmesg | grep eth3
[    3.035066] mvpp2 f4000000.ethernet eth3: Using firmware node mac address 00:51:82:11:22:03
[   11.873853] sfp sfp-eth3: Host maximum power 2.0W
[   11.878594] sfp sfp-eth3: SFP_S_DOWN
[   11.882513] sfp sfp-eth3: SFP_MOD_PROBE
[   11.886367] sfp sfp-eth3: SFP_S_DOWN
[   12.189648] sfp sfp-eth3: SFP_MOD_PROBE
[   12.201279] sfp sfp-eth3: Detected broken RTL8672/RTL9601C emulated EEPROM
[   12.208182] sfp sfp-eth3: Switching to reading EEPROM to one byte at a time
[   12.255376] sfp sfp-eth3: module OEM              V2801F           rev 1.0  sn 202101195032     dc 210119
[   12.265160] sfp sfp-eth3: module_t_start_up
[   12.269361] sfp sfp-eth3: SFP_MOD_WAITDEV
[   12.273396] mvpp2 f4000000.ethernet eth3: switched to inband/1000base-x link mode
[   12.280912] sfp sfp-eth3: SFP_S_DOWN
[   12.284503] sfp sfp-eth3: skipping hwmon device registration due to broken EEPROM
[   12.292018] sfp sfp-eth3: diagnostic EEPROM area cannot be read atomically to guarantee data coherency
[  493.248711] mvpp2 f4000000.ethernet eth3: configuring for inband/1000base-x link mode
[  493.257761] sfp sfp-eth3: SFP_MOD_PRESENT
[  493.261796] sfp sfp-eth3: SFP_MOD_ERROR
[  493.265648] sfp sfp-eth3: SFP_S_DOWN
[  493.319654] sfp sfp-eth3: SFP_MOD_PRESENT
[  493.323685] sfp sfp-eth3: SFP_MOD_ERROR
[  493.327535] sfp sfp-eth3: SFP_S_WAIT
[  493.331133] sfp sfp-eth3: event == SFP_E_TIMEOUT
[  493.335795] sfp sfp-eth3: SFP_F_TX_FAULT bit basso
[  493.340634] sfp sfp-eth3: sfp_sm_link_check_los
[  493.345183] sfp sfp-eth3: los ok

So the SFP should be enabled. This stick is working on normal media converter and on my Unifi Switch. So there is something missing in the PHY negotiation.

Here is a dump of EEPROM:

root@mcbin:~# ethtool -m eth3
	Identifier                                : 0x03 (SFP)
	Extended identifier                       : 0x04 (GBIC/SFP defined by 2-wire interface ID)
	Connector                                 : 0x01 (SC)
	Transceiver codes                         : 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
	Encoding                                  : 0x03 (NRZ)
	BR, Nominal                               : 1200MBd
	Rate identifier                           : 0x00 (unspecified)
	Length (SMF,km)                           : 20km
	Length (SMF)                              : 20000m
	Length (50um)                             : 0m
	Length (62.5um)                           : 0m
	Length (Copper)                           : 0m
	Length (OM3)                              : 0m
	Laser wavelength                          : 1310nm
	Vendor name                               : OEM
	Vendor OUI                                : 00:00:00
	Vendor PN                                 : V2801F
	Vendor rev                                : 1.0
	Option values                             : 0x00 0x1c
	Option                                    : RX_LOS implemented, inverted
	Option                                    : TX_FAULT implemented
	Option                                    : TX_DISABLE implemented
	BR margin, max                            : 0%
	BR margin, min                            : 0%
	Vendor SN                                 : 202101195032
	Date code                                 : 210119
	Optical diagnostics support               : Yes
	Laser bias current                        : 16.574 mA
	Laser output power                        : 1.4542 mW / 1.63 dBm
	Receiver signal average optical power     : 0.0408 mW / -13.89 dBm
	Module temperature                        : 61.15 degrees C / 142.07 degrees F
	Module voltage                            : 3.3241 V
	Alarm/warning flags implemented           : Yes
	Laser bias current high alarm             : Off
	Laser bias current low alarm              : Off
	Laser bias current high warning           : Off
	Laser bias current low warning            : Off
	Laser output power high alarm             : Off
	Laser output power low alarm              : Off
	Laser output power high warning           : Off
	Laser output power low warning            : Off
	Module temperature high alarm             : Off
	Module temperature low alarm              : Off
	Module temperature high warning           : Off
	Module temperature low warning            : Off
	Module voltage high alarm                 : Off
	Module voltage low alarm                  : Off
	Module voltage high warning               : Off
	Module voltage low warning                : Off
	Laser rx power high alarm                 : Off
	Laser rx power low alarm                  : Off
	Laser rx power high warning               : Off
	Laser rx power low warning                : Off
	Laser bias current high alarm threshold   : 75.000 mA
	Laser bias current low alarm threshold    : 1.000 mA
	Laser bias current high warning threshold : 70.000 mA
	Laser bias current low warning threshold  : 3.000 mA
	Laser output power high alarm threshold   : 3.1622 mW / 5.00 dBm
	Laser output power low alarm threshold    : 1.1220 mW / 0.50 dBm
	Laser output power high warning threshold : 2.8183 mW / 4.50 dBm
	Laser output power low warning threshold  : 1.2589 mW / 1.00 dBm
	Module temperature high alarm threshold   : 90.00 degrees C / 194.00 degrees F
	Module temperature low alarm threshold    : -10.00 degrees C / 14.00 degrees F
	Module temperature high warning threshold : 85.00 degrees C / 185.00 degrees F
	Module temperature low warning threshold  : -5.00 degrees C / 23.00 degrees F
	Module voltage high alarm threshold       : 3.6000 V
	Module voltage low alarm threshold        : 3.0000 V
	Module voltage high warning threshold     : 3.4700 V
	Module voltage low warning threshold      : 3.1299 V
	Laser rx power high alarm threshold       : 0.1584 mW / -8.00 dBm
	Laser rx power low alarm threshold        : 0.0015 mW / -28.24 dBm
	Laser rx power high warning threshold     : 0.1258 mW / -9.00 dBm
	Laser rx power low warning threshold      : 0.0019 mW / -27.21 dBm

If needed I can also dump in raw format.

Thanks in advance for the help

you would need to enable debugging for the phy and phylink layers to get a better idea of why the device is not being enabled. We can look at your logs, however you would probably have a more productive conversation on the netdev mailing list. With the other broken GPON modules the customer did not work through us but discussed with Russell King directly. Since there are already patches and there is a long historic discussion the other developers that worked on this problem for other GPON modules would probably have better insight to what is broken regarding this module.

yes i’m talking with Russell.

At the moment the only way to brings up the SFP port is to un-plug/plug the stick after an “ifconfig eth3 up”