dentproject / dentOS

dentOS SwitchDev based NOS
Other
199 stars 58 forks source link

GBIC module OPNEXT TRS5020EN-S301 does not work #262

Open paulmenzel opened 10 months ago

paulmenzel commented 10 months ago

On the Edgecore AS5114-48X using DentOS (DENT OS DENTOS-HEAD, 2023-06-22.21:43-d97c46b), the GBIC below is recognized but does not work otherwise. The link stays down:

module OPNEXT,INC       TRS5020EN-S301   rev 0000 sn 0852A-81046      dc 08122600
# onlpdump # problematic GBIC already removed
   System Information: = {
       Product Name: AS5114-48X-O-AC-F-EC
       Part Number: FP1EC5114001Z
       Serial Number: 511448X2042091
       MAC: 34:ef:b6:ec:30:e6
       MAC Range: 65
       Manufacturer: Accton
       Manufacture Date: 11/04/2020 11:21:24
       Vendor: Edgecore
       Platform Name: arm64-accton_as5114_48x-r0
       Label Revision: R01A
       Country Code: TW
       Diag Version: 00.0b.01.01
       ONIE Version: 2020.02.00.10
   }
   thermal @ 1 = {
       Description: Thermal 1 - U28_A385 (0x48)
       Status: 0x00000001 [ PRESENT ]
       Caps:   0x0000000f [ GET_TEMPERATURE,GET_WARNING_THRESHOLD,GET_ERROR_THRESHOLD,GET_SHUTDOWN_THRESHOLD ]
       Temperature: 25500
       thresholds = {
           Warning: 45000
           Error: 55000
           Shutdown: 60000
       }
   }
   thermal @ 2 = {
       Description: Thermal 2 - U39_MGMT (0x49)
       Status: 0x00000001 [ PRESENT ]
       Caps:   0x0000000f [ GET_TEMPERATURE,GET_WARNING_THRESHOLD,GET_ERROR_THRESHOLD,GET_SHUTDOWN_THRESHOLD ]
       Temperature: 24000
       thresholds = {
           Warning: 45000
           Error: 55000
           Shutdown: 60000
       }
   }
   thermal @ 3 = {
       Description: Thermal 3 - U29_MAC (0x4B)
       Status: 0x00000001 [ PRESENT ]
       Caps:   0x0000000f [ GET_TEMPERATURE,GET_WARNING_THRESHOLD,GET_ERROR_THRESHOLD,GET_SHUTDOWN_THRESHOLD ]
       Temperature: 31500
       thresholds = {
           Warning: 45000
           Error: 55000
           Shutdown: 60000
       }
   }
   thermal @ 4 = {
       Description: Thermal 4 - U1_A7K (0x4C)
       Status: 0x00000001 [ PRESENT ]
       Caps:   0x0000000f [ GET_TEMPERATURE,GET_WARNING_THRESHOLD,GET_ERROR_THRESHOLD,GET_SHUTDOWN_THRESHOLD ]
       Temperature: 28500
       thresholds = {
           Warning: 45000
           Error: 55000
           Shutdown: 60000
       }
   }
   thermal @ 5 = {
       Description: CPU Core (A7K)
       Status: 0x00000001 [ PRESENT ]
       Caps:   0x0000000f [ GET_TEMPERATURE,GET_WARNING_THRESHOLD,GET_ERROR_THRESHOLD,GET_SHUTDOWN_THRESHOLD ]
       Temperature: 25500
       thresholds = {
           Warning: 45000
           Error: 55000
           Shutdown: 60000
       }
   }
   led @ 1 = {
       Description: Chassis LED 1 (PSU LED)
       Status: 0x00000005 [ PRESENT,ON ]
       Caps:   0x00400001 [ ON_OFF,AUTO ]
       Mode: AUTO
       Char: 
   }
   psu @ 1 = {
       Description: PSU-1
       Model:  NULL
       SN:     NULL
       Status: 0x00000001 [ PRESENT ]
       Caps:   0x00000000
       Vin:    0
       Vout:   0
       Iin:    0
       Iout:   0
       Pin:    0
       Pout:   0
   }
   psu @ 2 = {
       Description: PSU-2
       Model:  NULL
       SN:     NULL
       Status: 0x00000001 [ PRESENT ]
       Caps:   0x00000000
       Vin:    0
       Vout:   0
       Iin:    0
       Iout:   0
       Pin:    0
       Pout:   0
   }
   fan @ 1 = {
       Description: Chassis Fan - 1
       Status: 0x00000009 [ PRESENT,F2B ]
       Caps:   0x00000038 [ SET_PERCENTAGE,GET_RPM,GET_PERCENTAGE ]
       RPM:    10114
       Per:    49
       Model:  NULL
       SN:     NULL
   }
   fan @ 2 = {
       Description: Chassis Fan - 2
       Status: 0x00000009 [ PRESENT,F2B ]
       Caps:   0x00000038 [ SET_PERCENTAGE,GET_RPM,GET_PERCENTAGE ]
       RPM:    10019
       Per:    48
       Model:  NULL
       SN:     NULL
   }
   fan @ 3 = {
       Description: Chassis Fan - 3
       Status: 0x00000009 [ PRESENT,F2B ]
       Caps:   0x00000038 [ SET_PERCENTAGE,GET_RPM,GET_PERCENTAGE ]
       RPM:    10019
       Per:    48
       Model:  NULL
       SN:     NULL
   }
   fan @ 4 = {
       Description: Chassis Fan - 4
       Status: 0x00000009 [ PRESENT,F2B ]
       Caps:   0x00000038 [ SET_PERCENTAGE,GET_RPM,GET_PERCENTAGE ]
       RPM:    10019
       Per:    48
       Model:  NULL
       SN:     NULL
   }
   fan @ 5 = {
       Description: Chassis Fan - 5
       Status: 0x00000009 [ PRESENT,F2B ]
       Caps:   0x00000038 [ SET_PERCENTAGE,GET_RPM,GET_PERCENTAGE ]
       RPM:    9923
       Per:    48
       Model:  NULL
       SN:     NULL
   }

SFPs:
  Presence Bitmap: 6 7 8 9 10 48 
  RX_LOS Bitmap: 6 7 8 9 10 

Port 01: Missing.
Port 02: Missing.
Port 03: Missing.
Port 04: Missing.
Port 05: Missing.
Port 06: Present, Status = 0x00000004 [ RX_LOS ]
eeprom:
  0000: 03 04 07 10 00 00 00 00 00 00 00 06 67 00 00 00 
  0010: 08 03 00 1e 42 52 4f 43 41 44 45 20 20 20 20 20 
  0020: 20 20 20 20 00 00 05 1e 35 37 2d 30 30 30 30 30 
  0030: 37 35 2d 30 31 20 20 20 41 20 20 20 03 52 00 c0 
  0040: 00 1a 00 00 41 41 41 32 31 32 34 37 33 36 31 33 
  0050: 37 33 32 20 31 32 31 31 32 37 20 20 68 f0 03 2f 
  0060: 41 46 42 52 2d 37 30 33 41 53 44 5a 2d 42 52 33 
  0070: 00 00 00 00 00 00 00 00 00 00 00 00 32 00 00 00 
  0080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
  0090: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
  00a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
  00b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
  00c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
  00d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
  00e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
  00f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
Port 07: Present, Status = 0x00000004 [ RX_LOS ]
eeprom:
  0000: 03 04 07 10 00 00 00 00 00 00 00 06 67 00 00 00 
  0010: 08 03 00 1e 46 6f 75 6e 64 72 79 20 4e 65 74 77 
  0020: 6f 72 6b 73 00 00 05 1e 47 42 49 43 2d 53 46 50 
  0030: 2b 53 52 2d 42 20 20 20 42 34 20 20 03 52 00 10 
  0040: 00 1a 00 00 4d 34 30 36 34 37 34 32 20 20 20 20 
  0050: 20 20 20 20 31 34 31 32 30 39 20 20 68 f0 03 9e 
  0060: 46 6f 75 6e 64 72 79 20 4e 65 74 77 6f 72 6b 73 
  0070: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 
  0080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
  0090: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
  00a0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
  00b0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
  00c0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
  00d0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
  00e0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
  00f0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
Port 08: Present, Status = 0x00000004 [ RX_LOS ]
eeprom:
  0000: 03 04 07 10 00 00 00 00 00 00 00 06 67 00 00 00 
  0010: 08 03 00 1e 42 52 4f 43 41 44 45 20 20 20 20 20 
  0020: 20 20 20 20 00 00 05 1e 35 37 2d 30 30 30 30 30 
  0030: 37 35 2d 30 31 20 20 20 41 20 20 20 03 52 00 c0 
  0040: 00 1a 00 00 41 41 41 32 31 30 33 39 33 30 31 33 
  0050: 32 33 31 20 31 30 31 30 30 32 20 20 68 f0 03 18 
  0060: 41 46 42 52 2d 37 30 33 41 53 44 5a 2d 42 52 33 
  0070: 00 00 00 00 00 00 00 00 00 00 00 00 32 00 00 00 
  0080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
  0090: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
  00a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
  00b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
  00c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
  00d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
  00e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
  00f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
Port 09: Present, Status = 0x00000004 [ RX_LOS ]
eeprom:
  0000: 03 04 07 10 00 00 00 00 00 00 00 06 67 00 00 00 
  0010: 08 03 00 1e 42 52 4f 43 41 44 45 20 20 20 20 20 
  0020: 20 20 20 20 00 00 05 1e 35 37 2d 30 30 30 30 30 
  0030: 37 35 2d 30 31 20 20 20 41 20 20 20 03 52 00 c0 
  0040: 00 1a 00 00 41 41 46 32 31 31 32 31 30 30 30 30 
  0050: 4b 39 31 20 31 31 30 35 31 39 20 20 68 f0 03 3a 
  0060: 46 54 4c 58 38 35 37 31 44 33 42 4e 4c 2d 42 32 
  0070: 20 20 20 20 20 20 20 20 20 20 20 20 32 20 20 20 
  0080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
  0090: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
  00a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
  00b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
  00c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
  00d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
  00e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
  00f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
Port 10: Present, Status = 0x00000004 [ RX_LOS ]
eeprom:
  0000: 03 04 07 10 00 00 00 00 00 00 00 06 67 00 00 00 
  0010: 08 03 00 1e 46 6f 75 6e 64 72 79 20 4e 65 74 77 
  0020: 6f 72 6b 73 00 00 05 1e 47 42 49 43 2d 53 46 50 
  0030: 2b 53 52 2d 42 20 20 20 42 34 20 20 03 52 00 10 
  0040: 00 1a 00 00 4d 34 30 39 33 30 31 32 20 20 20 20 
  0050: 20 20 20 20 31 35 31 31 32 35 20 20 68 f0 03 94 
  0060: 46 6f 75 6e 64 72 79 20 4e 65 74 77 6f 72 6b 73 
  0070: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 
  0080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
  0090: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
  00a0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
  00b0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
  00c0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
  00d0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
  00e0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
  00f0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
Port 11: Missing.
Port 12: Missing.
Port 13: Missing.
Port 14: Missing.
Port 15: Missing.
Port 16: Missing.
Port 17: Missing.
Port 18: Missing.
Port 19: Missing.
Port 20: Missing.
Port 21: Missing.
Port 22: Missing.
Port 23: Missing.
Port 24: Missing.
Port 25: Missing.
Port 26: Missing.
Port 27: Missing.
Port 28: Missing.
Port 29: Missing.
Port 30: Missing.
Port 31: Missing.
Port 32: Missing.
Port 33: Missing.
Port 34: Missing.
Port 35: Missing.
Port 36: Missing.
Port 37: Missing.
Port 38: Missing.
Port 39: Missing.
Port 40: Missing.
Port 41: Missing.
Port 42: Missing.
Port 43: Missing.
Port 44: Missing.
Port 45: Missing.
Port 46: Missing.
Port 47: Missing.
Port 48: Present, Status = 0x00000000
eeprom:
  0000: 03 04 07 10 00 00 00 00 00 00 00 06 67 00 00 00 
  0010: 08 03 00 1e 42 52 4f 43 41 44 45 20 20 20 20 20 
  0020: 20 20 20 20 00 00 05 1e 35 37 2d 30 30 30 30 30 
  0030: 37 35 2d 30 31 20 20 20 41 20 20 20 03 52 00 c0 
  0040: 00 1a 00 00 41 41 41 32 31 32 32 30 33 34 31 35 
  0050: 36 36 32 20 31 32 30 35 31 36 20 20 68 f0 03 29 
  0060: 41 46 42 52 2d 37 30 33 41 53 44 5a 2d 42 52 33 
  0070: 00 00 00 00 00 00 00 00 00 00 00 00 32 00 00 00 
  0080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
  0090: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
  00a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
  00b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
  00c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
  00d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
  00e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
  00f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
KanjiMonster commented 10 months ago

Do you see any (error) messages in the kernel log?

paulmenzel commented 10 months ago

Unfortunately, I do not.

# dmesg --level=crit,alert,err,warn
[   22.907003] lm75 1-004c: supply vs not found, using dummy regulator
[   48.944380] process '/sbin/netplugd' started with executable stack
  1. Truncated output of dmesg
  2. journalctl -o short-monotonic -k (also truncated)
KanjiMonster commented 10 months ago

Also can you please provide an onlpdump with the module inserted to have its eeprom contents?

paulmenzel commented 10 months ago

Sure.

Port 17: Present, Status = 0x00000004 [ RX_LOS ]
eeprom:
  0000: 03 04 07 20 00 00 00 00 00 00 00 06 67 00 0a 64 
  0010: 00 00 00 00 4f 50 4e 45 58 54 2c 49 4e 43 20 20 
  0020: 20 20 20 20 00 00 0b 40 54 52 53 35 30 32 30 45 
  0030: 4e 2d 53 33 30 31 20 20 30 30 30 30 05 1e 00 82 
  0040: 00 1a 00 00 30 38 35 32 41 2d 38 31 30 34 36 20 
  0050: 20 20 20 20 30 38 31 32 32 36 30 30 68 f0 03 e8 
  0060: 45 58 54 52 45 4d 45 20 4c 52 20 20 20 20 20 20 
  0070: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 
  0080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
  0090: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
  00a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
  00b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
  00c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
  00d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
  00e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
  00f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00