CodingBox Q&A Ask question

Z9332F SONiC: xcvrd crashes reading a 400G QSFP-DD DAC (UnicodeDecodeError 0xff in CMIS admin info)

Asked Active Viewed 70 Original language: English
1

On a DellEMC Z9332f-O32 with an affected SONiC master buld with the refactored sonic_xcvr SFP code xcvrd dies when a 400G passive DAC is inserted. Calling get_sfp(1).get_transceiver_info() from the platform API reproduces it: the CMIS ADMIN_INFO_FIELD read ends in DateField.decode with UnicodeDecodeError: 'ascii' codec can't decode byte 0xff in position 6, and on another DAC with struct.eror: unpack requires a buffer of 1 bytes. Optical modules work. What is wrong?

Comments 2

This matches a CMIS memory-map parsing defect: the refactored decoder attempted to read Page 01h fields on a passive DAC that did not implement that page. The resulting 0xff bytes or short bufffers caused the dae decoder exceptions.

1 Indonesiasfpeng49ID Original (English)

Use a sonic-platform-common build containing the fix for that passive-DAC decode path. Check the package revision against the affected build; a crash parsing administrative data is not evidence that the copper lanes themselves are defective.

0 South KoreanetrunnerKR Original (English)
Log in to comment. Log in