floodlight / bigcode

Other
11 stars 47 forks source link

QSFP plugable not detected correctly #97

Closed pudelkoM closed 4 years ago

pudelkoM commented 4 years ago

We (Stratum) are using this project through ONLP and encountered errors with some of our QSFP DACs. When parsing the EEPROM, we get this error message: 02-24 18:48:27.404405 [sff] sff_info_valid() failed: invalid module type, which seems to come from here: https://github.com/floodlight/bigcode/blob/master/modules/sff/module/src/sff.c#L732

Is this a driver issue or a non-compliant firmware? Other than that, the cable works fine.

Here is the EEPROM:

00000000: 0d00 23ff ffff ffff ffff ffff ffff ffff  ..#.............
00000010: ffff ffff ffff ffff ffff ffff ffff ffff  ................
00000020: ffff ffff ffff ffff ffff ffff ffff ffff  ................
00000030: ffff ffff ffff ffff ffff ffff ffff ffff  ................
00000040: ffff ffff ffff ffff ffff ffff ffff ffff  ................
00000050: ffff ffff ffff 0fff ffff ffff ffff ffff  ................
00000060: ffff ffff ffff ffff ffff ffff ffff ffff  ................
00000070: ffff ffff ffff ffff ffff ffff ffff ff00  ................
00000080: 1100 2380 0000 0000 0000 0000 ff00 0000  ..#.............
00000090: 0000 01a0 4653 2020 2020 2020 2020 2020  ....FS
000000a0: 2020 2020 1f00 02c9 5132 382d 5043 3031      ....Q28-PC01
000000b0: 2020 2020 2020 2020 4120 060a 0000 462a          A ....F*
000000c0: 0b00 0000 4731 3930 3632 3836 3032 322d  ....G1906286022-
000000d0: 3220 2020 3139 3037 3232 2020 0000 008a  2   190722  ....
000000e0: 0000 11a0 9b01 ca1d 9c44 bbd7 2fdc 271e  .........D../.'.
000000f0: 28ef fc00 0000 0000 0000 0000 a653 cb54  (............S.T

Picture of the DAC:

IMG_20200224_105756~2

pudelkoM commented 4 years ago

The issue was a faulty EEPROM. We re-flashed with correct values and now it works.