Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DellEMC: optoe driver support in S6000,S6100,Z9100 #3747

Merged
merged 1 commit into from
Nov 14, 2019

Conversation

aravindmani-1
Copy link
Contributor

@aravindmani-1 aravindmani-1 commented Nov 13, 2019

- What I did

  • Changed sff84xx driver to optoe driver.

- How I did it

  • Changed the platform init script to support optoe driver.

- How to verify it

  • Check sfp presence,eeprom,dom information and also check whether xcvrd is running fine.
  • Reboot the device,do OIR and check sfpshow commands

- Description for the changelog

  • optoe driver truncates invalid pages(ff) but sff driver doesn't truncate.so,the DOM related calculation made by sff8436 driver will show incorrect data.
  • Few optics doesn't support DOM.
  • SFP plugins currently returns None for unreadable pages and this'd throw the below mentioned error in sfpshow eeprom --dom.

root@sonic:/sys/class/i2c-adapter/i2c-32/32-0050# sfpshow eeprom -p Ethernet1 -d
Traceback (most recent call last):
File "/usr/bin/sfpshow", line 358, in
cli()
File "/usr/lib/python2.7/dist-packages/click/core.py", line 722, in call
return self.main(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/usr/lib/python2.7/dist-packages/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python2.7/dist-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python2.7/dist-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/usr/bin/sfpshow", line 348, in eeprom
sfp.display_eeprom(port, dump_dom)
File "/usr/bin/sfpshow", line 293, in display_eeprom
out_put = self.convert_interface_sfp_info_to_cli_output_string(self.sdb, interfacename, dump_dom)
File "/usr/bin/sfpshow", line 282, in convert_interface_sfp_info_to_cli_output_string
dom_output = self.convert_dom_to_output_string(sfp_type, dom_info_dict)
File "/usr/bin/sfpshow", line 186, in convert_dom_to_output_string
channel_threshold_align)
File "/usr/bin/sfpshow", line 146, in format_dict_value_to_string
if dom_info_dict is not None and dom_info_dict[key] != 'N/A':
KeyError: 'rxpowerhighalarm'

  • To fix it,return dictionary itself with 'N/A' values as it's been handled in sfpshow script.

  • Changed the wrong DOM offset used in Z9264f

UT logs:
S6000_UT.txt
s6100_UT.txt
Z9100_UT.txt
Z9264f_UT.txt

@lguohan lguohan merged commit 4f35a81 into sonic-net:master Nov 14, 2019
@aravindmani-1 aravindmani-1 deleted the optoe_driver_changes branch November 14, 2019 09:50
@aravindmani-1 aravindmani-1 restored the optoe_driver_changes branch November 14, 2019 09:56
@aravindmani-1 aravindmani-1 deleted the optoe_driver_changes branch December 13, 2019 07:26
zhenggen-xu pushed a commit to zhenggen-xu/sonic-buildimage that referenced this pull request Jan 10, 2020
- optoe driver truncates invalid pages(ff) but sff driver doesn't truncate.so,the DOM related calculation made by sff8436 driver will show incorrect data.
- Few optics doesn't support DOM.
- SFP plugins currently returns None for unreadable pages and this'd throw the below mentioned error in sfpshow eeprom --dom.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants