White Rabbit Switch - Gateware issueshttps://ohwr.org/project/wr-switch-hdl/issues2023-11-28T17:27:37Zhttps://ohwr.org/project/wr-switch-hdl/issues/44WRS unable to establish link occasionally2023-11-28T17:27:37ZEvangelia GousiouWRS unable to establish link occasionallyReported by Adam: 5 times out of 4203, WRS was not able to establish the link at all. In such case it does not help to unplug/plug the fiber/sfp or restart PPSI. In such case it is necessary to restart HAL (or restart WRS) to bring back WRS to the normal functionality. I suspect the problem is that for some reason LPDC does not finish.
>> What's the state of the LPDC TX/RX FSMs on a port that doesn't work?
Logs from when it was caught, it seems the problem might be on master:
2023-11-24T03:54:13.204235+00:00 ctdwa-774-cbt.cern.ch hald: <30>Info (/wr/bin/wrsw_hal):rxcal: early link flag lost on port wri8
master:
23-11-24T03:41:08.424606+00:00 ctdwa-774-cbt.cern.ch snmpd[2251]: SNMP: Error wrsPortStatusSfpError: SFP in port 10 (wri10) is not for Gigabit Ethernet
2023-11-24T03:41:08.425768+00:00 ctdwa-774-cbt.cern.ch snmpd[2251]: SNMP: Error wrsPortStatusSfpError: SFP in port 10 (wri10) is not in the database. Change the SFP or declare port as non-wr or none
2023-11-24T03:41:08.426914+00:00 ctdwa-774-cbt.cern.ch snmpd[2251]: SNMP: Error wrsPortStatusSfpError: SFP in port 16 (wri16) is not in the database. Change the SFP or declare port as non-wr or none
2023-11-24T03:41:08.431031+00:00 ctdwa-774-cbt.cern.ch snmpd[2251]: SNMP: Error wrsPTPFramesFlowing: No RX PTP frames flowing for port 16 (wri16) which is up and in WR mode
2023-11-24T03:41:16.998222+00:00 ctdwa-774-cbt.cern.ch kernel: wri8: Link down.
2023-11-24T03:41:17.604912+00:00 ctdwa-774-cbt.cern.ch rtud: <30>Info (/wr/bin/wrsw_rtud):Port wri8 went down, removing corresponding entries...
2023-11-24T03:41:27.308084+00:00 ctdwa-774-cbt.cern.ch hald: <30>Info (/wr/bin/wrsw_hal):wri8: RX calibration complete at phase 12007 ps (after 50 attempts).
2023-11-24T03:41:27.397831+00:00 ctdwa-774-cbt.cern.ch kernel: wri8: Link up, lpa 0x4020.
2023-11-24T03:41:37.001693+00:00 ctdwa-774-cbt.cern.ch hald: <30>Info (/wr/bin/wrsw_hal):port_fsm_state_link_down:wri8: bitslide= 0 [ps]
2023-11-24T03:42:00.618326+00:00 ctdwa-774-cbt.cern.ch nslcd[1957]: [b2564f] <group/member="root"> ldap_result() failed: Can't contact LDAP server
2023-11-24T03:42:00.619862+00:00 ctdwa-774-cbt.cern.ch nslcd[1957]: [b2564f] <group/member="root"> ldap_abandon() failed to abandon search: Can't contact LDAP server: Transport endpoint is not connected
2023-11-24T03:42:00.687852+00:00 ctdwa-774-cbt.cern.ch crond[2228]: USER root pid 29811 cmd /etc/init.d/system_clock_monitor
2023-11-24T03:42:06.596354+00:00 ctdwa-774-cbt.cern.ch kernel: wri8: Link down.
2023-11-24T03:42:06.702056+00:00 ctdwa-774-cbt.cern.ch rtud: <30>Info (/wr/bin/wrsw_rtud):Port wri8 went down, removing corresponding entries...
2023-11-24T03:42:11.596550+00:00 ctdwa-774-cbt.cern.ch hald: <30>Info (/wr/bin/wrsw_hal):wri8: RX calibration complete at phase 3974 ps (after 1 attempts).
2023-11-24T03:42:13.596090+00:00 ctdwa-774-cbt.cern.ch kernel: wri8: Link up, lpa 0x4020.
2023-11-24T03:42:26.498863+00:00 ctdwa-774-cbt.cern.ch hald: <30>Info (/wr/bin/wrsw_hal):port_fsm_state_link_down:wri8: bitslide= 0 [ps]
2023-11-24T03:42:52.056273+00:00 ctdwa-774-cbt.cern.ch snmpd[2251]: SNMP: Error wrsPortStatusSfpError: SFP in port 10 (wri10) is not for Gigabit Ethernet
2023-11-24T03:42:52.056458+00:00 ctdwa-774-cbt.cern.ch snmpd[2251]: SNMP: Error wrsPortStatusSfpError: SFP in port 10 (wri10) is not in the database. Change the SFP or declare port as non-wr or none
2023-11-24T03:42:52.056715+00:00 ctdwa-774-cbt.cern.ch snmpd[2251]: SNMP: Error wrsPortStatusSfpError: SFP in port 16 (wri16) is not in the database. Change the SFP or declare port as non-wr or none
2023-11-24T03:42:52.061027+00:00 ctdwa-774-cbt.cern.ch snmpd[2251]: SNMP: Error wrsPTPFramesFlowing: No RX PTP frames flowing for port 16 (wri16) which is up and in WR mode
2023-11-24T03:43:00.695657+00:00 ctdwa-774-cbt.cern.ch crond[2228]: user root: process already running: /etc/init.d/system_clock_monitor
2023-11-24T03:43:28.593270+00:00 ctdwa-774-cbt.cern.ch kernel: wri8: Link down.
2023-11-24T03:43:28.860962+00:00 ctdwa-774-cbt.cern.ch rtud: <30>Info (/wr/bin/wrsw_rtud):Port wri8 went down, removing corresponding entries...
2023-11-24T03:43:34.806532+00:00 ctdwa-774-cbt.cern.ch hald: <30>Info (/wr/bin/wrsw_hal):wri8: RX calibration complete at phase 8026 ps (after 10 attempts).
2023-11-24T03:43:45.318262+00:00 ctdwa-774-cbt.cern.ch snmpd[2251]: SNMP: Error wrsPortStatusSfpError: SFP in port 10 (wri10) is not for Gigabit Ethernet
2023-11-24T03:43:45.319554+00:00 ctdwa-774-cbt.cern.ch snmpd[2251]: SNMP: Error wrsPortStatusSfpError: SFP in port 10 (wri10) is not in the database. Change the SFP or declare port as non-wr or none
2023-11-24T03:43:45.320711+00:00 ctdwa-774-cbt.cern.ch snmpd[2251]: SNMP: Error wrsPortStatusSfpError: SFP in port 16 (wri16) is not in the database. Change the SFP or declare port as non-wr or none
2023-11-24T03:43:45.324582+00:00 ctdwa-774-cbt.cern.ch snmpd[2251]: SNMP: Error wrsPTPFramesFlowing: No RX PTP frames flowing for port 16 (wri16) which is up and in WR mode
2023-11-24T03:44:00.710447+00:00 ctdwa-774-cbt.cern.ch crond[2228]: USER root pid 29869 cmd /etc/init.d/system_clock_monitor
2023-11-24T03:44:01.749348+00:00 ctdwa-774-cbt.cern.ch snmpd[2251]: SNMP: Error wrsPortStatusSfpError: SFP in port 10 (wri10) is not for Gigabit Ethernet
2023-11-24T03:44:01.753212+00:00 ctdwa-774-cbt.cern.ch snmpd[2251]: SNMP: Error wrsPortStatusSfpError: SFP in port 10 (wri10) is not in the database. Change the SFP or declare port as non-wr or none
2023-11-24T03:44:01.754610+00:00 ctdwa-774-cbt.cern.ch snmpd[2251]: SNMP: Error wrsPortStatusSfpError: SFP in port 16 (wri16) is not in the database. Change the SFP or declare port as non-wr or none
2023-11-24T03:44:01.756598+00:00 ctdwa-774-cbt.cern.ch snmpd[2251]: SNMP: Error wrsPTPFramesFlowing: No RX PTP frames flowing for port 16 (wri16) which is up and in WR mode
it seems the problem starts here
2023-11-24T03:44:49.014203+00:00 ctdwa-774-cbt.cern.ch hald: <30>Info (/wr/bin/wrsw_hal):rxcal: early link flag lost on port wri8
2023-11-24T03:44:56.644020+00:00 ctdwa-774-cbt.cern.ch hald: <30>Info (/wr/bin/wrsw_hal):wri8: RX calibration complete at phase 4021 ps (after 21 attempts).
2023-11-24T03:45:00.719163+00:00 ctdwa-774-cbt.cern.ch crond[2228]: user root: process already running: /etc/init.d/system_clock_monitor
2023-11-24T03:45:08.367335+00:00 ctdwa-774-cbt.cern.ch snmpd[2251]: SNMP: Error wrsPortStatusSfpError: SFP in port 10 (wri10) is not for Gigabit Ethernet
2023-11-24T03:45:08.367655+00:00 ctdwa-774-cbt.cern.ch snmpd[2251]: SNMP: Error wrsPortStatusSfpError: SFP in port 10 (wri10) is not in the database. Change the SFP or declare port as non-wr or none
2023-11-24T03:45:08.367832+00:00 ctdwa-774-cbt.cern.ch snmpd[2251]: SNMP: Error wrsPortStatusSfpError: SFP in port 16 (wri16) is not in the database. Change the SFP or declare port as non-wr or none
2023-11-24T03:45:08.372718+00:00 ctdwa-774-cbt.cern.ch snmpd[2251]: SNMP: Error wrsPTPFramesFlowing: No RX PTP frames flowing for port 16 (wri16) which is up and in WR mode
2023-11-24T03:46:00.730065+00:00 ctdwa-774-cbt.cern.ch crond[2228]: USER root pid 29961 cmd /etc/init.d/system_clock_monitor
2023-11-24T03:46:09.908481+00:00 ctdwa-774-cbt.cern.ch hald: <30>Info (/wr/bin/wrsw_hal):rxcal: early link flag lost on port wri8
2023-11-24T03:46:17.307324+00:00 ctdwa-774-cbt.cern.ch hald: <30>Info (/wr/bin/wrsw_hal):wri8: RX calibration complete at phase 7958 ps (after 18 attempts).
2023-11-24T03:46:51.137965+00:00 ctdwa-774-cbt.cern.ch sshd[29983]: Connection closed by 172.18.203.151
2023-11-24T03:46:51.958644+00:00 ctdwa-774-cbt.cern.ch snmpd[2251]: SNMP: Error wrsPortStatusSfpError: SFP in port 10 (wri10) is not for Gigabit Ethernet
2023-11-24T03:46:51.959773+00:00 ctdwa-774-cbt.cern.ch snmpd[2251]: SNMP: Error wrsPortStatusSfpError: SFP in port 10 (wri10) is not in the database. Change the SFP or declare port as non-wr or none
2023-11-24T03:46:51.960917+00:00 ctdwa-774-cbt.cern.ch snmpd[2251]: SNMP: Error wrsPortStatusSfpError: SFP in port 16 (wri16) is not in the database. Change the SFP or declare port as non-wr or none
2023-11-24T03:46:51.964930+00:00 ctdwa-774-cbt.cern.ch snmpd[2251]: SNMP: Error wrsPTPFramesFlowing: No RX PTP frames flowing for port 16 (wri16) which is up and in WR mode
2023-11-24T03:47:00.738632+00:00 ctdwa-774-cbt.cern.ch crond[2228]: user root: process already running: /etc/init.d/system_clock_monitor
2023-11-24T03:47:30.402493+00:00 ctdwa-774-cbt.cern.ch hald: <30>Info (/wr/bin/wrsw_hal):rxcal: early link flag lost on port wri8
2023-11-24T03:47:38.635117+00:00 ctdwa-774-cbt.cern.ch hald: <30>Info (/wr/bin/wrsw_hal):wri8: RX calibration complete at phase 11962 ps (after 28 attempts).
2023-11-24T03:47:45.317432+00:00 ctdwa-774-cbt.cern.ch snmpd[2251]: SNMP: Error wrsPortStatusSfpError: SFP in port 10 (wri10) is not for Gigabit Ethernet
2023-11-24T03:47:45.317695+00:00 ctdwa-774-cbt.cern.ch snmpd[2251]: SNMP: Error wrsPortStatusSfpError: SFP in port 10 (wri10) is not in the database. Change the SFP or declare port as non-wr or none
2023-11-24T03:47:45.317875+00:00 ctdwa-774-cbt.cern.ch snmpd[2251]: SNMP: Error wrsPortStatusSfpError: SFP in port 16 (wri16) is not in the database. Change the SFP or declare port as non-wr or none
2023-11-24T03:47:45.322322+00:00 ctdwa-774-cbt.cern.ch snmpd[2251]: SNMP: Error wrsPTPFramesFlowing: No RX PTP frames flowing for port 16 (wri16) which is up and in WR mode
2023-11-24T03:48:00.749683+00:00 ctdwa-774-cbt.cern.ch crond[2228]: USER root pid 30014 cmd /etc/init.d/system_clock_monitor
2023-11-24T03:48:01.967617+00:00 ctdwa-774-cbt.cern.ch snmpd[2251]: SNMP: Error wrsPortStatusSfpError: SFP in port 10 (wri10) is not for Gigabit Ethernet
2023-11-24T03:48:01.968808+00:00 ctdwa-774-cbt.cern.ch snmpd[2251]: SNMP: Error wrsPortStatusSfpError: SFP in port 10 (wri10) is not in the database. Change the SFP or declare port as non-wr or none
2023-11-24T03:48:01.972184+00:00 ctdwa-774-cbt.cern.ch snmpd[2251]: SNMP: Error wrsPortStatusSfpError: SFP in port 16 (wri16) is not in the database. Change the SFP or declare port as non-wr or none
slave
2023-11-24T03:39:33.528744+00:00 ctdwa-774-cbts1.cern.ch hald: <30>Info (/wr/bin/wrsw_hal):port_fsm_state_link_up: Port wri1 PDOWN detected
2023-11-24T03:39:33.985193+00:00 ctdwa-774-cbts1.cern.ch rtud: <30>Info (/wr/bin/wrsw_rtud):Port wri1 went down, removing corresponding entries...
2023-11-24T03:39:39.882035+00:00 ctdwa-774-cbts1.cern.ch hald: <30>Info (/wr/bin/wrsw_hal):wri1: RX calibration complete at phase 3951 ps (after 7 attempts).
2023-11-24T03:39:40.013980+00:00 ctdwa-774-cbts1.cern.ch kernel: wri1: Link up, lpa 0x4020.
2023-11-24T03:39:59.001330+00:00 ctdwa-774-cbts1.cern.ch hald: <30>Info (/wr/bin/wrsw_hal):port_fsm_state_link_down:wri1: bitslide= 0 [ps]
2023-11-24T03:40:00.632233+00:00 ctdwa-774-cbts1.cern.ch crond[2284]: USER root pid 14238 cmd /etc/init.d/system_clock_monitor
2023-11-24T03:40:05.448996+00:00 ctdwa-774-cbts1.cern.ch hald: <30>Info (/wr/bin/wrsw_hal):Adjust: counter = seconds [+1]
2023-11-24T03:40:08.390323+00:00 ctdwa-774-cbts1.cern.ch hald: <30>Info (/wr/bin/wrsw_hal):Adjust: counter = nanoseconds [+546127472]
2023-11-24T03:40:25.723060+00:00 ctdwa-774-cbts1.cern.ch hald: <30>Info (/wr/bin/wrsw_hal):port_fsm_state_link_up: Port wri1 PDOWN detected
2023-11-24T03:40:26.003348+00:00 ctdwa-774-cbts1.cern.ch rtud: <30>Info (/wr/bin/wrsw_rtud):Port wri1 went down, removing corresponding entries...
2023-11-24T03:40:31.514560+00:00 ctdwa-774-cbts1.cern.ch hald: <30>Info (/wr/bin/wrsw_hal):wri1: RX calibration complete at phase 8017 ps (after 4 attempts).
2023-11-24T03:40:33.017478+00:00 ctdwa-774-cbts1.cern.ch kernel: wri1: Link up, lpa 0x4020.
2023-11-24T03:40:50.836963+00:00 ctdwa-774-cbts1.cern.ch hald: <30>Info (/wr/bin/wrsw_hal):port_fsm_state_link_down:wri1: bitslide= 0 [ps]
2023-11-24T03:40:56.737084+00:00 ctdwa-774-cbts1.cern.ch hald: <30>Info (/wr/bin/wrsw_hal):Adjust: counter = seconds [+1]
2023-11-24T03:40:59.850986+00:00 ctdwa-774-cbts1.cern.ch hald: <30>Info (/wr/bin/wrsw_hal):Adjust: counter = nanoseconds [+92109824]
2023-11-24T03:41:00.097262+00:00 ctdwa-774-cbts1.cern.ch nslcd[2024]: [2a9e12] <group/member="root"> ldap_result() failed: Can't contact LDAP server
2023-11-24T03:41:00.098706+00:00 ctdwa-774-cbts1.cern.ch nslcd[2024]: [2a9e12] <group/member="root"> ldap_abandon() failed to abandon search: Can't contact LDAP server: Transport endpoint is not connected
2023-11-24T03:41:00.295934+00:00 ctdwa-774-cbts1.cern.ch crond[2284]: USER root pid 14486 cmd /etc/init.d/system_clock_monitor
2023-11-24T03:41:17.032124+00:00 ctdwa-774-cbts1.cern.ch hald: <30>Info (/wr/bin/wrsw_hal):port_fsm_state_link_up: Port wri1 PDOWN detected
2023-11-24T03:41:17.556825+00:00 ctdwa-774-cbts1.cern.ch rtud: <30>Info (/wr/bin/wrsw_rtud):Port wri1 went down, removing corresponding entries...
2023-11-24T03:41:23.432166+00:00 ctdwa-774-cbts1.cern.ch hald: <30>Info (/wr/bin/wrsw_hal):wri1: RX calibration complete at phase 12007 ps (after 10 attempts).
2023-11-24T03:41:27.474755+00:00 ctdwa-774-cbts1.cern.ch kernel: wri1: Link up, lpa 0x4020.
2023-11-24T03:41:42.140448+00:00 ctdwa-774-cbts1.cern.ch hald: <30>Info (/wr/bin/wrsw_hal):port_fsm_state_link_down:wri1: bitslide= 0 [ps]
2023-11-24T03:41:48.301821+00:00 ctdwa-774-cbts1.cern.ch hald: <30>Info (/wr/bin/wrsw_hal):Adjust: counter = nanoseconds [+184361904]
2023-11-24T03:42:00.036285+00:00 ctdwa-774-cbts1.cern.ch crond[2284]: USER root pid 14743 cmd /etc/init.d/system_clock_monitor
2023-11-24T03:42:06.453512+00:00 ctdwa-774-cbts1.cern.ch hald: <30>Info (/wr/bin/wrsw_hal):port_fsm_state_link_up: Port wri1 PDOWN detected
2023-11-24T03:42:06.468836+00:00 ctdwa-774-cbts1.cern.ch rtud: <30>Info (/wr/bin/wrsw_rtud):Port wri1 went down, removing corresponding entries...
2023-11-24T03:42:13.685600+00:00 ctdwa-774-cbts1.cern.ch hald: <30>Info (/wr/bin/wrsw_hal):wri1: RX calibration complete at phase 3974 ps (after 18 attempts).
2023-11-24T03:42:13.895199+00:00 ctdwa-774-cbts1.cern.ch kernel: wri1: Link up, lpa 0x4020.
2023-11-24T03:42:31.561659+00:00 ctdwa-774-cbts1.cern.ch hald: <30>Info (/wr/bin/wrsw_hal):port_fsm_state_link_down:wri1: bitslide= 0 [ps]
2023-11-24T03:43:00.049134+00:00 ctdwa-774-cbts1.cern.ch crond[2284]: USER root pid 14986 cmd /etc/init.d/system_clock_monitor
2023-11-24T03:43:28.844277+00:00 ctdwa-774-cbts1.cern.ch hald: <30>Info (/wr/bin/wrsw_hal):port_fsm_state_link_up: Port wri1 PDOWN detected
2023-11-24T03:43:29.629656+00:00 ctdwa-774-cbts1.cern.ch rtud: <30>Info (/wr/bin/wrsw_rtud):Port wri1 went down, removing corresponding entries...
2023-11-24T03:44:00.065847+00:00 ctdwa-774-cbts1.cern.ch crond[2284]: USER root pid 15234 cmd /etc/init.d/system_clock_monitor
2023-11-24T03:44:25.529494+00:00 ctdwa-774-cbts1.cern.ch nslcd[2024]: [5ac048] <passwd="sshd"> ldap_result() failed: Can't contact LDAP server
2023-11-24T03:44:25.530933+00:00 ctdwa-774-cbts1.cern.ch nslcd[2024]: [5ac048] <passwd="sshd"> ldap_abandon() failed to abandon search: Can't contact LDAP server: Transport endpoint is not connected
2023-11-24T03:44:25.809536+00:00 ctdwa-774-cbts1.cern.ch sshd[15360]: Connection closed by 188.185.10.249
no more link up...
2023-11-24T03:44:49.459321+00:00 ctdwa-774-cbts1.cern.ch hald: <30>Info (/wr/bin/wrsw_hal):port_fsm_state_link_down: Port wri1 PDOWN detected
2023-11-24T03:45:00.080297+00:00 ctdwa-774-cbts1.cern.ch crond[2284]: USER root pid 15498 cmd /etc/init.d/system_clock_monitor
2023-11-24T03:46:00.094762+00:00 ctdwa-774-cbts1.cern.ch crond[2284]: USER root pid 15760 cmd /etc/init.d/system_clock_monitor
2023-11-24T03:46:10.274329+00:00 ctdwa-774-cbts1.cern.ch hald: <30>Info (/wr/bin/wrsw_hal):port_fsm_state_link_down: Port wri1 PDOWN detected
2023-11-24T03:47:00.108966+00:00 ctdwa-774-cbts1.cern.ch crond[2284]: USER root pid 16008 cmd /etc/init.d/system_clock_monitor
2023-11-24T03:47:30.740415+00:00 ctdwa-774-cbts1.cern.ch hald: <30>Info (/wr/bin/wrsw_hal):port_fsm_state_link_down: Port wri1 PDOWN detected
2023-11-24T03:48:00.121837+00:00 ctdwa-774-cbts1.cern.ch crond[2284]: USER root pid 16261 cmd /etc/init.d/system_clock_monitor
2023-11-24T03:48:51.348556+00:00 ctdwa-774-cbts1.cern.ch hald: <30>Info (/wr/bin/wrsw_hal):port_fsm_state_link_down: Port wri1 PDOWN detected
2023-11-24T03:49:00.133833+00:00 ctdwa-774-cbts1.cern.ch crond[2284]: USER root pid 16509 cmd /etc/init.d/system_clock_monitor
2023-11-24T03:50:00.146875+00:00 ctdwa-774-cbts1.cern.ch crond[2284]: USER root pid 16771 cmd /etc/init.d/system_clock_monitor
2023-11-24T03:50:12.047549+00:00 ctdwa-774-cbts1.cern.ch hald: <30>Info (/wr/bin/wrsw_hal):port_fsm_state_link_down: Port wri1 PDOWN detected
2023-11-24T03:51:00.160115+00:00 ctdwa-774-cbts1.cern.ch crond[2284]: USER root pid 17024 cmd /etc/init.d/system_clock_monitor
2023-11-24T03:51:32.552597+00:00 ctdwa-774-cbts1.cern.ch hald: <30>Info (/wr/bin/wrsw_hal):port_fsm_state_link_down: Port wri1 PDOWN detected
2023-11-24T03:52:00.176450+00:00 ctdwa-774-cbts1.cern.ch crond[2284]: USER root pid 17276 cmd /etc/init.d/system_clock_monitorhttps://ohwr.org/project/wr-switch-hdl/issues/43Merge dmtd_with_deglitcher fix2023-10-30T17:21:08ZEvangelia GousiouMerge dmtd_with_deglitcher fixFix: https://ohwr.org/project/wr-cores/commit/ccd0d2d62642b2ba4644231f95898e3bf20605af
Original issue: https://ohwr.org/project/wrpc-sw/issues/61https://ohwr.org/project/wr-switch-hdl/issues/42RTU: reads of PCR register for CPU (port 18) returns always 02023-07-07T16:05:24ZAdam WujekRTU: reads of PCR register for CPU (port 18) returns always 0In RTU, reads of PCR register for CPU (port 18) returns always 0.https://ohwr.org/project/wr-switch-hdl/issues/41Jumbo frames dropped after a particular rate2024-01-31T22:31:11ZMaciej LipinskiJumbo frames dropped after a particular rate=============== REPORT from Antonio.
We are evaluating the version 6.0.1 for the WR Switches and we have issue related to packet losses with jumbo frames.
With MTU >= 2000 we can see that switches start to loss packets. You can find attached a document ([WR_Tests_6.0.1_v1_.pdf](/uploads/75a360cff9559b7863389fd1a885670e/WR_Tests_6.0.1_v1_.pdf)) with some experiments where Version 5.0.1 works fine under different conditions, but version 6.0.1 does not behave the same way. You can see the wrsw_pstat outputs.https://ohwr.org/project/wr-switch-hdl/issues/40Low Phase Drift Calibration (LPDC)2020-06-08T14:46:43ZGrzegorz DanilukLow Phase Drift Calibration (LPDC)Low Phase Drift Calibration is a new feature added in release v6.0 that improves phase stability between WR switch restarts to <10ps. Due to FPGA limitations this functionality is present only on ports 1-12. The LPDC requires an additional, automated calibration procedure to run for Tx and Rx path of each affected FPGA transceiver. The Tx calibration is performed once for all ports at startup of the WR switch. The Rx calibration is performed each time a link goes up on a port. Both Tx and Rx calibration is indicated by blinking of Link/WR Mode LED (left). The downside is that the calibration makes startup of the WR switch longer. Similarly, the time between connecting a fiber and the link going up (e.g. as observed in *wr_mon*) is noticeably longer.https://ohwr.org/project/wr-switch-hdl/issues/39Protocol-based VLAN classification to distinguish PTP/SNMP/ARP traffic2020-02-20T19:14:16ZMaciej LipinskiProtocol-based VLAN classification to distinguish PTP/SNMP/ARP trafficsee: https://ohwr.org/project/wr-switch-sw/issues/207https://ohwr.org/project/wr-switch-hdl/issues/38v3.0 - [NIC] Broadcast storm to CPU2019-02-12T09:51:48ZMaciej Lipinskiv3.0 - [NIC] Broadcast storm to CPUFrames with broadcast forwarding decisions are forwarded to the CPU as
well, if there is a broadcast storm, the CPU gets a bit stuck.
Some kind of detection and prevention mechanism needs be implemented in
NICGrzegorz DanilukGrzegorz Danilukhttps://ohwr.org/project/wr-switch-hdl/issues/37v3.0 - [RTU] Unrecognized frame broadcast to CPU2019-02-12T09:51:47ZMaciej Lipinskiv3.0 - [RTU] Unrecognized frame broadcast to CPUUnrecognized broadcast frames are forwarded to CPU as well - this causes
CPU to get overwhelmed if a flood of unrecognized frames is received.Maciej LipinskiMaciej Lipinskihttps://ohwr.org/project/wr-switch-hdl/issues/36v4-dev - Topology Resolution Unit (TRU)2019-02-12T09:51:47ZMaciej Lipinskiv4-dev - Topology Resolution Unit (TRU)Added unit which provides hardware support for software topology
resolution protocols (e.g.: LACP, RSTP)Maciej LipinskiMaciej Lipinskihttps://ohwr.org/project/wr-switch-hdl/issues/35v4-dev - Time Aware Traffic Shaper (TATSU)2019-02-12T09:51:47ZMaciej Lipinskiv4-dev - Time Aware Traffic Shaper (TATSU)Added unit which enables to block/allow particular output queues for a
give time, periodically, starting at a given UTC timeMaciej LipinskiMaciej Lipinskihttps://ohwr.org/project/wr-switch-hdl/issues/34v4-dev - Per-port statistics counters (PSTATS)2019-02-12T09:51:47ZGrzegorz Danilukv4-dev - Per-port statistics counters (PSTATS)Generic module of per-port counters, counting various events generated
inside the WR Switch.Grzegorz DanilukGrzegorz Danilukhttps://ohwr.org/project/wr-switch-hdl/issues/33v4-dev - WR Endpoint events generation2019-02-12T09:51:46ZGrzegorz Danilukv4-dev - WR Endpoint events generationModification of WR Endpoint to trigger events counter by PSTATS module.Grzegorz DanilukGrzegorz Danilukhttps://ohwr.org/project/wr-switch-hdl/issues/32v3.0 - [RTU] Aging/update of MAC entry when src port changes2019-02-12T09:51:46ZMaciej Lipinskiv3.0 - [RTU] Aging/update of MAC entry when src port changesThe bug is basic but major: RTU@HW don't remember on which port it
learns a
MAC entry. This means that if the MAC entry is in memory (HTAB), and the
port
on which a source MAC is received is changed before the old MAC entry is
aged....
the invalid MAC entry will be found and considered OK, so updated as if
it was correct...
and it will never age.Maciej LipinskiMaciej Lipinskihttps://ohwr.org/project/wr-switch-hdl/issues/31v3.0 - [RTU] Aging bitmap update at src and dst MAC found2019-02-12T09:51:45ZMaciej Lipinskiv3.0 - [RTU] Aging bitmap update at src and dst MAC foundThe aging map is updated when a MAC entry is found for given source and
destination MAC. This is wrong behaviour. It should be updated only on
source MAC found.Maciej LipinskiMaciej Lipinskihttps://ohwr.org/project/wr-switch-hdl/issues/30v4.0 - [HWDU] HardWare Debugging Unit2019-02-12T09:51:44ZMaciej Lipinskiv4.0 - [HWDU] HardWare Debugging UnitA simple wishbone interface which enables to read values of critical
registers from different modules of the switch gateware (e.g.: current
number of used pages in the SWcore)Grzegorz DanilukGrzegorz Danilukhttps://ohwr.org/project/wr-switch-hdl/issues/29Documentation of HDL2019-02-12T09:51:43ZBenoit RatDocumentation of HDLA simple documentation on how to synthetize and which block are involved
could be nicehttps://ohwr.org/project/wr-switch-hdl/issues/28activity LED for wr0 is never blinking2019-02-12T09:51:43ZBenoit Ratactivity LED for wr0 is never blinkingI don't know if it is a feature or not, but it is not possible to make
it work with only one switchhttps://ohwr.org/project/wr-switch-hdl/issues/27v4-dev - [Endpoint] VLAN tagging/untagging2019-02-12T09:51:42ZMaciej Lipinskiv4-dev - [Endpoint] VLAN tagging/untaggingFixed bugs in Endpoint:
\- proper tagging of frames
\- untagging of frames
\- passing the newly tagged VLAN to RTU
Tested:
\- Port as Access Point which adds VLAN tag
\- Untagging on egress
Still, all the combinations in the attached table needs to be tested
### Files
* [Support_to_Enhanced_Internal_Sublayer_Service.pdf](/uploads/728d0d589d1c12569d6c85f7c34bd24d/Support_to_Enhanced_Internal_Sublayer_Service.pdf)Maciej LipinskiMaciej Lipinskihttps://ohwr.org/project/wr-switch-hdl/issues/26Switch locking to wrong offset2019-02-12T09:51:41ZGrzegorz DanilukSwitch locking to wrong offsetAfter replugging the fiber WR slave Switch sometimes locks with the
offset about -700 ps. If you are unlucky and have 2-3 layers of
switches, your WR network might not be sub-ns any more.
### Files
* [switch_bug.PNG](/uploads/7fb82df2b752d7991aee2025682a48ce/switch_bug.PNG)Grzegorz DanilukGrzegorz Danilukhttps://ohwr.org/project/wr-switch-hdl/issues/25v3.0 - [PWM] FANs are turned off by default2019-02-12T09:51:40ZGrzegorz Danilukv3.0 - [PWM] FANs are turned off by defaultPWM HDL module adjusting the speed of FANs in WR Switch box makes them
turned off by default. If something bad happens with HAL software and it
will not start when the switch boots, user will end up with programmed
FPGA but no cooling from FANs.Grzegorz DanilukGrzegorz Daniluk