Re: [Linuxptp-devel] [PATCH V1 2/2] Add support for write phase mode.

2020-05-24 Thread Richard Cochran
On Mon, May 18, 2020 at 07:58:47AM +, FUSTE Emmanuel wrote: > Perhaps too late, and should have been raised on netdev but why ns > granularity for phase adjustment ? This comes from the traditional NTP timex interface. > Talking about net device phc clock and phase adjustment I directly thin

Re: [Linuxptp-devel] [PATCH V1 2/2] Add support for write phase mode.

2020-05-24 Thread Richard Cochran
On Mon, May 18, 2020 at 09:43:51AM +0200, Miroslav Lichvar wrote: > On Sat, May 16, 2020 at 07:42:26AM -0700, Richard Cochran wrote: > > Recently the Linux kernel's PTP Hardware Clock interface was expanded > > to include a "write phase" mode where the clock servo in implemented > > in hardware. T

[Linuxptp-devel] [PATCH 02/10] tlv: Encode and decode SLAVE_RX_SYNC_TIMING_DATA TLVs.

2020-05-24 Thread Richard Cochran
Signed-off-by: Richard Cochran --- tlv.c | 78 ++- tlv.h | 28 ++--- 2 files changed, 101 insertions(+), 5 deletions(-) diff --git a/tlv.c b/tlv.c index 0cf6d5c..e12e5ae 100644 --- a/tlv.c +++ b/tlv.c @@ -53,6 +53,20 @@ stat

[Linuxptp-devel] [PATCH 09/10] port: Support slave event monitoring of delay timing data.

2020-05-24 Thread Richard Cochran
After a successful message exchange, the delay measurement values are processed by the port code. This patch makes the values available to a monitor by calling the appropriate method. Signed-off-by: Richard Cochran --- port.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/port.c b/port.

[Linuxptp-devel] [PATCH 01/10] tlv: Update macro definitions.

2020-05-24 Thread Richard Cochran
The 2019 version of 1588 known as v2.1 introduces new TLV type and management IDs. This patch adds the new definitions. Signed-off-by: Richard Cochran --- tlv.c | 28 ++-- tlv.h | 19 ++- 2 files changed, 44 insertions(+), 3 deletions(-) diff --git a/tlv

[Linuxptp-devel] [PATCH 00/10] Slave event monitoring

2020-05-24 Thread Richard Cochran
The IEEE 1588 v2.1 standard introduces a new optional feature known as slave event monitoring. This feature defines three new TLVs. 1. SLAVE_RX_SYNC_TIMING_DATA This TLV provides the time stamps T1 and T2 from the message exchange between master and slave. 2. SLAVE_TX_EVENT_TIMESTAMPS

[Linuxptp-devel] [PATCH 04/10] clock: Create a slave event monitor.

2020-05-24 Thread Richard Cochran
Signed-off-by: Richard Cochran --- clock.c | 13 + clock.h | 8 2 files changed, 21 insertions(+) diff --git a/clock.c b/clock.c index a559cd4..f43cc2a 100644 --- a/clock.c +++ b/clock.c @@ -131,6 +131,7 @@ struct clock { struct clockcheck *sanity_check; str

[Linuxptp-devel] [PATCH 08/10] monitor: Add support for slave delay timing data TLV.

2020-05-24 Thread Richard Cochran
The slave delay timing data TLV provides the delay time stamps along with the associated correction field. This patch introduces a method to allow publication of these values to a remote monitor. Signed-off-by: Richard Cochran --- monitor.c | 60 +

[Linuxptp-devel] [PATCH 03/10] Introduce a module for slave event monitoring.

2020-05-24 Thread Richard Cochran
This patch adds a new module for slave event monitoring with its own configuration option, a UDS address. If the option is enabled, then the monitor will send events to the configured address. The default setting produces an inactive monitor that does nothing. Signed-off-by: Richard Cochran ---

[Linuxptp-devel] [PATCH 07/10] tlv: Encode and decode SLAVE_DELAY_TIMING_DATA_NP TLVs.

2020-05-24 Thread Richard Cochran
Signed-off-by: Richard Cochran --- tlv.c | 57 + tlv.h | 20 2 files changed, 77 insertions(+) diff --git a/tlv.c b/tlv.c index e12e5ae..738e404 100644 --- a/tlv.c +++ b/tlv.c @@ -594,6 +594,55 @@ static void org_pre_se

[Linuxptp-devel] [PATCH 06/10] pmc: Show slave receive timing data TLVs attached to signaling messages.

2020-05-24 Thread Richard Cochran
Signed-off-by: Richard Cochran --- pmc.c | 57 + 1 file changed, 57 insertions(+) diff --git a/pmc.c b/pmc.c index 490c140..8e30b1c 100644 --- a/pmc.c +++ b/pmc.c @@ -55,6 +55,59 @@ static char *bin2str(Octet *data, int len) return

[Linuxptp-devel] [PATCH 10/10] pmc: Show slave delay timing data TLVs attached to signaling messages.

2020-05-24 Thread Richard Cochran
Signed-off-by: Richard Cochran --- pmc.c | 29 + 1 file changed, 29 insertions(+) diff --git a/pmc.c b/pmc.c index 8e30b1c..65d1d61 100644 --- a/pmc.c +++ b/pmc.c @@ -58,6 +58,20 @@ static char *bin2str(Octet *data, int len) #define SHOW_TIMESTAMP(ts) \ ((uin

[Linuxptp-devel] [PATCH 05/10] port: Support slave event monitoring of Sync timing data.

2020-05-24 Thread Richard Cochran
The monitoring module accepts Sync timing events. This patch hooks up the port receive path to call into the monitor. Signed-off-by: Richard Cochran --- port.c | 22 +++--- port_private.h | 3 +++ 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/port.c b/