White Rabbit Switch - Software:f14e28c96f26c8a9798e05c75604b2303bb0b777 commitshttps://ohwr.org/project/wr-switch-sw/commits/f14e28c96f26c8a9798e05c75604b2303bb0b7772019-04-10T15:26:55Zhttps://ohwr.org/project/wr-switch-sw/commit/f14e28c96f26c8a9798e05c75604b2303bb0b777Setup default config for the switch (WR profile by default)2019-04-10T15:26:55Zbaujcbaujc@cwe-513-vol554.cern.chhttps://ohwr.org/project/wr-switch-sw/commit/4d53cb1ca44b058f6ec2bea5bf94da8f37ffacdeUpdate PPSi submodule2019-04-10T15:26:55Zbaujcbaujc@cwe-513-vol554.cern.chhttps://ohwr.org/project/wr-switch-sw/commit/033ef3e33ef12e8e89ca051d9a49c2995357a918Uwr_mon: display PTP state and WR state as two independant states2019-04-10T15:26:55Zbaujcbaujc@cwe-513-vol554.cern.chhttps://ohwr.org/project/wr-switch-sw/commit/92ad9998e63678faa8bcf0f7e6804b737d1c0759softPLL give more control to PPSi2019-04-10T15:26:55Zbaujcbaujc@cwe-513-vol554.cern.ch
Now, the control of the timing mode and the PPS generation is two
separate things that can be controlled independently by PPSi.https://ohwr.org/project/wr-switch-sw/commit/7f7c17efd9fd34c376855edb4177434f3ab53ea9Allow egress/ingress parameters also for WR extension2019-04-10T15:26:55Zbaujcbaujc@cwe-513-vol554.cern.chhttps://ohwr.org/project/wr-switch-sw/commit/e85b8202fa8f055862bdb889e238e4d74a761623Remove leading spaces when KConfig is decoded2019-04-10T15:26:55Zbaujcbaujc@cwe-513-vol554.cern.ch
The previous version expected that the "source" and "config" keys were
at the beginning of the line but it is not mandatory in the Kconfig
file.https://ohwr.org/project/wr-switch-sw/commit/4dc71920daa1c18516f0a809f303a7287cdea8a1Kconfig: Always add debugging information for the compilation2019-04-10T15:26:55Zbaujcbaujc@cwe-513-vol554.cern.chhttps://ohwr.org/project/wr-switch-sw/commit/e422bcb9b9e3aea5117f76711c9fb336e6fc8a0dAdd in Kconfig the selection of the optimization compilation flags2019-04-10T15:26:55Zbaujcbaujc@cwe-513-vol554.cern.chhttps://ohwr.org/project/wr-switch-sw/commit/7c80fe3bba770d72bdd7e98d4e052a8cc7b6fc14wr_phytool enhancement.2019-04-10T15:26:55Zbaujcbaujc@cwe-513-vol554.cern.ch
- Better information display
- Change easily the timing modehttps://ohwr.org/project/wr-switch-sw/commit/90b58fab5beffc168fe945e4e790dcb548522098Copy /usr/authorized_keys in /root/.ssh/ if it exists2019-04-10T15:26:55Zbaujcbaujc@cwe-513-vol554.cern.ch
This feature is very useful when we reboot very often the switch
especially during the development process.https://ohwr.org/project/wr-switch-sw/commit/a435f9dfd8e96d15a5e82d98d87a27654ba04524HAL exports : Add get_timing_mode_state2019-04-10T15:26:55Zbaujcbaujc@cwe-513-vol554.cern.chhttps://ohwr.org/project/wr-switch-sw/commit/fb853dc9ad5e0e36be9414d3d206238461c079fdwr_mon enhancement2019-04-10T15:26:55Zbaujcbaujc@cwe-513-vol554.cern.ch
- Adapt the code to PPSi Kconfig changes
- Display the port link state
- Display the protocol used (Ext or PTP)https://ohwr.org/project/wr-switch-sw/commit/e26aa085acaa4152e0aa8918b5d488a943ec590cFix error in constant name (time_lib.c)2019-04-10T15:26:55Zbaujcbaujc@cwe-513-vol554.cern.chhttps://ohwr.org/project/wr-switch-sw/commit/97fbe7b0d9557a80a3a3a8e7ab6e4f0304e9abc2Export PPS generation and control of the timing mode in PPSi2019-04-10T15:26:55Zbaujcbaujc@cwe-513-vol554.cern.chhttps://ohwr.org/project/wr-switch-sw/commit/e472fac318e8189dfdfd1ec7d21aa1ba1d800354Add new parameters in PPSi for the control of the PPS output2019-04-10T15:26:55Zbaujcbaujc@cwe-513-vol554.cern.chhttps://ohwr.org/project/wr-switch-sw/commit/9e682679fd7bf8fdfaf807f7e9133df1d72f9d82wr_clocksource: Fix bug with WR clock adjustment(ns)2019-04-10T15:26:55Zbaujcbaujc@cwe-513-vol554.cern.ch
The previous fix didn't solved completelly this issue: Negative nano WR
time adjustement generate a big jump of the monotonic clock used in
PPSI.
The current fix solves this issue.https://ohwr.org/project/wr-switch-sw/commit/816db7dd86ba7c2b43ed70dedd69a9be70b9c5eeNew time to string conversion library for tools2019-04-10T15:26:55Zbaujcbaujc@cwe-513-vol554.cern.ch
This library is used by wr_mon and wrs_dump_shmem to avoid duplication
of code.https://ohwr.org/project/wr-switch-sw/commit/68f47b7ada7b95a88cf1f5af2be298f940c3fde5Bug fixes and new option in wr_date tool2019-04-10T15:26:55Zbaujcbaujc@cwe-513-vol554.cern.ch
- Add new option "stat" to display statistic about the evolution between
WR and Unix time
- When we set the WR time with the current UNIX time, the driver
wr_clocksource must be removed first and then reinstalled when the time
is set. If it is not done, the WR and Unix time are not well
synchronized.
- When the WR time is set, the sec and ns and set in one call. We don't
need to call twice the wr_date tool.https://ohwr.org/project/wr-switch-sw/commit/55c9e91eea5eeaab718e4873ce397c0b661fac9ewr_clocksource: Fix bug due to clock adjustment2019-04-10T15:26:55Zbaujcbaujc@cwe-513-vol554.cern.ch
The WR time adjustment was not taken into account in the driver. The
side effect was a big jump sometime of the monotonic clock used in PPSI
for the calculation of the timeouts. The side effect was that many
timeouts were firing too early.
The driver registration take now into account the adjustment and also
the calculation of the offset in the read() call.https://ohwr.org/project/wr-switch-sw/commit/e03a8e66c8101fbda8d8ceadeb7b8050ff2729e8Add parameter slaveOnly2019-04-10T15:26:55Zbaujcjean-claude.bau@cern.ch
The parameter was already present in pps.conf but not yet managed by
kconfig and the ppsi.conf generatorhttps://ohwr.org/project/wr-switch-sw/commit/78458a6609f37d260f6f9f51c636084901eb7c67Add l1SyncOptParamsTimestampsCorrectedTx parameter in the configuration2019-04-10T15:26:55Zbaujcjean-claude.bau@cern.ch
This new parameter is used to control the configurable parameter
L1SyncOptParamsPortDS.timestampsCorrectedTx when
L1SyncBasicPortDS.optParamsEnabled is set to true.https://ohwr.org/project/wr-switch-sw/commit/6870ebbcf6675a43c429c71f5b71d26cb6e4e4e0Limit the name size of a port instance2019-04-10T15:26:55Zbaujcjean-claude.bau@cern.ch
The profile is included in the port instance name. With the new profile
"custom", the port instance name become too big. So only the two first
letters of the profile are now included in the name.https://ohwr.org/project/wr-switch-sw/commit/5aa247371602d9ee11aba74a948b6118bf087ffdPPSI bug fixes.2019-04-10T15:26:55Zbaujcjean-claude.bau@cern.ch
- Timeout management
- Configuration enhancement
- Erbest/ebast calculation
Note: The pp_instance structure has changed so all related programs
depending on pp_instance structure must be rebuild.https://ohwr.org/project/wr-switch-sw/commit/ca05b6f3606607d8b5de52a7aae19e70ab747583Configuration enhancement (follow up)2019-04-10T15:26:55Zbaujcjean-claude.bau@cern.ch
- Add new config parameters (l1SyncRxCoherencyIsRequired,...)
- Add new profile: CUSTOM. It will be mostly used for testing
- Fix issue on state name: "pre_master" instead of "pre-master"https://ohwr.org/project/wr-switch-sw/commit/e4b95a9e551df646278c91ed7b4d028e08b62ba4wrs_dump_shmem: Display L1Sync portDS data2019-04-10T15:26:55Zbaujcjean-claude.bau@cern.chhttps://ohwr.org/project/wr-switch-sw/commit/08110ec206f6451fa997935efb88a127a3463015Share memory dump enhancement2019-04-10T15:26:55Zbaujcjean-claude.bau@cern.ch
Change the format of diplayed data in order to facilitate the extraction
of data with grep like command
Signed-off-by: <span data-trailer="Signed-off-by:" data-user="8972"><a href="https://ohwr.org/baujc" title="jean-claude.bau@cern.ch"><img alt="Jean-Claude BAU's avatar" src="https://secure.gravatar.com/avatar/828bace9f54d0dc671e5819e986e17c9?s=32&d=identicon" class="avatar s16 avatar-inline" title="Jean-Claude BAU"></a><a href="https://ohwr.org/baujc" title="jean-claude.bau@cern.ch">baujc</a> <<a href="mailto:jean-claude.bau@cern.ch" title="jean-claude.bau@cern.ch">jean-claude.bau@cern.ch</a>></span>
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/wr-switch-sw/commit/b93899fa0213ee693c8d57739fa93c162bc581d5Fix config issue for ingress/outgress latencies for WR profile2019-04-10T15:26:55Zbaujcjean-claude.bau@cern.ch
When the WR profile is used ingressLatency and egressLacenty a set to 0
by default. This has to be done to avoid to use twice this values in the
delay calculation (ppsi + hal)https://ohwr.org/project/wr-switch-sw/commit/c65c11f0b058ed8cd7d7ba5938ac014ebe3ea9f9Use 'mechanism' keyword instead of 'dm' in ppsi.conf file.2019-04-10T15:26:55Zbaujcjean-claude.bau@cern.chhttps://ohwr.org/project/wr-switch-sw/commit/ff73a1474154ae31be694a4e76e1c1fa20e46e34Add Kconfig file for port timing configuration2019-04-10T15:26:55Zbaujcjean-claude.bau@cern.chhttps://ohwr.org/project/wr-switch-sw/commit/9f7d168aeb4ea11b315f1fb34b15ec9d4479a0b9Bug fix when pprofile ptp is set2019-04-10T15:26:55Zbaujcjean-claude.bau@cern.chhttps://ohwr.org/project/wr-switch-sw/commit/bc1acd9f47c0da715bf3ccd793a8e6bc59edcc98HA implementation for ISPCS20182019-04-10T15:26:55Zbaujcjean-claude.bau@cern.chhttps://ohwr.org/project/wr-switch-sw/commit/5d08c392197a9d0fd869776a3c5f62b37e2fece5Suppress bitslide in the calculation delta_rx_phy.2019-04-10T15:26:55Zbaujcjean-claude.bau@cern.ch
As the bitslide is already taken into account in PPSI for all protocol
extensions as the semiStaticLatency, it is no longer needed to use it in
the calculation of delta_rx_phy.https://ohwr.org/project/wr-switch-sw/commit/74b7217071c87bdf74f29b1d99bfb67511bde114Change conversion of RelativeDifference to human readable format.2019-04-10T15:26:55Zbaujcjean-claude.bau@cern.ch
These modifications increase the precision of the displayed fraction
part of a RelativeDifference type.https://ohwr.org/project/wr-switch-sw/commit/10cc05bfb0fc3de2add2d7dfe53681203004aac3Bug fixes in PPSI and wrs_dump_shmem.c2019-04-10T15:26:55Zbaujcjean-claude.bau@cern.ch
- PPSI: See PPSI logs
- wrs_dump_shmem.c: new fields displayed and fix errors for negative
values in time display (TimeInterval, RelativeDifference, pp_time)
Conflicts:
userspace/ppsi
userspace/tools/wrs_dump_shmem.chttps://ohwr.org/project/wr-switch-sw/commit/f7ed37396d25ad2e7f2baafe386d868a07d907dfPPSI-HA: Updates, bug fixes and optimizations.2019-04-10T15:26:55Zbaujcjean-claude.bau@cern.chhttps://ohwr.org/project/wr-switch-sw/commit/626b4f2cc9835f9d7cdebdf6faadefd7b6203961High Accuracy - Second implementation2019-04-10T15:26:55Zbaujcjean-claude.bau@cern.ch
Conflicts:
userspace/ppsi
userspace/tools/wrs_dump_shmem.chttps://ohwr.org/project/wr-switch-sw/commit/6e04d45e769419d174d9d502bf9700ffaa228978PPSI configuration enhancement2019-04-10T15:26:55Zbaujcjean-claude.bau@cern.ch
- Assembly_ppi_conf.sh script is able to generate JSON ppsi.conf format
- New parameters in ppsi.conf. Some parameters moved at ppsi instance
level
- port timing configuration in Kconfig moved in KConfig_port_timing.in
file. A file generator 'gen_kconfig_port_timing.sh'is used to generate
it.
- HAL upgraded to use the new dot-config file format. Mode ( auto,
master,...) removed from HAL.
- ppsi-pre.conf: Set empty because the new generated ppsi.conf always
define clock-class and clock accuracy.https://ohwr.org/project/wr-switch-sw/commit/df02f683e1e4cb081c0f2602ee0bbf5421c4eafcHA update wrs_dump_shmem2019-04-10T15:26:55ZAdam Wujekadam.wujek@cern.chhttps://ohwr.org/project/wr-switch-sw/commit/68222d7e1320d5a7f82a3fab29784ec74eccb7c5HA - Servo DS moved on each pp_instance2019-04-10T15:26:55Zbaujcjean-claude.bau@cern.chConflicts:
userspace/ppsi
userspace/tools/wrs_dump_shmem.chttps://ohwr.org/project/wr-switch-sw/commit/8044c8cc1595dc12610001ce9300c1256e3dea14High accuracy implementation - First version2019-04-10T15:26:55Zbaujcjean-claude.bau@cern.ch
- Upgrade HAL to transmit the bit-slide to HA
- Upgrade wr_mon tool to displat HA servo data
- Upgrade wrs_dump_shmem to display the right data
Conflicts:
userspace/tools/wr_mon.c
userspace/tools/wrs_dump_shmem.c