Software for White Rabbit PTP Core:63f6ef94e2c6668c40228809868086c138415f35 commitshttps://ohwr.org/project/wrpc-sw/commits/63f6ef94e2c6668c40228809868086c138415f352013-11-13T09:40:41Zhttps://ohwr.org/project/wrpc-sw/commit/63f6ef94e2c6668c40228809868086c138415f35make PPSI default PTP engine for WR PTP Core2013-11-13T09:40:41ZGrzegorz Danilukgrzegorz.daniluk@cern.chhttps://ohwr.org/project/wrpc-sw/commit/c54cfe2456e8093e76f998cd76394669cc1a856ebuild: avoid internal "ptpdump" support in ppsi, when RAM won't fit2013-11-13T07:23:44ZAlessandro Rubinirubini@gnudd.com
Etherbone won't fit with a full ppsi in the default RAM size for SPEC
cards. So this commit uses a ppsi hack to avoid internal ptpdump,
activating it when CONFIG_RAMSIZE is not 128kB and CONFIG_ETHERBONE is
set.
We should rather compare RAMSIZE with "< 131072", but neither gnu make
nor this version of Kconfig support numeric comparison.
This hack will soon disappera, as ppsi is gaining Kconfig support, so
wrpc-sw will be able to pass proper configuration. Also, 128kB will soon
be the default for SPEC images.
Signed-off-by: <span data-trailer="Signed-off-by:" data-user="9028"><a href="https://ohwr.org/rubini" title="rubini@gnudd.com"><img alt="Alessandro Rubini's avatar" src="https://secure.gravatar.com/avatar/18e4fb369cda4873020839db5911d1d1?s=32&d=identicon" class="avatar s16 avatar-inline" title="Alessandro Rubini"></a><a href="https://ohwr.org/rubini" title="rubini@gnudd.com">Alessandro Rubini</a> <<a href="mailto:rubini@gnudd.com" title="rubini@gnudd.com">rubini@gnudd.com</a>></span>https://ohwr.org/project/wrpc-sw/commit/0c2a302918b8fb1a13096ca97f3d2e4cf4cf6fadupdate ppsi submodule to release ppsi-v2013.112013-11-12T09:32:53ZGrzegorz Danilukgrzegorz.daniluk@cern.chhttps://ohwr.org/project/wrpc-sw/commit/848d77396edbc1869d097e9da358165feee2b857[t24_fix]: initialize to 0 rest of variables inside det_rising and det_falling2013-11-12T09:28:45ZGrzegorz Danilukgrzegorz.daniluk@cern.chhttps://ohwr.org/project/wrpc-sw/commit/4611f5031e56b54b13d7e314f09418c0d7b13baa[t24_fix]: lib/net.c: in linearize function normalize only phase, fix of prev...2013-11-07T12:20:29ZGrzegorz Danilukgrzegorz.daniluk@cern.chhttps://ohwr.org/project/wrpc-sw/commit/db36449255d88a1f053c0be153d8f20472bdeaf3[t24_fix]: rxts_calibrator: fix generating second sample of rising edge from ...2013-11-07T12:20:29ZGrzegorz Danilukgrzegorz.daniluk@cern.ch
Previous one was not working when:
* tR and tF were both inside (0; 4000) and tR < tF
* tR and tF were both inside (4000; 8000) and tF < tR
in those cases it was calculating ttrans around falling edge instead of rising
edge. This commit fixes it.https://ohwr.org/project/wrpc-sw/commit/1b91e3203ade49af258f02ffe54faea7bd75d509lib/net.c: fixed jump in linearize_rx_timestamp() when phase == transition_po...2013-11-07T12:20:29ZTomasz Włostowskitomasz.wlostowski@cern.ch
After subtraction of transition value from linearized phase, the phase value was renormalized to 0...clock_period-1, but
not the other counters. This resulted in very rare 8ns jumps.https://ohwr.org/project/wrpc-sw/commit/0a8739ed0b09df597fe9478214b0249da7afde4ct24: a bug in ptpd_netif_linearize_rx_timestamp masked the ttrans bug2013-11-07T12:20:29ZWesley W. Terpstraw.terpstra@gsi.de
The phase was used backwards. Somehow this cancelled out the systematic
error introduced by the actual bug (wrong phase offset). When both bugs
are fixed the code seems to work every time.https://ohwr.org/project/wrpc-sw/commit/94245412ad4a3905b3c1462d292642b90822bc1crxts_calibrator: fix incorrect t24p phase resulting in rare track failures2013-11-07T12:20:29ZWesley W. Terpstraw.terpstra@gsi.de
t24p calibration finds the rising&falling edges in
dev/rxts_calibrator.c:rxts_calibration_update. It then computes the
"transition" as (falling+rising)/2. That is, ttrans points 25% past the
dangerous transition. Now that value arrives in one of the three copies of
ptpd_netif_linearize_rx_timestamp (depending on build). In this method
ttrans has +-1/4 period added to it to compute trip_lo and trip_hi. The
intent as described by the comment (and common sense) is to avoid the rising
edge when the phase is within +-1/4 period. Unfortunately, this code
assumes that ttrans IS the rising edge, when in fact it is the rising
edge+25%. Thus, the code ACTUALLY tests phase within 0-50%.https://ohwr.org/project/wrpc-sw/commit/995c4ddd4872aff338c5022af4ffb94020ef225dsoftpll: fix build warnings2013-11-07T06:51:40ZAlessandro Rubinirubini@gnudd.comSigned-off-by: <span data-trailer="Signed-off-by:" data-user="9028"><a href="https://ohwr.org/rubini" title="rubini@gnudd.com"><img alt="Alessandro Rubini's avatar" src="https://secure.gravatar.com/avatar/18e4fb369cda4873020839db5911d1d1?s=32&d=identicon" class="avatar s16 avatar-inline" title="Alessandro Rubini"></a><a href="https://ohwr.org/rubini" title="rubini@gnudd.com">Alessandro Rubini</a> <<a href="mailto:rubini@gnudd.com" title="rubini@gnudd.com">rubini@gnudd.com</a>></span>https://ohwr.org/project/wrpc-sw/commit/50d317cbe17cddd8f1ff56ed3ba426ef52a21f75bugfix: 'verbose' depends on PPSI2013-11-07T06:43:08ZAlessandro Rubinirubini@gnudd.com
This fixes the previous commit, which prevented to build wrpc-sw with
CONFIG_PTP_NOPOSIX (silly me).
Signed-off-by: <span data-trailer="Signed-off-by:" data-user="9028"><a href="https://ohwr.org/rubini" title="rubini@gnudd.com"><img alt="Alessandro Rubini's avatar" src="https://secure.gravatar.com/avatar/18e4fb369cda4873020839db5911d1d1?s=32&d=identicon" class="avatar s16 avatar-inline" title="Alessandro Rubini"></a><a href="https://ohwr.org/rubini" title="rubini@gnudd.com">Alessandro Rubini</a> <<a href="mailto:rubini@gnudd.com" title="rubini@gnudd.com">rubini@gnudd.com</a>></span>https://ohwr.org/project/wrpc-sw/commit/d0dcc367fb718d8a00fa9d1a871707c8205fbe11bugfix: enable command 'verbose', lost in commit c44d31f2013-11-04T11:01:23ZAlessandro Rubinirubini@gnudd.comSigned-off-by: <span data-trailer="Signed-off-by:" data-user="9028"><a href="https://ohwr.org/rubini" title="rubini@gnudd.com"><img alt="Alessandro Rubini's avatar" src="https://secure.gravatar.com/avatar/18e4fb369cda4873020839db5911d1d1?s=32&d=identicon" class="avatar s16 avatar-inline" title="Alessandro Rubini"></a><a href="https://ohwr.org/rubini" title="rubini@gnudd.com">Alessandro Rubini</a> <<a href="mailto:rubini@gnudd.com" title="rubini@gnudd.com">rubini@gnudd.com</a>></span>https://ohwr.org/project/wrpc-sw/commit/94e4197585cbebaeec29ec35ce5b9a3141665161updated ppsi to wes-1w2013-11-01T16:25:50ZGrzegorz Danilukgrzegorz.daniluk@cern.chhttps://ohwr.org/project/wrpc-sw/commit/d1e54838658fd89e29a6222e9d6dcb193b11c0e0Merge branch 'w1-eb'2013-11-01T16:07:01ZGrzegorz Danilukgrzegorz.daniluk@cern.chhttps://ohwr.org/project/wrpc-sw/commit/05a0472dcdcd34096c0c38ec4f4860bafb644992softpll: increase samples threshold for locking external 10MHz2013-11-01T15:00:27ZGrzegorz Danilukgrzegorz.daniluk@cern.chhttps://ohwr.org/project/wrpc-sw/commit/0dd65d575007b751934209d6f6cb004472f52997ptp_noposix: disable 1-PPS output when PTP is stopped2013-11-01T13:31:42ZGrzegorz Danilukgrzegorz.daniluk@cern.chhttps://ohwr.org/project/wrpc-sw/commit/f6a5e5b54af9a31a276e17823935d2e113d2bf74fix colors so that they don't break the terminal2013-11-01T13:17:30ZGrzegorz Danilukgrzegorz.daniluk@cern.chhttps://ohwr.org/project/wrpc-sw/commit/c9ff8b072a389bc6acbe895bb22dd26b3e49b5bdtom-rt-fixes: go back to previous gains in spll_main, they produce less jitter2013-11-01T12:38:22ZGrzegorz Danilukgrzegorz.daniluk@cern.chhttps://ohwr.org/project/wrpc-sw/commit/02f6d2aea9c821f2fc399ed59033f2ea298457cbmoved from switch-sw: SPLL, PI gains from Tom's mathematical model2013-11-01T12:38:22ZGrzegorz Danilukgrzegorz.daniluk@cern.chhttps://ohwr.org/project/wrpc-sw/commit/dc619b92a1ddc1a93c56df36382780e1f48c7313moved from switch-sw: SPLL, Tom's biquad filter implementation2013-11-01T12:38:22ZGrzegorz Danilukgrzegorz.daniluk@cern.chhttps://ohwr.org/project/wrpc-sw/commit/8e5c3e8dbe89f8f17b76a7e4b4a9a034c3780033moved from switch-sw: SPLL, slave mode fix2013-11-01T12:38:21ZGrzegorz Danilukgrzegorz.daniluk@cern.ch
Tom's fix for helper PLL, in Slave mode it should use RX clock instead of REF clock.https://ohwr.org/project/wrpc-sw/commit/75b927a4bdb58746c52c6689bfc47cae9ebf0457moved from switch-sw: rewritten phase tracker stuff2013-11-01T12:38:21ZGrzegorz Danilukgrzegorz.daniluk@cern.ch
Tom's fix for WR Switch makes ptracker much faster so that SPLL can handle all 18 ports.https://ohwr.org/project/wrpc-sw/commit/81f2dc6671a06cc3de6778077f495d5d740aa053doc updated for wrpc-2.1 release2013-11-01T12:35:08ZGrzegorz Danilukgrzegorz.daniluk@cern.chhttps://ohwr.org/project/wrpc-sw/commit/215ad93a22c2c542bd035ac7b80692fbb23c0bd6sdb: fix traversal of 3+ deep crossbars2013-10-29T17:25:03ZWesley W. Terpstraw.terpstra@gsi.dehttps://ohwr.org/project/wrpc-sw/commit/c6fdc0c01895d50bc423f79994dcda9352e78256gsi: ppsi now seems to provisionally work2013-10-25T19:38:29ZWesley W. Terpstraw.terpstra@gsi.dehttps://ohwr.org/project/wrpc-sw/commit/b0d20f0c1dd9f0c99c6c422fc02f7a3fd017dc48phtrans: fix bug introduced in 76a225d32013-10-25T19:38:25ZWesley W. Terpstraw.terpstra@gsi.de
Greg's commit to fix the t24p calibration broke that calibration
for devices using sdbfs. The EEPROM write method clobbered the
phase transition value.https://ohwr.org/project/wrpc-sw/commit/52fb757e0e86d8381c7a30df50a8b90d1066e51dw1: build sdbfs if gensdbfs is available2013-10-25T14:47:29ZWesley W. Terpstraw.terpstra@gsi.dehttps://ohwr.org/project/wrpc-sw/commit/8e0370f1c63bf786b907984c5432fdc15b4dd2cbw1: add etherbone tool to format sdbfs2013-10-25T14:39:46ZWesley W. Terpstraw.terpstra@gsi.dehttps://ohwr.org/project/wrpc-sw/commit/089f44f2bee5497e4180f9fa7984748564bbd69dw1: remove duplicated code2013-10-25T14:35:00ZWesley W. Terpstraw.terpstra@gsi.dehttps://ohwr.org/project/wrpc-sw/commit/50f9a2eafaf01fb53e17baa91bbc54ecb996c6dew1-tools: remove dependency on duplicated code2013-10-25T14:34:58ZWesley W. Terpstraw.terpstra@gsi.dehttps://ohwr.org/project/wrpc-sw/commit/4fd8e991a714dcbbc1542dc77c59219777f2ed3bmove stdint.h and inttypes.h to another folder2013-10-25T14:29:13ZWesley W. Terpstraw.terpstra@gsi.de
These headers shadow system headers.
While they are necessary for building on the LM32, it breaks any
code that wants the other WR headers on a different architecture.
By moving these headers, we can pick whether to use them or not.https://ohwr.org/project/wrpc-sw/commit/db038c3cf6b9a5418f760d5c7e6ba333db8b025fMAKEALL: a script to build-test all configs2013-10-17T15:43:45ZAlessandro Rubinirubini@gnudd.comSigned-off-by: <span data-trailer="Signed-off-by:" data-user="9028"><a href="https://ohwr.org/rubini" title="rubini@gnudd.com"><img alt="Alessandro Rubini's avatar" src="https://secure.gravatar.com/avatar/18e4fb369cda4873020839db5911d1d1?s=32&d=identicon" class="avatar s16 avatar-inline" title="Alessandro Rubini"></a><a href="https://ohwr.org/rubini" title="rubini@gnudd.com">Alessandro Rubini</a> <<a href="mailto:rubini@gnudd.com" title="rubini@gnudd.com">rubini@gnudd.com</a>></span>https://ohwr.org/project/wrpc-sw/commit/03e319a2a88787590adc240599f32de9651b85ddsockitowm: removed, as we now run the w1 implementation2013-10-17T15:43:45ZAlessandro Rubinirubini@gnudd.comSigned-off-by: <span data-trailer="Signed-off-by:" data-user="9028"><a href="https://ohwr.org/rubini" title="rubini@gnudd.com"><img alt="Alessandro Rubini's avatar" src="https://secure.gravatar.com/avatar/18e4fb369cda4873020839db5911d1d1?s=32&d=identicon" class="avatar s16 avatar-inline" title="Alessandro Rubini"></a><a href="https://ohwr.org/rubini" title="rubini@gnudd.com">Alessandro Rubini</a> <<a href="mailto:rubini@gnudd.com" title="rubini@gnudd.com">rubini@gnudd.com</a>></span>https://ohwr.org/project/wrpc-sw/commit/f8b2768e3a92685afed4a20c1c5f3878af6ae1a3Kconfig: remove SOCKITOWM; update configs/2013-10-17T15:43:39ZAlessandro Rubinirubini@gnudd.comSigned-off-by: <span data-trailer="Signed-off-by:" data-user="9028"><a href="https://ohwr.org/rubini" title="rubini@gnudd.com"><img alt="Alessandro Rubini's avatar" src="https://secure.gravatar.com/avatar/18e4fb369cda4873020839db5911d1d1?s=32&d=identicon" class="avatar s16 avatar-inline" title="Alessandro Rubini"></a><a href="https://ohwr.org/rubini" title="rubini@gnudd.com">Alessandro Rubini</a> <<a href="mailto:rubini@gnudd.com" title="rubini@gnudd.com">rubini@gnudd.com</a>></span>https://ohwr.org/project/wrpc-sw/commit/c44d31f5bdb92dd667a3303b78be983cefe88f42Kconfig: remove PPSI_VERBOSITY, now gone in ppsi itself2013-10-17T07:36:20ZAlessandro Rubinirubini@gnudd.comSigned-off-by: <span data-trailer="Signed-off-by:" data-user="9028"><a href="https://ohwr.org/rubini" title="rubini@gnudd.com"><img alt="Alessandro Rubini's avatar" src="https://secure.gravatar.com/avatar/18e4fb369cda4873020839db5911d1d1?s=32&d=identicon" class="avatar s16 avatar-inline" title="Alessandro Rubini"></a><a href="https://ohwr.org/rubini" title="rubini@gnudd.com">Alessandro Rubini</a> <<a href="mailto:rubini@gnudd.com" title="rubini@gnudd.com">rubini@gnudd.com</a>></span>https://ohwr.org/project/wrpc-sw/commit/dd3ae945b5a538870c2dbe733b5b91b26f6b1b06softpll: run the PPS pulse as 10ms wide2013-10-17T07:36:20ZAlessandro Rubinirubini@gnudd.com
This is a bigger change than expected, as the width was defined
in two places. So I moved the definition in <wrc.h>, whence everybody
picks it.
Signed-off-by: <span data-trailer="Signed-off-by:" data-user="9028"><a href="https://ohwr.org/rubini" title="rubini@gnudd.com"><img alt="Alessandro Rubini's avatar" src="https://secure.gravatar.com/avatar/18e4fb369cda4873020839db5911d1d1?s=32&d=identicon" class="avatar s16 avatar-inline" title="Alessandro Rubini"></a><a href="https://ohwr.org/rubini" title="rubini@gnudd.com">Alessandro Rubini</a> <<a href="mailto:rubini@gnudd.com" title="rubini@gnudd.com">rubini@gnudd.com</a>></span>https://ohwr.org/project/wrpc-sw/commit/f5fa82e896b17a2df4c6b1f4d34060472c07d5deppsi: new commits, and monitor fix2013-10-17T07:36:20ZAlessandro Rubinirubini@gnudd.comSigned-off-by: <span data-trailer="Signed-off-by:" data-user="9028"><a href="https://ohwr.org/rubini" title="rubini@gnudd.com"><img alt="Alessandro Rubini's avatar" src="https://secure.gravatar.com/avatar/18e4fb369cda4873020839db5911d1d1?s=32&d=identicon" class="avatar s16 avatar-inline" title="Alessandro Rubini"></a><a href="https://ohwr.org/rubini" title="rubini@gnudd.com">Alessandro Rubini</a> <<a href="mailto:rubini@gnudd.com" title="rubini@gnudd.com">rubini@gnudd.com</a>></span>https://ohwr.org/project/wrpc-sw/commit/eedc745df2665229b59c66994304d6358d1fd8e2readout from w1 thermometer has to be non-blocking2013-10-14T15:51:51ZGrzegorz Danilukgrzegorz.daniluk@cern.chhttps://ohwr.org/project/wrpc-sw/commit/8d35d305b1c276b1d97571bfd14c0512b4d4f2fbppsi build: don't refer to ptp-noposix headers any more2013-10-11T10:10:45ZAlessandro Rubinirubini@gnudd.comSigned-off-by: <span data-trailer="Signed-off-by:" data-user="9028"><a href="https://ohwr.org/rubini" title="rubini@gnudd.com"><img alt="Alessandro Rubini's avatar" src="https://secure.gravatar.com/avatar/18e4fb369cda4873020839db5911d1d1?s=32&d=identicon" class="avatar s16 avatar-inline" title="Alessandro Rubini"></a><a href="https://ohwr.org/rubini" title="rubini@gnudd.com">Alessandro Rubini</a> <<a href="mailto:rubini@gnudd.com" title="rubini@gnudd.com">rubini@gnudd.com</a>></span>https://ohwr.org/project/wrpc-sw/commit/a57abcf4e8655e98b08992012cc024bf84c65986remove unused wrc_extra_debug2013-10-11T10:00:43ZAlessandro Rubinirubini@gnudd.com
The variable was used to mask a few diagnostic messages but was always
set to 1. Since such messages are actually few at this time, remove
the variable altogether.
The code, however, included a hardwired check for servo messages, used
by the ptp-noposix callers. This commit preserves the behaviour while
removing the dependency from ptp-noposix headers. The result is ugly
but temporary, because we are going to phase out ptp-noposix.
Signed-off-by: <span data-trailer="Signed-off-by:" data-user="9028"><a href="https://ohwr.org/rubini" title="rubini@gnudd.com"><img alt="Alessandro Rubini's avatar" src="https://secure.gravatar.com/avatar/18e4fb369cda4873020839db5911d1d1?s=32&d=identicon" class="avatar s16 avatar-inline" title="Alessandro Rubini"></a><a href="https://ohwr.org/rubini" title="rubini@gnudd.com">Alessandro Rubini</a> <<a href="mailto:rubini@gnudd.com" title="rubini@gnudd.com">rubini@gnudd.com</a>></span>