-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[Platform] Accton as7712 32x support oom #1327
Conversation
Signed-off-by: roylee123 <[email protected]>
Signed-off-by: roylee123 <[email protected]>
why not use the sonic sff_8436_eeprom driver instead of optoe OOM driver? Is it because of sfp support? |
Yes, it supports both QSFP and SFP. |
have you tried this patch for sfp? sonic-net/sonic-linux-kernel#20 We are moving to 4.9. We have ported sff_8436 driver to 4.9 kernel. However, this oom driver does not 4.9 kernel version. How do you plan to support 4.9 then? |
Hi, |
I believe you need to set sfp_compatible to 1 echo 1 > (your eeprom directory)/sfp_compatible |
lguohan,
If you have more questions on it, could I involve your mail into the loop? |
lguohan, I have examined the version of sff_8436 in the patch you referenced above (sonic-net/sonic-linux-kernel#20). I don't think this particular patch supports SFP at all. It doesn't have the 'sfp_compat' flag that other versions of that driver have, and it doesn't have any code to access the second i2c address (A2h or 51) that holds the majority of the SFP EEPROM data. (Search for 'i2c_new_dummy' in earlier versions, note it is missing in this version.) Finally, this version still has the reference to 'struct memory_accessor' which was removed at Linux 4.6. I don't think this version will compile under Linux 4.9. I have the same code in optoe, since optoe is based on sff_8436. I have a version that removes all the code that depends on struct memory_accessor (search for macc in optoe or in sff_8436). I think it is safe to just remove that code, but that means kernel code can no longer access the EEPROM data (user space still can). Is that OK? Specifically, does Sonic use that macc/struct memory_accessor interface to access the sff_8436 driver? If not, I can pull that code out, and submit it to Sonic. You will then have a driver that supports at least two of your switch vendors, that works for SFP and QSFP, and that works under Linux 4.9. But I need to know: Does Sonic access the optical driver through the macc interface? |
@donboll, thanks for your replying. first a few clarification.
I found the sfp_compat useful for us since in some cases we use this qsfp2sfp adapter. I believe in this case, the driver needs to dynamically detect the transceiver type which is supported in 8436 driver. also need to check if any switch verdor use macc interface to access eeprom in the kernel or not. if there is any need, would you be able to give an introduction for optoe driver in the coming Tuesday meeting 7-8AM? |
Yes, I can give an introduction Tuesday (Feb 5, 2018) at 7-8AM (PST). Please send meeting info, I can't find the meeting schedule, phone number, virtual meeting code, etc. |
@donboll, thanks for the confirmation. I have sent the meeting invite to you. |
@roylee123 , based on yesterday discussion, we plan to wait donboll to submit optoe patch on sonic-linux-kernel and let you adapt use the optoe driver in the sonic-linux-kernel. let me know if you have any concern on this? |
Good news. I'm OK with that. |
@roylee123 , optoe driver has been merged into latest sonic kernel. can you update the PR to use that? |
I see another commit from #1380 which also update accton driver submodule. can you coordinate? |
…efile. Signed-off-by: roy_lee <[email protected]>
I've removed related optoe files and test sfputil for
|
still see as7312-54x/modules/optoe.c |
you also need to update the kernel submodule to include the optoe module. |
commit message says "Replace sfp driver to optoe OOM driver.", but I still see sfp drivers in the platform driver directories, are they still used? as7312-54x/modules/accton_as7312_54x_sfp.c |
No, I'll remove it on PR #1339, New model as7312 54x . |
…tically (#17314) #### Why I did it src/sonic-sairedis ``` * 4ee9c25 - (HEAD -> master, origin/master, origin/HEAD) Add TestSwitch missing attribute (#1327) (12 hours ago) [noaOrMlnx] * 4cbbeed - Add SAI Notification support for host_tx_ready (#1307) (18 hours ago) [noaOrMlnx] ``` #### How I did it #### How to verify it #### Description for the changelog
…tically (#17454) src/sonic-sairedis * 9621316 - (HEAD -> 202311, origin/202311) [syncd] Remove notify pointers manual handling (#1326) (2 weeks ago) [Kamil Cudnik] * 4ee9c25 - Add TestSwitch missing attribute (#1327) (2 weeks ago) [noaOrMlnx] * 4cbbeed - Add SAI Notification support for host_tx_ready (#1307) (2 weeks ago) [noaOrMlnx] * 9804bd7 - Fix compilation issue due to PORT_STATE_CHANGE_QUEUE_SIZE undefined (#1324) (3 weeks ago) [Ashish Singh]
- What I did
Replace OOM sfp driver to optoe OOM driver.
- How I did it
- How to verify it
sensors
decode-syseeprom
psuutil status
sfputil show presence
sfputil reset
- Description for the changelog
Replace sfp driver to optoe OOM driver.