Re: [Linuxptp-devel] [PATCH v3 1/3] Adding virtual PTP port support

2022-10-06 Thread SyncMonk Tech Services
Hi Richard, Please let us know if there are any action items on us related to this or other patches raised by SyncMonk. Thanks, SyncMonk Technologies. On Tue, 6 Sept 2022 at 19:32, Miroslav Lichvar wrote: > On Tue, Sep 06, 2022 at 06:45:38AM -0700, Richard Cochran wrote: > > On Mon, Sep 05,

[Linuxptp-devel] [PATCH v2 1/3] ts2phc: Rename pps_sink to tod_sink in main()

2022-10-06 Thread Maciek Machnikowski
From: Maciej Machnikowski Rename pps_sink to tod_sink, as it stores the source of the time of day Signed-off-by: Maciej Machnikowski --- ts2phc.c | 19 ++- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/ts2phc.c b/ts2phc.c index f7a57e4..67f2de6 100644 ---

[Linuxptp-devel] [PATCH v2 3/3] ts2phc: Use system time as the default ToD source

2022-10-06 Thread Maciek Machnikowski
From: Maciej Machnikowski If no other Time of Day source is specified use the system timer by default. Signed-off-by: Maciej Machnikowski --- config.c | 2 +- ts2phc.8 | 1 + ts2phc.c | 6 -- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/config.c b/config.c index

[Linuxptp-devel] [PATCH v2 2/3] ts2phc: Add option to specify the ToD source in the config file

2022-10-06 Thread Maciek Machnikowski
From: Maciej Machnikowski Current implementation requires specifying the -s argument for PPS sources that don't provide ToD information and for GNSS modules. Add ts2phc.tod_source config option to enable specifying the source in the config file. Currently only "generic" and "nmea" options are

Re: [Linuxptp-devel] PTP4L failing to create clock on Marvell CN9130 ARM Platform

2022-10-06 Thread Miroslav Lichvar
On Thu, Oct 06, 2022 at 08:30:21AM +, Mohan K (mohk) via Linuxptp-devel wrote: > As a first step we are trying SW timestamp. But, hit the problem in > clock_create() function. > > Clock is not getting created. But ethtool provides the SW timestamping > capability SOF_TIMESTAMPING_SOFTWARE

[Linuxptp-devel] PTP4L failing to create clock on Marvell CN9130 ARM Platform

2022-10-06 Thread Mohan K (mohk) via Linuxptp-devel
Hi All, We are working on bringing up ptp4l on Marvell CN9130 ARM Platform. As a first step we are trying SW timestamp. But, hit the problem in clock_create() function. Clock is not getting created. But ethtool provides the SW timestamping capability SOF_TIMESTAMPING_SOFTWARE is enabled. Any

[Linuxptp-devel] [PATCH 3/3] Extend clockcheck to check for changes in frequency.

2022-10-06 Thread Miroslav Lichvar
Before setting the new frequency offset on a clock update, compare the current frequency with the value saved from the previous update and print a warning message if they are different. This should detect misconfigurations where multiple processes are trying to control the clock (e.g. another

[Linuxptp-devel] [PATCH 1/3] phc2sys: Add clocks after processing configuration.

2022-10-06 Thread Miroslav Lichvar
Clocks specified by the -c option, or the default CLOCK_REALTIME, were added before the default values (e.g. sanity_freq_limit) were set in the private structure used by clock_add(). Rework the code to save the names of sink clocks from command line and add them only after the configuration is

[Linuxptp-devel] [PATCH 0/3] Bug fix and improved clockcheck

2022-10-06 Thread Miroslav Lichvar
This set improves the clock check to consider the last frequency set by ptp4l/phc2sys in order to detect cases where multiple processes are trying to control the same clock due to a misconfiguration or bug. The first two patches fix a recent bug in phc2sys and remove an old workaround to enable

[Linuxptp-devel] [PATCH 2/3] Drop support for old kernels returning zero frequency.

2022-10-06 Thread Miroslav Lichvar
Some ancient kernels had a bug in reading of the clock frequency, which was worked around by commit da347d7a36f2 ("ptp4l: Set clock frequency on start"). Drop this workaround and support for the old kernels to make clockadj_get_freq() useful. Signed-off-by: Miroslav Lichvar --- clock.c | 7