PPSi:420da467c4edbc76e830aca7a8b4b43be8e6ffdd commitshttps://ohwr.org/project/ppsi/commits/420da467c4edbc76e830aca7a8b4b43be8e6ffdd2019-06-04T15:02:21Zhttps://ohwr.org/project/ppsi/commit/420da467c4edbc76e830aca7a8b4b43be8e6ffddImprove behavior when link up->down->up not detected.2019-06-04T15:02:21ZJean-Claude Baujean-claude.bau@cern.ch
When the link state changes rapidly, it can't be detected by PPSi. This
is the case with the BTrain configuration. So we must detect that the
peer has changed and restart the servo for a slave and use the right
protocol (extension/ptp).https://ohwr.org/project/ppsi/commit/0e5b88179706580dec3375aede5ebdbe82d1ad37timeout.c: Fix issue on array of timer2019-06-04T11:47:45ZJean-Claude Baujean-claude.bau@cern.ch
The structure was not updated when the FAULT timer was removed.https://ohwr.org/project/ppsi/commit/1661d43bb662a07568fc4156273a287e1675ab2eSet instance state to DISABLED at startup2019-06-04T08:05:48ZJean-Claude Baujean-claude.bau@cern.ch
At startup the state of a instance is set to DISABLED and will be set
if the link is up to INITIALIZING. This is done to be coherent with the
curent behavior: the state becomes DISABLED when the link is downhttps://ohwr.org/project/ppsi/commit/043af2b4d68575034da03b302936cd5c459fb6b8Fix issue: Enable PPS output for GM when PLL not locked at startup2019-05-29T07:32:15ZJean-Claude Baujean-claude.bau@cern.chhttps://ohwr.org/project/ppsi/commit/a0091b90de4136b49805bb4044fc4318bbefaa25WR extension: Disable it when timeout detected during the handshake.2019-05-28T07:52:28ZJean-Claude Baujean-claude.bau@cern.chhttps://ohwr.org/project/ppsi/commit/36accb7ee7a3d9b8892ad0f4987c969490761346[Issue:#196] WR time not set properly in GM mode2019-05-27T13:32:52ZJean-Claude Baujean-claude.bau@cern.ch
The WR time is set in GM mode as follow :
1/ At startup the NTP time is set using wr_date script
2/ PPSi calls the tool wr_date with parameters "set host". It will be
called every time it detects a PLL transition from UNLOCKED to LOCKED
state. Also PPSi provide a error counter 'gmUnlockErr' which gives the
number of time the PLL unlocked.
3/ Parameters "-v set host" in wr_date tool, set only the second part of
the WR time. The time is set in a middle of two WR seconds ticks.https://ohwr.org/project/ppsi/commit/4da707249182b6480be7e40bc3e79d24d142e8fdWR protocol extension improvements2019-05-27T07:43:58ZJean-Claude Baujean-claude.bau@cern.ch
- Give priority to the time-out and not the number of msg repetitions
- Call also wr_handshake_fail() function when a time-out is detected.https://ohwr.org/project/ppsi/commit/ecd7270939119698db30f4b3580898d679b6adfcMove enable_output_timing() hook in pp_time_operations structure2019-05-24T07:58:34ZJean-Claude Baujean-claude.bau@cern.ch
As the enable_output_timing() hook is called also in the standard PTP
part, the hook has been moved from the WR specific structure
wrh_operations to pp_time_operationshttps://ohwr.org/project/ppsi/commit/e037e781163d88d3290c79636bbd0758c61af4a4Add new macro TOPS() to access timing operations2019-05-24T07:42:10ZJean-Claude Baujean-claude.bau@cern.chhttps://ohwr.org/project/ppsi/commit/b66d61fe722246dbeb6b47cbeb629429fef69861[Feature:#128] Improve GM status2019-05-20T08:20:50ZJean-Claude Baujean-claude.bau@cern.ch
- Add a new state machine available for all timing modes ( Free running
master, Grand master and boundary clock)
- State is stored in pp_globals, field timingModeLockingState
- The 3 main states are :
-- Locking: Waiting for PLL locked
-- Locked: PLL is locked
-- Error: PLL is unlocked but was locked before
- Changing the timing mode will reset the state to 'Locking'https://ohwr.org/project/ppsi/commit/2f5b29aa807c8022c823fd312f642ae56a594337[BUG: 2] ptpdump wrongly shows Announce Msg parameters2019-05-15T08:11:49ZJean-Claude Baujean-claude.bau@cern.ch
- Change the Quality structure to make it compliant with the standard
- Fix network to host conversion to display offsetScaledLogVariancehttps://ohwr.org/project/ppsi/commit/9be8a71d8a335d5119e4bbfd849c8dc136769ab2New delayAsymCoeff and delayAsymmetry calculation2019-05-14T09:51:07ZJean-Claude Baujean-claude.bau@cern.ch
- Calculations made using fixed pointarythmetic
- delayAsymCoeff calculated using polynomial expansion
- Based on Rens Roosenstein workhttps://ohwr.org/project/ppsi/commit/702f551127af6ec469ab24485f1c4a6ebedbfea3WR profile: Restart servo when PLL unlocked2019-05-14T09:46:30ZJean-Claude Baujean-claude.bau@cern.ch
If a PLL unlocked is detected on slave side when the servo is running,
the PTP state is forced to UNCALIBRATED to restart the WR calibration
(handshake)https://ohwr.org/project/ppsi/commit/59838a0da9614036c95f8b11b0cd2de92750a507WR/PTP protocol detection + WR protocol improvement2019-05-09T14:38:07ZJean-Claude Baujean-claude.bau@cern.ch
- Simplify how an instance switch from WR to PTP protocol and vice-versa
- Change the WR state machine: When an unexpected WR signaling message
is received, the state is forced to IDLE. Solve handshake issue when
instance is waiting for an answer with a long time-out and in the other
side the PPSi process is restarted. In this use case the handshake will
fail.https://ohwr.org/project/ppsi/commit/65f9d293de9feebc9c176594f6234570b00f9038Remove debugging print2019-05-07T15:08:25ZJean-Claude Baujean-claude.bau@cern.chhttps://ohwr.org/project/ppsi/commit/8240a87d850dd23b6f003d4f071d3c063c992c2eExport LEDs control logic in PPSi2019-05-07T14:58:37ZJean-Claude Baujean-claude.bau@cern.ch
The logic used to control WR switch leds is removed from HAL and
imported into PPSi. It prevents HAL from reading PPSi shared memory.https://ohwr.org/project/ppsi/commit/9ef24075233a042ccb5122ee9fa246f6824ef9f7Add a rounding value for interval to picos convertion2019-05-03T09:36:23Zbaujcjean-claude.bau@cern.chhttps://ohwr.org/project/ppsi/commit/4fe4f791512d075a5b2297c25d3e03950cd5ee9aAdd & change constants related to RelativeDifference type2019-05-02T09:48:13Zbaujcbaujc@cwe-513-vol554.cern.ch
Modification made to be more coherent as delayCoefficient is in range [-1,1] instead of [-2,2].https://ohwr.org/project/ppsi/commit/7b6e9e7ada1a3acf2babd7bdc118bfca12687c25Update SFP parameters when link is going up2019-05-02T09:24:14Zbaujcbaujc@cwe-513-vol554.cern.ch
This is a temporary implementation that will be reviewed when the PPSi
live configuration will be implemented.https://ohwr.org/project/ppsi/commit/22afef58f19df065fb7e4ceabe94b95e5b51deb2Fix issue in picos to interval conversion2019-05-02T09:17:44Z[ACC] Jean-Claude BAUbaujc@cwe-513-vol554.cern.chhttps://ohwr.org/project/ppsi/commit/b20415676aa1f2dac3ecb63881a1f642bbe04297Remove unused definition 'struct wr_servo_state'2019-04-30T08:57:12Zbaujcbaujc@cwe-513-vol554.cern.chhttps://ohwr.org/project/ppsi/commit/2630de3cdc31bf389fe23ea16f26b96e0b2de1f1arch-wrs: update hal_shmem.h2019-04-10T15:43:40ZAdam Wujekadam.wujek@cern.ch
add monitor variable to struct hal_port_state
Signed-off-by: <span data-trailer="Signed-off-by:" data-user="9297"><a href="https://ohwr.org/awujek" title="adam.wujek@cern.ch"><img alt="Adam Wujek's avatar" src="https://secure.gravatar.com/avatar/bee62ad02d8f8c7c40900167722fb9d3?s=32&d=identicon" class="avatar s16 avatar-inline" title="Adam Wujek"></a><a href="https://ohwr.org/awujek" title="adam.wujek@cern.ch">Adam Wujek</a> <<a href="mailto:adam.wujek@cern.ch" title="adam.wujek@cern.ch">adam.wujek@cern.ch</a>></span>https://ohwr.org/project/ppsi/commit/be8e037238a2ca33e636f26ba693a5520192b97eMerge branch 'jcb-HA-implementation'2019-04-10T15:41:32ZAdam Wujekadam.wujek@cern.chSigned-off-by: <span data-trailer="Signed-off-by:" data-user="9297"><a href="https://ohwr.org/awujek" title="adam.wujek@cern.ch"><img alt="Adam Wujek's avatar" src="https://secure.gravatar.com/avatar/bee62ad02d8f8c7c40900167722fb9d3?s=32&d=identicon" class="avatar s16 avatar-inline" title="Adam Wujek"></a><a href="https://ohwr.org/awujek" title="adam.wujek@cern.ch">Adam Wujek</a> <<a href="mailto:adam.wujek@cern.ch" title="adam.wujek@cern.ch">adam.wujek@cern.ch</a>></span>https://ohwr.org/project/ppsi/commit/97d9196788df7fcccae72f1e6d500ee3c3c5c88aFix compilation issues when PPSi compiled without HA.2019-04-10T10:32:52Zbaujcbaujc@cwe-513-vol554.cern.chhttps://ohwr.org/project/ppsi/commit/2f0a7c00e151cdd8d365dffe96dc7698a22d5348Remove port_controller.o in Makefile2019-04-10T10:11:26Zbaujcbaujc@cwe-513-vol554.cern.ch
Will be reintroduced later with HA profile.https://ohwr.org/project/ppsi/commit/4ae3cd2e6fbc3fe34ae0816fff81dbb1208f81ecSet default configuration for wrs_defconfig2019-04-10T08:42:33Zbaujcbaujc@cwe-513-vol554.cern.ch
- Code optimization for size
- HA is not compiled ( only PTP & WR )
- ...https://ohwr.org/project/ppsi/commit/776b956c1f8fadaf45a33199b1ac16050294e467Simplify WRS calibration functions (3)2019-04-09T13:18:39Zbaujcbaujc@cwe-513-vol554.cern.ch
See commit 'Simplify WRS calibration functions' belowhttps://ohwr.org/project/ppsi/commit/accb96761bb0ea36ef59bb2ba1b44e5052bfb158L1Sync extension update after WR extension review2019-04-09T13:14:16Zbaujcbaujc@cwe-513-vol554.cern.chhttps://ohwr.org/project/ppsi/commit/f7205dabd6351a7234c388e87cee842da2668a31Review of WR protocol implementation (2)2019-04-09T13:08:12Zbaujcbaujc@cwe-513-vol554.cern.ch
- Has Hal is no longer used for ingress/egress latencies, we must then
take them from the configuration file
- Definition used by the common servo (WR & HA)
- Implementation of the IDLE state
See previous commit 'Review of WR protocol implementation'https://ohwr.org/project/ppsi/commit/91a1564c2518f70e9aa88559eab905099985ddd3Simplify WRS calibration functions (2)2019-04-09T12:53:53Zbaujcbaujc@cwe-513-vol554.cern.ch
See commit 'Simplify WRS calibration functions' belowhttps://ohwr.org/project/ppsi/commit/d74fda134a06a9fb626afd0575505a978bb38a41Update wrs_dump_shmem to report all changes made in PPSi2019-04-09T12:38:35Zbaujcbaujc@cwe-513-vol554.cern.chhttps://ohwr.org/project/ppsi/commit/84fc8c107b061f0870f0f20a5ef29eb2c2a987c9Improvment of the LinkState management2019-04-09T12:36:58Zbaujcbaujc@cwe-513-vol554.cern.ch
It has been improvement to make it works with WR extension but the final
mechanism has to be improved to make it more simple.https://ohwr.org/project/ppsi/commit/f0227345877cf3d0d6c10597c17714e04627e181Simplify WRS calibration functions2019-04-09T12:22:03Zbaujcbaujc@cwe-513-vol554.cern.ch
As WR extension share now the same servo than L1Sync extension, the only
service required from HAL is the value of the bit-slide. Then a
simplification can be done by removing some functions and some obsolete
function parametershttps://ohwr.org/project/ppsi/commit/0e593d583d00b28e9f1287229657b3adf901ff4eMainLoop: Prevent to have negative delay values2019-04-09T12:14:34Zbaujcbaujc@cwe-513-vol554.cern.chhttps://ohwr.org/project/ppsi/commit/5d55d255f06faac1f99d82557f622b7f1c781801New tool: monotonicClock2019-04-09T12:09:59Zbaujcbaujc@cwe-513-vol554.cern.ch
This tool is used to follow the value of a monotonic clock to check if
it does not does big jumps. This jumps may affect the precision of the
timeout in PPSi. They can occur when the nanosecond adjustement is done
in the servo (WR & HA profiles).https://ohwr.org/project/ppsi/commit/c2daba1f9936a220d1a80c1d5cfb83e886faf33cSmall code optimization in diag.c2019-04-09T11:57:48Zbaujcbaujc@cwe-513-vol554.cern.chhttps://ohwr.org/project/ppsi/commit/136a5ddc2d153641ed3a6c221c6a83f090ba2cfeMake timestamp adjusment dependent of the extension2019-04-09T11:56:09Zbaujcbaujc@cwe-513-vol554.cern.ch
In WR extension, the egress and ingress latencies are already included
in the exchanged deltas (TX/RX). This modification allows for an
extension to remove the egress/ingress latencies from the calculation of
the RX and TX timestamps. This feature is used in the WR extension.https://ohwr.org/project/ppsi/commit/12500686dc9aabb01d9f992ea8f21ce268516baeForce to UNCALIBRATED state2019-04-09T11:50:51Zbaujcbaujc@cwe-513-vol554.cern.ch
Force to stay in UNCALIBRATED state if externalPortConfigurationEnabled
is set to true and desiredState to UNCALIBRATED.https://ohwr.org/project/ppsi/commit/36c0c7eecaac452742b79941a9b46e475df7a443Remove slave_execute() callback in state-slave.c2019-04-09T11:46:27Zbaujcbaujc@cwe-513-vol554.cern.chhttps://ohwr.org/project/ppsi/commit/54441176213a28c3a4d4a9435fbc5ffbfdd6ce6fRemove master_msg() callback in state_master.c2019-04-09T09:49:29Zbaujcbaujc@cwe-513-vol554.cern.ch