- 20 Mar, 2017 1 commit
-
-
Alessandro Rubini authored
It was by me fore me, and I'm not using it. Simplify. Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
- 14 Mar, 2017 1 commit
-
-
Adam Wujek authored
Signed-off-by: Adam Wujek <adam.wujek@cern.ch>
-
- 08 Mar, 2017 1 commit
-
-
Adam Wujek authored
When two masters are connected to the same link one of them tries to enter a state pre-master. However, this state is not compiled in the ppsi, so one node stuck there forever. It is necessary to restart a node or re-establish a link. BUG introduced by a PPSI's commit: 2996dd7b compliance, 9.2.6.10: properly switch to MASTER or PRE_MASTER Signed-off-by: Adam Wujek <adam.wujek@cern.ch>
-
- 06 Mar, 2017 1 commit
-
-
Adam Wujek authored
Add casting for delay_ms_fix calculations, otherwise ((s->picos_mu - big_delta_fix) * s->fiber_fix_alpha) is shifted as unsigned. Signed-off-by: Adam Wujek <adam.wujek@cern.ch>
-
- 05 Mar, 2017 1 commit
-
-
Alessandro Rubini authored
If meanPathDelay is calculated negative at the first iteration, we must zero it immediately, or this will loop forever: while (mpd_fltr->y >> (63 - s)) --s; The bug only appears with e2e mechanism, where t3 happens long after t2, if the slave clock when ppsi starts is running much slower than the master. Before changing data structures we used abs() in that loop (which was suboptimal), and I made a mistake in converting it in a check before the loop itlsef. Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
- 03 Mar, 2017 7 commits
-
-
Adam Wujek authored
Signed-off-by: Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Increment due to cField changes Signed-off-by: Adam Wujek <adam.wujek@cern.ch>
-
Alessandro Rubini authored
There is still some factorization to make, and other irrelevant size-related things, but I'd better wait a little and get confident this stuff is solid. Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
I got wrong several times with this. Time to fix. The correctionField is part of the timestamp, so it's better dealt with when the timestamp is recovered. NOTE: correctionfields in the "response" direction should be subtracted. We always added isntead, and we keep addition for compatibility. Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
- 01 Mar, 2017 6 commits
-
-
Alessandro Rubini authored
Commit cc014e83 centralized the checks, but this was lost Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
We are not yet at a full 64-bit clean implementation. Actually, printing secs as unsigned 32 bits will survive 2038, but pp_printf with the default XINT implementation doesn't support unsigned. And XINT is still kept because it's smaller, important issue on our nodes. Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
- 28 Feb, 2017 4 commits
-
-
Adam Wujek authored
Signed-off-by: Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Signed-off-by: Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Signed-off-by: Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
CONFIG_HAS_P2P is always defined as 0 or 1 revert 6de6467f Use #if CONFIG_HAS_P2P == 1 instead Signed-off-by: Adam Wujek <adam.wujek@cern.ch>
-
- 27 Feb, 2017 10 commits
-
-
Alessandro Rubini authored
This tool can be used to force overflows of the input fifo. Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Currently it only exports the rxdrop/txdrop feature. Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Avoid this for dropped frames: diag-frames-1-wr1: RECV -2 bytes at 88.000000112 (type 8, follow_up) diag-frames-1-wr1: RECV -2 bytes at 88.000000112 (type 8, follow_up) diag-frames-1-wr1: RECV -2 bytes at 109520.000000088 (type 8, follow_up) Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
See gcc info pages: "Macros with a Variable Number of Arguments." The ISO-C stadanrd doesn't allow varargs macros to get zero or more arguments. So this fixes the problem using the gcc extension. A standard-compliant alternative would be to have "fmt" included in the variadic part, like this: #define assert(cond, ...) \ if (CONFIG_HAS_ASSERT && !(cond)) \ __assert(__func__, __LINE__, 1 /* forever */, __VA_ARGS__) But the reader wouldn't now it's a fmt+args. Signed-off-by: Alessandro Rubini <rubini@gnudd.com> Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
For wrpc-sw, this depends on a similar commit in wrpc-sw, because arch-wrpc relies on that implementation (to avoid building two of them). Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
arch-wrs/Makefile was building arch-unix/conf.o . Make a local copy instead, as we'll add more fault-injection stuff. Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Dimitris Lampridis authored
-
Adam Wujek authored
In WRPC calibration took too long, it was possible that some frames received (including PTP) on a network interface were lost due to RX fifo beeing full. Signed-off-by: Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Another try to fix makefile Signed-off-by: Adam Wujek <adam.wujek@cern.ch>
-
- 24 Feb, 2017 3 commits
-
-
Alessandro Rubini authored
A stupid error when changing data type. Pity me. Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
- 23 Feb, 2017 5 commits
-
-
Alessandro Rubini authored
At frame level 1, we should print tx/rx timestamps we get. Also, fix the printout to use %llx for the "secs" field, now that is is 64 bits (2038 is coming). Meanwhile, remove some redundant "if (t)", because all frame operations have called with a valid timestamp pointer. Signed-off-by: Alessandro Rubini <rubini@gnudd.com> bah! next commit Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
This bug was introduced in commit 4c6953fb unix and wrs socket: open in non-blocking mode and report ... because I unwillingly removed the ptpdump feature for outbount udp frames. This puts back in place the lost message. Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Adam Wujek authored
To avoid triggering .config target at clean. Put explicit target for $(CURDIR)/.config Signed-off-by: Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Signed-off-by: Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
This change is needed by WRPC, since it wants to include file with shmem version in the assembly file. Signed-off-by: Adam Wujek <adam.wujek@cern.ch>
-