[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 are configurable (disabled by default)

This adds new time stamp processing modes that are suitable with
software time stamping.

The idea is to give smaller weights to samples where the sync and/or
delay messages were delayed significantly in the network and possibly
include a large error. The sample offset is based directly on the
sample delay instead of the long-term filtered delay and the sample
weight is set to the ratio of the sample delay to the long-term
average. E.g. if the measured delay is normally 1 ms and the new
sample has 10ms delay, the sample weight (and the clock adjustment
that will be made) will be 10 times smaller.

Miroslav Lichvar (6):
  Convert and correct time stamps early.
  Refactor time stamp processing.
  tsproc: add raw and weighting modes.
  servo: add support for weighted samples.
  linreg: use sample weight.
  pi: use sample weight.

 clock.c | 143 ---
 clock.h |  24 +++
 config.c|  24 +++
 config.h|   1 +
 default.cfg |   1 +
 ds.h|   2 +
 gPTP.cfg|   1 +
 linreg.c|  49 --
 makefile|   2 +-
 ntpshm.c|   1 +
 phc2sys.c   |   2 +-
 pi.c|   5 +-
 port.c  |  82 +--
 ptp4l.8 |   8 +++
 ptp4l.c |   1 +
 servo.c |   3 +-
 servo.h |   3 +
 servo_private.h |   2 +-
 tsproc.c| 204 
 tsproc.h| 110 ++
 20 files changed, 491 insertions(+), 177 deletions(-)
 create mode 100644 tsproc.c
 create mode 100644 tsproc.h

-- 
2.1.0


--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
Linuxptp-devel mailing list
Linuxptp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel


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

2015-03-30 Thread Richard Cochran
On Thu, Mar 26, 2015 at 04:32:11PM +0100, Miroslav Lichvar wrote:
> 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 are configurable (disabled by default)
> 
> This adds new time stamp processing modes that are suitable with
> software time stamping.

Series applied.

Thanks,
Richard

--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
Linuxptp-devel mailing list
Linuxptp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel


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

2015-03-30 Thread Miroslav Lichvar
On Mon, Mar 30, 2015 at 11:07:16AM +0200, Richard Cochran wrote:
> On Thu, Mar 26, 2015 at 04:32:11PM +0100, Miroslav Lichvar wrote:
> > This adds new time stamp processing modes that are suitable with
> > software time stamping.
> 
> Series applied.

Thanks!

-- 
Miroslav Lichvar

--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
Linuxptp-devel mailing list
Linuxptp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel