Re: [Linuxptp-devel] [PATCH v2 1/4] clockadj: return error if failed to adjust clock

2023-02-14 Thread Richard Cochran
On Mon, Feb 13, 2023 at 01:24:27PM +, Wojtek Wasko via Linuxptp-devel wrote: > Current clockadj code only prints a message in case the kernel returns > an error for a clock adjustment and prevents the higher-level code from > reacting to failure. > > Signed-off-by: Wojciech Wasko Series

[Linuxptp-devel] [PATCH v5 02/11] tlv: Encode and decode power profile TLVs.

2023-02-14 Thread Richard Cochran
Signed-off-by: Richard Cochran --- tlv.c | 36 tlv.h | 24 2 files changed, 60 insertions(+) diff --git a/tlv.c b/tlv.c index 7a2a4fa..fb807e8 100644 --- a/tlv.c +++ b/tlv.c @@ -35,6 +35,7 @@ (tlv->length < sizeof(struct

[Linuxptp-devel] [PATCH v5 08/11] Add the ALTERNATE_TIME_OFFSET_NAME management message.

2023-02-14 Thread Richard Cochran
Signed-off-by: Richard Cochran --- clock.c | 21 +++- pmc.c| 9 + pmc_common.c | 56 +++- tlv.c| 11 +++ tlv.h| 5 + 5 files changed, 100 insertions(+), 2 deletions(-) diff --git

[Linuxptp-devel] [PATCH v5 11/11] Introduce a time zone helper program.

2023-02-14 Thread Richard Cochran
The ptp4l program supports up to four time zones via the ALTERNATE_TIME_OFFSET_INDICATOR TLV. Introduce a helper program that leverages the local time zone database to monitor for changes in daylight savings time and publishing them. Signed-off-by: Richard Cochran --- makefile | 7 +-

[Linuxptp-devel] [PATCH v5 03/11] Introduce the power profile.

2023-02-14 Thread Richard Cochran
Signed-off-by: Richard Cochran --- config.c| 15 +- port.c | 53 + port_private.h | 3 +++ power_profile.h | 31 + tlv.h | 8 5 files changed, 109 insertions(+), 1

[Linuxptp-devel] [PATCH v5 05/11] tlv: Encode and decode alternate time offset indicator TLVs.

2023-02-14 Thread Richard Cochran
Signed-off-by: Richard Cochran --- tlv.c | 58 ++ tlv.h | 26 ++ 2 files changed, 84 insertions(+) diff --git a/tlv.c b/tlv.c index 66d797a..81982c6 100644 --- a/tlv.c +++ b/tlv.c @@ -78,6 +78,22 @@ static uint16_t

[Linuxptp-devel] [PATCH v5 01/11] Accept the full range for domainNumber.

2023-02-14 Thread Richard Cochran
IEEE Std C37.238 invented its own rules with respect to the range of values allowed for the domainNumber attribute. The profile "complies with IEEE Std 1588-2008 with the exception of the use of the reserved domain 254. The value 254 is an exception granted to this profile." In

[Linuxptp-devel] [PATCH v5 10/11] pmc: Convert internal helper function into global method.

2023-02-14 Thread Richard Cochran
The function to set the alternate time offset name, a.k.a. time zone, will be used by the time zone stand alone program. Make the function into a public PMC method. Signed-off-by: Richard Cochran --- pmc_common.c | 5 ++--- pmc_common.h | 2 ++ 2 files changed, 4 insertions(+), 3 deletions(-)

[Linuxptp-devel] [PATCH v5 06/11] Prepare clock based storage of up to four time zones.

2023-02-14 Thread Richard Cochran
Signed-off-by: Richard Cochran --- clock.c | 19 --- tz.h| 26 ++ 2 files changed, 42 insertions(+), 3 deletions(-) create mode 100644 tz.h diff --git a/clock.c b/clock.c index e9072ab..2c9e3f3 100644 --- a/clock.c +++ b/clock.c @@ -42,6 +42,7 @@

[Linuxptp-devel] [PATCH v5 07/11] Add the ALTERNATE_TIME_OFFSET_PROPERTIES management message.

2023-02-14 Thread Richard Cochran
Signed-off-by: Richard Cochran --- clock.c | 70 +--- pmc.c| 17 + pmc_common.c | 24 +- tlv.c| 21 util.h | 7 ++ 5 files changed, 134 insertions(+), 5 deletions(-) diff

[Linuxptp-devel] [PATCH v5 09/11] Implement the ALTERNATE_TIME_OFFSET_ENABLE management message.

2023-02-14 Thread Richard Cochran
If the local PTP management client enables a time zone, append the matching TLV to outgoing Announce messages. Signed-off-by: Richard Cochran --- clock.c | 80 ++-- clock.h | 8 ++ pmc.c| 8 ++ pmc_common.c | 17

[Linuxptp-devel] [PATCH v5 04/11] Add a custom management message for power profile settings.

2023-02-14 Thread Richard Cochran
Signed-off-by: Richard Cochran --- pmc.c| 15 +++ pmc_common.c | 37 + port.c | 20 +++- tlv.c| 20 tlv.h| 1 + 5 files changed, 92 insertions(+), 1 deletion(-) diff --git a/pmc.c

[Linuxptp-devel] [PATCH v5 00/11] Profile support for IEEE C37.238-2011 and IEEE C37.238-2017

2023-02-14 Thread Richard Cochran
ChangeLog ~ v5: Rename tztool to tz2alt Provide man page for tz2alt Fix year 2106 bug v4: Preserve all 48 bits of "next jump" (v3 review feedback from Erez Geva) Accept the full range for domainNumber (suggested by v.nosikov) v3: Initial RFC v2, v1: never published The Power

Re: [Linuxptp-devel] [PATCH v4 11/11] Introduce a time zone helper program.

2023-02-14 Thread Richard Cochran
On Mon, Feb 13, 2023 at 12:11:08PM +0100, Miroslav Lichvar wrote: > The lsb field of timeOfNextJump is unsigned, so it will overflow in > year 2106 (in the TAI timescale). Some of the power industry equipment lasts 30 or 40 years (except in California where they make it out of sugar, and it