-
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
As7312 54x add sfp rest and fan policy #1464
As7312 54x add sfp rest and fan policy #1464
Conversation
Signed-off-by: roylee123 <roy_lee@accton.com>
…ledd (sonic-net#1330) * Install sonic-platform-common package in platform-monitor docker for ledd * Specify Python wheel dependencies in docker-platform-monitor.mk; Remove explicit specifications from Dockerfile.j2
…to as7312_54x_add_sfp_rest_and_fan_policy
2. Validate fan control monitoring. Signed-off-by: roy_lee <roy_lee@accton.com>
|
||
# For port 48~51 are QSFP, here presumed they're all split to 4 lanes. | ||
def get_cage_num(self, port_num): | ||
cage_num = port_num |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replace tab with 4 spaces.
|
||
# For cage 0~23 and 48~51 are at cpld2, others are at cpld3. | ||
def get_cpld_num(self, port_num): | ||
cpld_i = 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replace tab with 4 spaces.
if (cage_num >= 52): | ||
cpld_i = 2 | ||
cage_num = self.get_cage_num(port_num) | ||
cpld_i = self.get_cpld_num(port_num) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replace tab with 4 spaces.
path = "/sys/bus/i2c/devices/5-0062/module_reset_{0}" | ||
port_ps = path.format(port_num+1) | ||
cage_num = self.get_cage_num(port_num) | ||
cpld_i = self.get_cpld_num(port_num) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replace tab with 4 spaces.
Signed-off-by: roy_lee <roy_lee@accton.com>
Signed-off-by: roy_lee <roy_lee@accton.com>
…to as7312_54x_add_sfp_rest_and_fan_policy Signed-off-by: roy_lee <roy_lee@accton.com> Conflicts: platform/broadcom/sonic-platform-modules-accton
Signed-off-by: roy_lee <roy_lee@accton.com>
* 1ee04fb (HEAD -> master, origin/master, origin/HEAD) Modified the tests to use mock functionality of get_child_port function under portconfig utility (#1464) * 99d251f Enable PFCWD only on ports where PFC is enabled (#1508) * eb7945f Warmboot script improvements - timeout exec, disable swss autorestart, remove trap (#1495) * c7d4947 [show] Fix int status of LAGs, configured as Vlan members (#1478) Signed-off-by: Maksym Belei <Maksym_Belei@jabil.com>
…on under portconfig utility (sonic-net#1464) Modified the tests to use mock functionality of get_child_port function under portconfig utility. This will remove the dependency of port config utility in the sonic-buildimage and make the test case more robust specific to the DPB cli utility. Signed-off-by: Sangita Maity <samaity@linkedin.com>
* 1ee04fb (HEAD -> master, origin/master, origin/HEAD) Modified the tests to use mock functionality of get_child_port function under portconfig utility (sonic-net#1464) * 99d251f Enable PFCWD only on ports where PFC is enabled (sonic-net#1508) * eb7945f Warmboot script improvements - timeout exec, disable swss autorestart, remove trap (sonic-net#1495) * c7d4947 [show] Fix int status of LAGs, configured as Vlan members (sonic-net#1478) Signed-off-by: Maksym Belei <Maksym_Belei@jabil.com>
* 1ee04fb (HEAD -> master, origin/master, origin/HEAD) Modified the tests to use mock functionality of get_child_port function under portconfig utility (sonic-net#1464) * 99d251f Enable PFCWD only on ports where PFC is enabled (sonic-net#1508) * eb7945f Warmboot script improvements - timeout exec, disable swss autorestart, remove trap (sonic-net#1495) * c7d4947 [show] Fix int status of LAGs, configured as Vlan members (sonic-net#1478) Signed-off-by: Maksym Belei <Maksym_Belei@jabil.com>
…random MAC. (sonic-net#1464) Signed-off-by: Sun Dandan <sundandan@asterfusion.com>
- What I did
- How I did it
Add driver to provide reset device nodes and update sfputil.py for them.
Rectify thermal-policy script to fit as7312-54x's HW spec.
- How to verify it
After any of sensors rose to more than 50dC, fans run at full speed.
Remove blocking board to test temperature dropping.
- Description for the changelog