Re: [Linuxptp-devel] [PATCHv2 3/6] tsproc: add raw and weighting modes.

2015-03-26 Thread Richard Cochran
On Tue, Mar 17, 2015 at 11:28:22AM +0100, Miroslav Lichvar wrote: Add new time stamp processing modes to return raw delay and offset based on the raw delay instead of the long-term filtered delay, and to return also a weight of the sample. The weight is set to the ratio between the two delays.

[Linuxptp-devel] how to measure frequency offset without correcting?

2015-03-26 Thread Keller, Jacob E
Hey, I am attempting to use phc2sys and debug some new hardware, and I want to be able to sort of free-running mode measure the difference clock offset and frequency offset, but without actually passing corrections. Is there a way to do this? The reason for this is that I believe that my adjfreq

Re: [Linuxptp-devel] how to measure frequency offset without correcting?

2015-03-26 Thread Gary E. Miller
Yo Jacob E! On Thu, 26 Mar 2015 22:28:58 + Keller, Jacob E jacob.e.kel...@intel.com wrote: I am attempting to use phc2sys and debug some new hardware, and I want to be able to sort of free-running mode measure the difference clock offset and frequency offset, but without actually passing

[Linuxptp-devel] [PATCHv3 3/6] tsproc: add raw and weighting modes.

2015-03-26 Thread Miroslav Lichvar
Add new time stamp processing modes to return raw delay and offset based on the raw delay instead of the long-term filtered delay, and to return also a weight of the sample. The weight is set to the ratio between the two delays. This gives smaller weight to samples where the sync and/or delay

[Linuxptp-devel] [PATCHv3 5/6] linreg: use sample weight.

2015-03-26 Thread Miroslav Lichvar
Signed-off-by: Miroslav Lichvar mlich...@redhat.com --- linreg.c | 48 1 file changed, 28 insertions(+), 20 deletions(-) diff --git a/linreg.c b/linreg.c index 3f7fe9a..8f354f4 100644 --- a/linreg.c +++ b/linreg.c @@ -42,6 +42,7 @@ struct point {

[Linuxptp-devel] [PATCHv3 0/6] Improve accuracy with software timestamping

2015-03-26 Thread Miroslav Lichvar
Changes since v2: - fix swapped origin/ingress timestamps in port_nrate_calculate() - use one field per line in tsproc struct - use tmv_is_zero() - don't allow NULL offset in tsproc_update_offset() Changes since v1: - include the changes to refactor time stamp processing - raw and weighting modes

[Linuxptp-devel] [PATCHv3 6/6] pi: use sample weight.

2015-03-26 Thread Miroslav Lichvar
Signed-off-by: Miroslav Lichvar mlich...@redhat.com --- pi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pi.c b/pi.c index 9c7b148..e0116fe 100644 --- a/pi.c +++ b/pi.c @@ -137,8 +137,8 @@ static double pi_sample(struct servo *servo, break;

[Linuxptp-devel] [PATCHv3 4/6] servo: add support for weighted samples.

2015-03-26 Thread Miroslav Lichvar
Add weight parameter to the sample function. Samples with smaller weight are less reliable, they can be ignored by the servo or the adjustments of the clock can be smaller. Signed-off-by: Miroslav Lichvar mlich...@redhat.com --- clock.c | 6 +++--- linreg.c| 1 + ntpshm.c

[Linuxptp-devel] [PATCHv3 2/6] Refactor time stamp processing.

2015-03-26 Thread Miroslav Lichvar
Introduce a time stamp processor for offset/delay calculations and use it in the clock and port modules. Signed-off-by: Miroslav Lichvar mlich...@redhat.com --- clock.c | 100 ++- clock.h | 5 +- makefile | 2 +- port.c | 39 --- tsproc.c