Re: [Linuxptp-devel] [PATCH v3 4/6] Add a push notification for the CMLDS TLV.

2023-12-06 Thread Erez
On Tue, 5 Dec 2023 at 08:59, Miroslav Lichvar wrote: > On Mon, Dec 04, 2023 at 11:25:00PM +0100, Andrew Zaborowski wrote: > > On Sun, 3 Dec 2023 at 00:39, Richard Cochran > wrote: > > > @@ -306,13 +307,15 @@ static void do_set_action(struct pmc *pmc, int > action, int index, char *str) > > >

Re: [Linuxptp-devel] [PMC] delay_timeout counter of PortServiceStats unusable

2023-11-29 Thread Erez
"wrong" value, it probably comes from the ptp4l service itself. Erez > > BR, > Paz > ___ > Linuxptp-devel mailing list > Linuxptp-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/linuxptp-devel

Re: [Linuxptp-devel] [PATCH v2] Add support for DELAY_REQ and SYNC packets RX filters

2023-11-29 Thread Erez
The PTP service is a master or client, not both. So the amount of traffic you timestamp does not reduce by using a SYNC/ DELY versa events filter. Erez > > -- > Miroslav Lichvar > > > > ___ > Linuxptp-devel mailing list > Linuxp

Re: [Linuxptp-devel] [PATCH] Add scaledLastGmFreqChange computation

2023-11-29 Thread Erez
. TIME_STATUS_NP was added in september 2012 and published in version 1.1. You can fix calculations of values in the TLV, but not sizes, types, order or *NAMES*. Wireshark should follow IEEE 1588 and linuxptp enterprise management TLVs, not the other way around. Erez On Wed, 29 Nov 2023 at 07:52, Choong

Re: [Linuxptp-devel] [PATCH v2] Add support for DELAY_REQ and SYNC packets RX filters

2023-11-28 Thread Erez
ts as they don't have timestamp each other's > delay requets and timestamping of sync messages is more reliable. > PTP traffic by its nature is very low. I do not see any benefit for a filter that supports only client or only master PTP traffic. Perhaps the kernel should add a HWTSTAMP_FILTER

Re: [Linuxptp-devel] [PATCH v2] Add support for DELAY_REQ and SYNC packets RX filters

2023-11-28 Thread Erez
Hi, Debian builds allow using patches during building of Debian packages. Erez On Tue, 28 Nov 2023 at 00:48, Richard Cochran wrote: > On Mon, Nov 27, 2023 at 10:47:48AM +0300, IlorDash wrote: > > Thanks, Richard, for such a detailed answer! > > I'll try to find another s

Re: [Linuxptp-devel] [PATCH] Add scaledLastGmFreqChange computation

2023-11-27 Thread Erez
On Sun, 26 Nov 2023 at 22:07, Richard Cochran wrote: > On Thu, Nov 23, 2023 at 01:39:45PM +0100, Erez wrote: > > On Thu, 23 Nov 2023 at 04:26, Chwee-Lin Choong < > chwee.lin.cho...@intel.com> > > wrote: > > > > > Add the computation for scaledLastGmFreqCha

Re: [Linuxptp-devel] [PATCH] Add scaledLastGmFreqChange computation

2023-11-23 Thread Erez
in the header where the TLV is defined. Erez > > Signed-off-by: Tan Tee Min > Signed-off-by: Chwee-Lin Choong > --- > clock.c | 59 + > clock.h | 7 +++ > pmc.c | 4 ++-- > port.c | 5 +++-- > tl

Re: [Linuxptp-devel] [PATCH] lstab: Update leapfile validity

2023-11-21 Thread Erez
move these obsolete URLs? Erez On Tue, 21 Nov 2023 at 09:35, Maciek Machnikowski wrote: > No leap seconds will happen till 28 June 2024. Update leapfile validity > accordingly. > Add a new source of leapsecond file from the IERS. > > Signed-off-by: Maciek Machnikowski > --- &

Re: [Linuxptp-devel] linuxptp doesn't detect HW timestamp capability of BCM57416

2023-11-17 Thread Erez
pports PTP or not. Anyhow this mailing list is for linuxptp and not for Broadcom's NIC. You should try in forums for Broadcom NICs. Or Linux kernel modules forums. Erez Hardware Transmit Timestamp Modes: none > > Hardware Receive Filter Modes: none > > > > The kernel ver

Re: [Linuxptp-devel] [PATCH] Add support for DELAY_REQ and SYNC packets rx_filter

2023-11-14 Thread Erez
On Mon, 13 Nov 2023 at 18:49, IlorDash wrote: > From: Ilya Orazov > > Added adv_rx_filter config that allows to send SIOCSHWTSTAMP ioctl with > HWTSTAMP_FILTER_PTP_XXX_SYNC or HWTSTAMP_FILTER_PTP_XXX_DELAY_REQ > rx filters based on whether the Device is Slave or Master respectively. > This Featu

Re: [Linuxptp-devel] [RFC PATCH 0/1] Support for Port level Perforamnce Monitoring Counters

2023-11-13 Thread Erez
I think Richard means using the SUBSCRIBE_EVENTS_NP. Adding new events, and make sure the ptp4l sends all the statistics you need together. Erez On Sat, 11 Nov 2023 at 19:02, Luigi 'Comio' Mantellini < luigi.mantell...@gmail.com> wrote: > Thanks for your time. > > Wh

Re: [Linuxptp-devel] [PATCH v2 2/2] Some hardware can't properly timestamp packets with the new PTP header version 2.1. This patch adds legacy_ptp_ver config option that allows advertising of the lega

2023-11-10 Thread Erez
On Fri, 10 Nov 2023 at 14:05, Maciek Machnikowski wrote: > Additionally, forcing PTP minor version to be nonzero causes > interoperability issues with some legacy grandmasters. > > Signed-off-by: Maciek Machnikowski > --- > config.c| 1 + > configs/default.cfg | 1 + > ptp4l.8

Re: [Linuxptp-devel] [PATCH 5/5] phc2sys: Stop synchronization when ptp4l stops responding.

2023-11-10 Thread Erez
omain->phc_interval) * 3); > I think it is better to use MAX(10, domain->phc_interval) Instead of (10 > domain->phc_interval ? 10 : domain->phc_interval) You may add #define MAX(a, b) ((a) > (b) ? (a) : (b)) Erez > Would it simplify things just to change the 180,60 constants >

Re: [Linuxptp-devel] [PATCH 2/2] linuxptp: Use ${CC} in incdefs.sh

2023-10-20 Thread Erez
On Fri, 20 Oct 2023 at 18:35, Luca Fancellu wrote: > > > > On 20 Oct 2023, at 16:57, Erez wrote: > > > > Hi, > > > > Your statement is correct, but not the implementation. > > You need to export CC from the makefile, to get > > CC = $(CROSS_COMPIL

Re: [Linuxptp-devel] [PATCH 2/2] linuxptp: Use ${CC} in incdefs.sh

2023-10-20 Thread Erez
www.gnu.org/software/make/manual/html_node/Setting.html Erez On Thu, 19 Oct 2023 at 17:10, Luca Fancellu wrote: > The Makefile is defining CC and incdefs.sh is using > ${CROSS_COMPILE}cpp inside it, allowing both to use different > compilers depending on what the user pass during make

Re: [Linuxptp-devel] [PATCH RESEND v1 2/5] phc_ctl: Add phase command to support ADJ_OFFSET

2023-09-06 Thread Erez
et_arg, -DBL_MAX, DBL_MAX); > + switch (r) { > + case PARSED_OK: > + break; > + case MALFORMED: > + pr_err("phase: '%s' is not a valid double", cmdv[0]); > + return -2; > + case OUT_OF_RANGE: > +

Re: [Linuxptp-devel] [PATCH RESEND v1 3/5] phc_ctl: Add maximum offset capability

2023-09-05 Thread Erez
official kernel. :-) https://elixir.bootlin.com/linux/v6.5/source/include/uapi/linux/ptp_clock.h#L204 Erez > > Signed-off-by: Rahul Rameshbabu > --- > missing.h | 9 + > phc_ctl.c | 4 > 2 files changed, 9 insertions(+), 4 deletions(-) > > diff --git

Re: [Linuxptp-devel] [PATCH RESEND v1 5/5] phc_ctl: Handle errors returned by various clockadj helpers

2023-09-05 Thread Erez
o PHC phase control > keyword", > - offset_arg); > + if (!clockadj_set_phase(clkid, nsecs)) > + pr_notice("offset of %lf seconds provided to PHC phase > control keyword", > + offset_arg); > And here Erez > > /* phas

Re: [Linuxptp-devel] [RFC PATCH 0/1] Support for Port level Perforamnce Monitoring Counters

2023-08-18 Thread Erez
h the SET and the RESPONSE, the index value is the same. Although the standard forbids setting a static or nonconfigurable value. It also forbids mixing, so what about using only nonconfigurable and non-static values? I think we can skip this rule for statistics. And as the index and the statistic

Re: [Linuxptp-devel] [PATCH v2 1/6] Add doubly attached clock support

2023-07-26 Thread Erez
On Wed, 26 Jul 2023 at 04:39, Richard Cochran wrote: > On Tue, Jul 04, 2023 at 12:30:38PM +0200, Stephan Wurm wrote: > > > diff --git a/fsm.h b/fsm.h > > index 857af05..919e934 100644 > > --- a/fsm.h > > +++ b/fsm.h > > @@ -31,6 +31,7 @@ enum port_state { > > PS_PASSIVE, > > PS_UNCALI

Re: [Linuxptp-devel] [PATCH] PHC Index is invalid in phc2sys when ptp4l is in free_running mode.

2023-07-25 Thread Erez
On Sun, 23 Jul 2023 at 21:28, Saravanan Arunachalam via Linuxptp-devel < linuxptp-devel@lists.sourceforge.net> wrote: > The pmc call to ptp4l to get phc_index returns invalid value since in > free_running mode, ptp4l sets phc_index to -1. Adding a socket call in > phc2sys to get the phc_index. >

Re: [Linuxptp-devel] G.8275.2 after clearing fault

2023-07-12 Thread Erez
ndling to filter them. You might need a link detection protocol like LLDP. Erez > I used this patch to solve a problem. It clears the client list, if port > goes to faulty state. > That sounds like a daemon restart. > > Index: linuxptp-2.0/port.c > ===

Re: [Linuxptp-devel] PTP4L over IPv6 doesn't converge clock

2023-07-09 Thread Erez
On Mon, 10 Jul 2023 at 04:08, Vladimir Dubrovsky wrote: > Hello Erez, > > Thank you for your time. > > I think the problem is not in Ethernet driver, because all applications > over IPv6 work fine, at least I am not aware of a problem. PTP over IPv4 > works fine as well.

Re: [Linuxptp-devel] PTP4L over IPv6 doesn't converge clock

2023-07-08 Thread Erez
. Erez On Fri, 7 Jul 2023 at 20:46, Vladimir Dubrovsky via Linuxptp-devel < linuxptp-devel@lists.sourceforge.net> wrote: > Hello, > > I have a problem with ptp4l working with IPv6 messages. > > We use Linux version 4.19.0+ and ptp4l version 3.1. > > Everythi

Re: [Linuxptp-devel] [PATCH v4 4/4] phc_ctl: add get_pins_cfg command to display pin functions

2023-06-26 Thread Erez
lkid, int cmdc, char *cmdv[]) > +{ > + struct ptp_pin_desc pin_desc; > + unsigned int index; > + int n_pins; > + > + if (clkid >= 0) { > + pr_warning("The provided clock is not a PHC device."); > + return 0; >

Re: [Linuxptp-devel] [PATCH v3 3/3] phc_ctl: add get_pins_cfg command to display pin functions

2023-06-24 Thread Erez
On Fri, 23 Jun 2023 at 19:03, Jacob Keller wrote: > > > On 6/23/2023 2:08 AM, Erez wrote: > > On Fri, 23 Jun 2023 at 09:07, Jacob Keller > wrote: > > > >> Add a new function to phc_ctl to display the devices pin configuration > >> data. First, obtai

Re: [Linuxptp-devel] [PATCH v3 1/3] phc: dynamically try PTP_PIN_SETFUNC2 and fallback to PTP_PIN_SETFUNC

2023-06-24 Thread Erez
On Fri, 23 Jun 2023 at 18:55, Jacob Keller wrote: > > > On 6/23/2023 1:44 AM, Erez wrote: > > On Fri, 23 Jun 2023 at 09:07, Jacob Keller > wrote: > > > >> The phc library currently selects whether to use PTP_PIN_SETFUNC2 over > >> PTP_PIN_SETFUNC

Re: [Linuxptp-devel] [PATCH v3 3/3] phc_ctl: add get_pins_cfg command to display pin functions

2023-06-23 Thread Erez
On Fri, 23 Jun 2023 at 09:07, Jacob Keller wrote: > Add a new function to phc_ctl to display the devices pin configuration > data. First, obtain the device capabilities to determine the number of > pins. Then, for each pin, print the name, function, and channel > information. > > Signed-off-by: J

Re: [Linuxptp-devel] [PATCH v3 1/3] phc: dynamically try PTP_PIN_SETFUNC2 and fallback to PTP_PIN_SETFUNC

2023-06-23 Thread Erez
better to checkthe ptp_pin_desc structure https://elixir.bootlin.com/linux/v6.4-rc7/source/include/uapi/linux/ptp_clock.h#L174 Once we have new properties there. Then we can use PTP_PIN_SETFUNC2. Erez > > Signed-off-by: Jacob Keller > --- > missing.h | 7 ++- > phc.c | 7

Re: [Linuxptp-devel] [PATCH 0/5] General improvements for linuxptp focused around phase adjustment

2023-06-22 Thread Erez
On Wed, 21 Jun 2023 at 01:13, Rahul Rameshbabu wrote: > Hi Erez, > > On Wed, 21 Jun, 2023 00:33:28 +0200 Erez wrote: > > Hi, > > > > You already submitted the patch seria. > > Has it changed? > > Yes, I took feedback from the RFC (request for commen

Re: [Linuxptp-devel] [PATCH 0/5] General improvements for linuxptp focused around phase adjustment

2023-06-20 Thread Erez
Hi, You already submitted the patch seria. Has it changed? If so, please mark it with version 2. "git format-patch -v 2". If not, why do you send it again? I think Richard wanted to close version 4 first. Erez On Tue, 20 Jun 2023 at 19:39, Rahul Rameshbabu via Linuxptp-devel

Re: [Linuxptp-devel] LGPL way to talk to pmc

2023-06-16 Thread Erez
On Fri, 16 Jun 2023 at 13:13, Walfred Tedeschi wrote: > On 15.06.23 17:37, Erez wrote: > > > > On Thu, 15 Jun 2023 at 06:26, Richard Cochran > wrote: > >> On Wed, Jun 14, 2023 at 03:51:08PM +0200, Walfred Tedeschi via >> Linuxptp-devel wrote: >> >>

Re: [Linuxptp-devel] LGPL way to talk to pmc

2023-06-15 Thread Erez
TSN :-) I also add the wrapper languages, so developers can use scripting in addition to C++. Erez > > > HTH, > Richard > > > ___ > Linuxptp-devel mailing list > Linuxptp-devel@lists.sourc

Re: [Linuxptp-devel] [Linuxptp-users] Quarterly release schedule

2023-06-13 Thread Erez
On Wed, 14 Jun 2023 at 06:25, Richard Cochran wrote: > On Tue, Jun 13, 2023 at 01:01:11PM +0200, Erez wrote: > > > Just so I am clear on the matter. > > I simply suggest taking the same test you run with linuxptp-testsuite. > > And run it in a github action. So we can a

Re: [Linuxptp-devel] [Linuxptp-users] Quarterly release schedule

2023-06-13 Thread Erez
On Tue, 13 Jun 2023 at 12:57, Erez wrote: > > > On Tue, 13 Jun 2023 at 09:48, Richard Cochran > wrote: > >> On Tue, Jun 13, 2023 at 08:02:29AM +0200, Erez wrote: >> > Hi, >> > >> > Using Miroslav's linuxptp-testsuite we can run a simulated H

Re: [Linuxptp-devel] [Linuxptp-users] Quarterly release schedule

2023-06-13 Thread Erez
On Tue, 13 Jun 2023 at 09:48, Richard Cochran wrote: > On Tue, Jun 13, 2023 at 08:02:29AM +0200, Erez wrote: > > Hi, > > > > Using Miroslav's linuxptp-testsuite we can run a simulated HIL in github > > itself. > > "Simulated HIL" is an oxymoron.

Re: [Linuxptp-devel] [Linuxptp-users] Quarterly release schedule

2023-06-12 Thread Erez
o not suggest passing testing with real hardware and manuals for the changes we do. Using github action allows developers to do some basic smoke tests to ensure they did not break too much. Erez On Tue, 13 Jun 2023 at 06:20, Richard Cochran wrote: > On Fri, Jun 09, 2023 at 07:14:31PM -0700,

Re: [Linuxptp-devel] [PATCH] Use messageLength field to detetmine suffix length

2023-06-12 Thread Erez
ns everywhere. I do not suggest to ignore standards, Only bear in mind that we can not rely on others to implement the standard to the letter. And that standards in many cases involve politics of many vendors, which lead to ambiguity by design and compromises. Erez > In a few places you mentio

Re: [Linuxptp-devel] [PATCH] Use the 802.1AS peer delay computation when transportSpecific is 1

2023-06-07 Thread Erez
Hi, We tie patches by using the version, so version 2 is named: "[PATCH v2]" We use "git format-patch -v2" And add "--cover-letter" in case of several commits. Next time :-) Erez On Tue, 6 Jun 2023 at 21:28, Dylan Robinson wrote: > If the transportSpe

Re: [Linuxptp-devel] [PATCH RFC 1/5] Rename NSEC2SEC as NSEC_PER_SEC

2023-06-07 Thread Erez
for this macro. > +1 And follow Linux kernel. Erez > Signed-off-by: Rahul Rameshbabu > --- > phc_ctl.c | 8 > port.c | 14 +++--- > port_private.h | 2 +- > tc.c | 6 +++--- > 4 files changed, 15 insertions(+), 15 deletions(-)

Re: [Linuxptp-devel] Two-step peer delay computation 1588 vs 802.1AS

2023-06-01 Thread Erez
if your patch follows the IEEE standard, then perhaps Richard will apply. Yours Erez On Wed, 31 May 2023 at 19:39, Dylan Robinson wrote: > Hello linuxptp-devel group! > > I would like to discuss the implementation of the two-step peer delay > computation. The 1588 and 802.1AS sp

Re: [Linuxptp-devel] Is intel i350 ptp driver broken?

2023-05-27 Thread Erez
iling list. Erez On Fri, 26 May 2023 at 16:53, egg car wrote: > Dear Richard, > > Ah yes I have figured out that the problem is not ts2phc, it should be > fixed in igb_extts() at igb_main.c > > if (hw->mac > <https://elixir.bootlin.com/linux/v5.19.17/C/ide

Re: [Linuxptp-devel] [RFC PATCH v2 1/9] Add new TLV for CommonMeanLinkDelayInformation

2023-05-18 Thread Erez
Thanks for the reply. Please add the explanation to the commit and to the structure. Personally, I do not have an opinion, yet I did not participate in the IEEE 1558 committee. Erez On Tue, 16 May 2023 at 23:43, Kishen Maloor wrote: > On 5/16/23 3:56 AM, Erez wrote: > > On Tue, 16

Re: [Linuxptp-devel] [RFC PATCH v2 1/9] Add new TLV for CommonMeanLinkDelayInformation

2023-05-16 Thread Erez
On Tue, 16 May 2023 at 00:29, Kishen Maloor wrote: > In a setup with multiple gPTP domains, the Common Mean Link Delay Service > (CMLDS) (IEEE 1588/16.6.3) performs link delay measurements in a single > domain and must (somehow) convey those to other domains. IEEE 1588 does not > specify this int

Re: [Linuxptp-devel] [PATCH] sk: Reset timestamping mode on exit, use locks

2023-05-14 Thread Erez
On Tue, 9 May 2023 at 20:38, Richard Cochran wrote: > On Tue, May 09, 2023 at 02:02:05PM +0200, Andrew Zaborowski wrote: > > Per https://www.kernel.org/doc/Documentation/networking/timestamping.txt > > section 3: > > "User space is responsible to ensure that multiple processes don't > interfere >

Re: [Linuxptp-devel] Bug caused by commit afeabf3 "ptp4l: add VLAN over bond support" on kernel 4.9

2023-05-01 Thread Erez
Did blame. commit afeabf3c90edf6699d7e0d058593835ec258be46 Author: Hangbin Liu Date: Wed May 25 14:46:16 2022 +0800 ptp4l: add VLAN over bond support Perhaps Hangbin Liu can assist? Erez On Tue, 2 May 2023 at 00:08, Erez wrote: > > > On Mon, 1 May 2023 at 18:30, Martin Pec

Re: [Linuxptp-devel] Bug caused by commit afeabf3 "ptp4l: add VLAN over bond support" on kernel 4.9

2023-05-01 Thread Erez
upport SIOCGHWTSTAMP > without the possibility to use the bonded PHC. > On a second review. I think you have a point. This get ioctl (SIOCGHWTSTAMP) was added for VLAN over bond support. On normal run, the get ioctl is only used with HWTS

Re: [Linuxptp-devel] Bug caused by commit afeabf3 "ptp4l: add VLAN over bond support" on kernel 4.9

2023-05-01 Thread Erez
eq, &cfg, device); > } else { > pr_err("ioctl SIOCGHWTSTAMP failed: %m"); > return err; > } > } > > @Martin would that also fix your issue? > I support. Erez > > Thanks, > Richard &g

Re: [Linuxptp-devel] Help : linuxptp power profile

2023-04-27 Thread Erez
nt TLV (you can query and set by using the pmc tool). > 3. Are power profile messages mandatorily required to carry IEEE 802.1Q > VLAN tags? > I do not remember seeing dependence of that kind. But you can read IEEE C37 238 of 2011 or 2017. Or simply try yourself. As I did not tr

Re: [Linuxptp-devel] [PATCH v5 1/2] pmc_agent: Add option to run callback for signaling messages

2023-04-26 Thread Erez
On Wed, 26 Apr 2023 at 11:55, Maciek Machnikowski wrote: > On 4/21/2023 6:46 PM, Erez wrote: > > > > > > On Fri, 21 Apr 2023 at 17:27, Maciek Machnikowski > > mailto:mac...@machnikowski.net>> wrote: > > > > On 4/21/2023 1:25 PM, Erez wrote: >

Re: [Linuxptp-devel] [PATCH 1/6] Add doubly attached clock support

2023-04-25 Thread Erez
features. We only use compilation flags for dependencies of outer headers like kernels. We control features by configuration only on run time. The Linuxptp is first an IEEE 1588 PTP project. It does not mean we do not like enhancements or using ITU or IEC. But at bottom line, your code must

Re: [Linuxptp-devel] [PATCH 1/6] Add doubly attached clock support

2023-04-25 Thread Erez
On Tue, 25 Apr 2023 at 10:16, Wurm, Stephan wrote: > Am Montag, dem 24.04.2023 um 12:39 +0200 schrieb Erez: > > > > > > On Mon, 24 Apr 2023 at 11:08, Stephan Wurm > wrote: > > Standard IEC 21439-3:2016 Appendix A extends the PTPv2 standard by the > definition of

Re: [Linuxptp-devel] [PATCH 3/6] Add profile identification according to IEC 62439-3:2016 standard

2023-04-25 Thread Erez
On Tue, 25 Apr 2023 at 09:16, Wurm, Stephan wrote: > Am Montag, dem 24.04.2023 um 12:46 +0200 schrieb Erez: > > > > On Mon, 24 Apr 2023 at 11:07, Stephan Wurm > wrote: > > Set profile identification according to IEC 62439-3:2016 Appendix B, > when dataset comparison i

Re: [Linuxptp-devel] [PATCH 4/6] ptp4l: Add doubly attached clock support

2023-04-24 Thread Erez
On Mon, 24 Apr 2023 at 11:07, Stephan Wurm wrote: > Allow ORDINARY_CLOCK (OC) as doubly attached clock according to IEC > 62439-3:2016 standard. > > Signed-off-by: Stephan Wurm > --- > ptp4l.c | 12 +++- > 1 file changed, 11 insertions(+), 1 deletion(-) > > diff --git a/ptp4l.c b/ptp4l.

Re: [Linuxptp-devel] [PATCH 3/6] Add profile identification according to IEC 62439-3:2016 standard

2023-04-24 Thread Erez
nds for digital analog converter. https://en.wikipedia.org/wiki/Digital-to-analog_converter Perhaps you or IEC have a better acronym? Like DbAC? or CA2 and CA1? Erez > Signed-off-by: Stephan Wurm > --- > bmc.h| 1 + > config.c | 1 + > port.c | 25 ++

Re: [Linuxptp-devel] [PATCH 1/6] Add doubly attached clock support

2023-04-24 Thread Erez
On Mon, 24 Apr 2023 at 11:08, Stephan Wurm wrote: > Standard IEC 21439-3:2016 Appendix A extends the PTPv2 standard by the > definition of doubly attached clocks (DAC) via redundant ports (either > connected by HSR or PRP). Therefore, the state machine is extended by > state PASSIVE_SLAVE and tra

Re: [Linuxptp-devel] [PATCH v2 1/2] pmc_agent: Add option to run callback for signaling messages

2023-04-08 Thread Erez
eable; > } > I think I have it: + /* Run the callback on signaling messages if configured */ + if (res == 0 && node->signaling_cb_ena && (msg_type(*msg) == SIGNALING)) { + res=2; + } -

Re: [Linuxptp-devel] [PATCH v2 1/2] pmc_agent: Add option to run callback for signaling messages

2023-04-08 Thread Erez
On Sat, 8 Apr 2023 at 17:29, Erez wrote: > > > On Fri, 7 Apr 2023 at 17:15, Maciek Machnikowski > wrote: > >> Add option to run callback that when the PMC agent receives signaling >> messages. >> > > I support you! > > >> >> Signed

Re: [Linuxptp-devel] [PATCH v2 1/2] pmc_agent: Add option to run callback for signaling messages

2023-04-08 Thread Erez
fset_traceable(struct pmc_agent *agent); > > +/** > + * Enables or disables callback on signaling messages > + * @param agent Pointer to a PMC instance obtained via @ref > pmc_agent_create(). > + * @param enable - if set to true, callback will be called on signaling > msgs > + */ >

Re: [Linuxptp-devel] [PATCH v1 1/2] pmc_agent: Add callback for signaling messages

2023-04-02 Thread Erez
nt and signaling messages. In https://github.com/erezgeva/libptpmgmt/, I added an option to filter signalling messages by their ID. Erez > > Signed-off-by: Maciek Machnikowski > --- > phc2sys.c | 4 ++-- > pmc_agent.c | 17 - > pmc_agent.h | 7 +-- > ts2

Re: [Linuxptp-devel] Bug caused by commit afeabf3 "ptp4l: add VLAN over bond support" on kernel 4.9

2023-03-30 Thread Erez
octl.c It is usually returned for: ```c++ if (!capable(CAP_NET_ADMIN)) return -EPERM; ``` Or with network namespace ```c++ if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) return -EPERM; ``` I do not think we want to check this error in sk.c. Unless the error was generated by something more reasonable. Erez > > Thanks for your help, Erez. > > Martin > > ___ Linuxptp-devel mailing list Linuxptp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-devel

Re: [Linuxptp-devel] [PATCH] Fix power profile config option range to UINT32_MAX

2023-03-29 Thread Erez
tand it may require too many changes in the code. Erez > > 0x is an out of range value for option > power_profile.2011.grandmasterTimeInaccuracy at line 44 > failed to parse configuration file configs/default.cfg > These values are unsigned and stored as f

Re: [Linuxptp-devel] [PATCH 6/6] Use periodic timer for TX SYNC timeout.

2023-03-29 Thread Erez
Sorry I forgot another hint. Please use the 'git format-patch' with the patch seria iteration flag '-v '. So we can differentiate the mails as newer :-) This will change the subject to something like "Subject: [PATCH *v2* 0/6] " Erez On Wed, 29 Mar 2023 at 17

Re: [Linuxptp-devel] [PATCH 6/6] Use periodic timer for TX SYNC timeout.

2023-03-29 Thread Erez
backs :-) Well done Erez On Wed, 29 Mar 2023 at 15:24, Luigi Mantellini wrote: > In order to obtain a precise TX SYNC frequency we need to use a periodic > timer facility instead to reconfigure the timer on every expiration. > > The solution consists to configure the it_inte

Re: [Linuxptp-devel] Use periodic timer for TX SYNC timeout

2023-03-29 Thread Erez
On Wed, 29 Mar 2023 at 14:37, Luigi 'Comio' Mantellini < luigi.mantell...@gmail.com> wrote: > Hi Erez, > > sorry, I usually use pull requests. > Me too :-) But using patch seria is cool too. > > > Il giorno mer 29 mar 2023 alle ore 14:29 Erez ha > scrit

Re: [Linuxptp-devel] Use periodic timer for TX SYNC timeout

2023-03-29 Thread Erez
#x27;git format-patch' with the '--cover-letter' options. And please add a short explanation on the issue you solve to each patch (relevant to each patch). And if the solution is not trivial, a short explanation on the solution as well. Thanks Erez > e2e_tc.c | 28

Re: [Linuxptp-devel] Bug caused by commit afeabf3 "ptp4l: add VLAN over bond support" on kernel 4.9

2023-03-29 Thread Erez
q, &cfg, device); > > What would be the best way to fix this properly? > If linuxptp has a bug, we should fix it. If the bug is in the 'eqos' driver, then the fix should be there. :-) Richard, do you think we should wait with commit afeabf3 "ptp4l: add VLAN over bond sup

Re: [Linuxptp-devel] [PATCH] Add option to bind raw and UDP sockets to interface

2023-03-14 Thread Erez
iable as a network > interface. This is how the bridge thing is implemented in Linux. > There are also other options for creating bridges, i.e. like using the dsa driver. But the overall result is the same. With the dsa, you can only access the "host interface" not the external

Re: [Linuxptp-devel] [PATCH] Add option to bind raw and UDP sockets to interface

2023-03-13 Thread Erez
On Mon, 13 Mar 2023 at 12:12, Kamil Zaripov wrote: > > > On 12 Mar 2023, at 14:18, Erez wrote: > > Sounds cool, but requires multiple clocks on the network interface. > Hardware or logic using a single hardware clock. > I do know that some do work on this. > Both in k

Re: [Linuxptp-devel] [PATCH] Set controlField to zero in message headers

2023-02-28 Thread Erez
sets the field, but never checks the value. Anyhow we do not support PTP version 1 hardware, so perhaps it is better to break faster :-) Erez things. It is similar to 2a2532d66121 ("Bump to IEEE 1588-2019 version") > however, where ptp4l switches the version field to the IEEE1588-2019

[Linuxptp-devel] The new application 'tz2alt' is missed in .gitignore

2023-02-26 Thread Erez
Hi Richard, You forgot to add 'tz2alt' to .gitignore. Erez ___ Linuxptp-devel mailing list Linuxptp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-devel

Re: [Linuxptp-devel] Code freeze for 4.0 release

2023-02-22 Thread Erez
On Wed, 22 Feb 2023 at 16:07, Richard Cochran wrote: > Dear Devs, > > I'll be releasing 4.0 in the next day or two. I won't be taking any > Great :-) Will your power profile patch be included? It looks like it passed the review. Erez > new stuff until after the

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

2023-02-13 Thread Erez
be representable (for example, 1 AD) is not yet determined. Systems purchased after the approval of this volume of POSIX.1-2017 should be evaluated to determine whether their lifetime will extend past 2038." Seems that instead of 'BUG 2000', we will have 'Bug 2038' :-)

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

2023-02-01 Thread Geva, Erez
; + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the > + * GNU General Public License for more details. > + * > + * You should have received a copy of the GNU General Public License > along > + * with this program; if not, write to the Free Software Foundation, > Inc., > + *

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

2023-02-01 Thread Geva, Erez
r32   jumpSeconds; > +   struct { > +   uint16_t   seconds_msb; /* 16 bits + */ > +   uint32_t   seconds_lsb; /* 32 bits = 48 bits*/ > +   } PACKED timeOfNextJump; > +   uint8_t pad; > +} PACKED; > + >  struct management_tlv { > E

Re: [Linuxptp-devel] [PATCH v3 1/4] [Interface Rate TLV] function to support get interface speed via ethtool

2022-12-30 Thread Erez
On Thu, 29 Dec 2022 at 08:02, Devasish Dey wrote: > Hi Erez, > > >> > + goto failed; >> > + } >> >> I think it is better to merge this ioctl and the socket creation with >> sk_get_ts_info(). >> No reason for duplication. >

Re: [Linuxptp-devel] [PATCH v4 2/4] [Interface Rate TLV] adding speed field information for interface

2022-12-30 Thread Erez
On Thu, 29 Dec 2022 at 07:52, SyncMonk Technologies wrote: > Get the interface speed related information using ethtool and > convert interface speed to bit rate in attoseconds per bit. > > v4: adding interface bit period in iface_if_info. This bit period > is updated during init time and when

Re: [Linuxptp-devel] [PATCH] raw: Use BPF filter based on tcpdump syntax.

2022-12-28 Thread Erez
On Thu, 22 Dec 2022 at 18:41, Sebastian Andrzej Siewior < bige...@linutronix.de> wrote: > Replace the hand written BPF code with something that has been created > We love tcpdump and use its output as reference. But we prefer using opcodes, we can understand and NOT numbers generated by tcpdump,

Re: [Linuxptp-devel] [PATCH v3 4/4] [Interface Rate TLV] adding delay asymmetry calculation

2022-12-13 Thread Geva, Erez
transmitting PTP timestamp interface, excluding line encoding. The value is encoded as an unsigned integer in units of attoseconds (10–18 s) to accommodate interface bit periods less than 1 ns." Thanks, Devasish. On Fri, 9 Dec 2022 at 18:08, Geva, Erez mailto:erez.geva@siemens.com>> wr

Re: [Linuxptp-devel] [PATCH v3 1/4] [Interface Rate TLV] function to support get interface speed via ethtool

2022-12-13 Thread Geva, Erez
is my opinion, but you can defer. Thanks, Devasish. Erez ___ Linuxptp-devel mailing list Linuxptp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-devel

Re: [Linuxptp-devel] [PATCH v3 4/4] [Interface Rate TLV] adding delay asymmetry calculation

2022-12-13 Thread Geva, Erez
On Tue, 2022-12-13 at 17:27 +0100, Erez Geva wrote: On Tue, 2022-12-13 at 10:56 +0530, Devasish Dey wrote: > + /* Megabits per secon converted to attoseconds per bit. */ > + return 1ULL/ iface->if_info.speed; Performing division in running is not a very good id

Re: [Linuxptp-devel] [PATCH v3 1/4] [Interface Rate TLV] function to support get interface speed via ethtool

2022-12-13 Thread Geva, Erez
On Tue, 2022-12-13 at 17:39 +0100, Erez Geva wrote: On Tue, 2022-12-13 at 10:39 +0530, Devasish Dey wrote: > + goto failed; > + } I think it is better to merge this ioctl and the socket creation with sk_get_ts_info(). No reason for duplication. You can use a static funct

Re: [Linuxptp-devel] [PATCH v3 4/4] [Interface Rate TLV] adding delay asymmetry calculation

2022-12-09 Thread Geva, Erez
r)); > +   if (!extra) { > +   return -1; > +   } > +   mir = (struct msg_interface_rate_tlv *) extra->tlv; > +   mir->type = TLV_ORGANIZATION_EXTENSION; > +   mir->length = sizeof(*mir) - sizeof(mir->type) - sizeof(mir- > >length); > +   memcpy(mir-&g

Re: [Linuxptp-devel] [PATCH v3 3/4] [Interface Rate TLV] organization TLV support for interface rate

2022-12-09 Thread Geva, Erez
anizationally Unique Identifiers */ > +#define ITU_T_COMMITTEE 0x00, 0x19, 0xA7 > +extern uint8_t itu_t_id[3]; > + > +struct msg_interface_rate_tlv { > +   Enumeration16 type; > +   UInteger16    length; > +   Octet id[3]; > +   Octet subtype[3]; >

Re: [Linuxptp-devel] [PATCH v3 1/4] [Interface Rate TLV] function to support get interface speed via ethtool

2022-12-09 Thread Geva, Erez
e_index(). >   * @return  An open socket on success, -1 otherwise. > @@ -78,6 +89,14 @@ int sk_general_init(int fd); >   */ >  int sk_get_ts_info(const char *name, struct sk_ts_info *sk_info); >   > +/** > + * Obtain supporte interface information > + * @param name The

Re: [Linuxptp-devel] [PATCH 1/1] clock: Fix stale clock parent pid usage after best master change

2022-12-08 Thread Geva, Erez
On Mon, 2022-12-05 at 12:52 -0500, vincent.cheng...@renesas.com wrote: > On Mon, Dec 05, 2022 at 02:44:07AM EST, Geva, Erez wrote: > > On Fri, 2022-12-02 at 15:33 -0500, > > vincent.cheng...@renesas.com wrote: > > > From: Vincent Cheng > > > > > > In ha

Re: [Linuxptp-devel] [PATCH 2/2] phc_ctl: use PTP_CLOCK_GETCAPS2 ioctl if available

2022-12-08 Thread Geva, Erez
On Wed, 2022-12-07 at 06:59 -0800, Richard Cochran wrote: > On Thu, Nov 17, 2022 at 02:15:23PM -0800, Jacob Keller wrote: > > On 11/17/2022 1:34 PM, Geva, Erez wrote: > > > > The problem is the fallback works only on build. > > > But if the build system is newe

Re: [Linuxptp-devel] [PATCH 1/1] clock: Fix stale clock parent pid usage after best master change

2022-12-04 Thread Geva, Erez
+ > LIST_FOREACH(piter, &c->ports, list) { > enum port_state ps; > enum fsm_event event; P.S. All patches should be on top of master, no need to comment on obvious. The rest of the explantation is perfect :-) Erez ___ Linuxptp-devel mailing list Linuxptp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-devel

Re: [Linuxptp-devel] [PATCH 2/2] phc_ctl: use PTP_CLOCK_GETCAPS2 ioctl if available

2022-11-17 Thread Geva, Erez
On Thu, 2022-11-17 at 18:27 +, Keller, Jacob E wrote: > > > > -Original Message- > > From: Geva, Erez > > Sent: Thursday, November 17, 2022 9:13 AM > > To: Keller, Jacob E ; linuxptp- > > de...@lists.sourceforge.net > > Subject: Re:

Re: [Linuxptp-devel] [PATCH] bmc: Fix PortId comparison

2022-11-17 Thread Geva, Erez
eq(const struct PortIdentity *a, const struct PortIdentity *b) And debug and find the real reason you have the bug. And than send a real bug fix :-) Erez > --- >  bmc.c | 17 ++--- >  1 file changed, 14 insertions(+), 3 deletions(-) > > diff --git a/bmc.c b/bmc.c

Re: [Linuxptp-devel] [PATCH] remove C99 style loop variable declarations

2022-11-17 Thread Geva, Erez
On Thu, 2022-11-17 at 08:02 +, Magnus Armholt via Linuxptp-devel wrote: > Nothing to complain about the patch, thanks for looking after the > code base! > > > LinuxPTP source still prefers to keep with the GNU C89 convention > > of > > variables being at the top of the function. Newer versions

Re: [Linuxptp-devel] [PATCH 1/2] phc_ctl: explicitly check for adjust_phase definition

2022-11-17 Thread Geva, Erez
/phc_ctl.c > @@ -311,7 +311,7 @@ static int do_caps(clockid_t clkid, int cmdc, > char *cmdv[]) > caps.n_pins, > caps.pps ? "has" : "doesn't have", >     caps.cross_timestamping ? "has" : "doesn't have&qu

Re: [Linuxptp-devel] [PATCH 0/1] Configurable VLAN tags for Ethernet

2022-11-17 Thread Geva, Erez
ment the receive side. You can filter the received packets using a kernel BPF filter, to filter only the wanted VLAN id and PTP packets. Erez > > Mika Paulamäki (1): >   Add configurable VLAN tags for Ethernet > >  config.c |  3 +++ >  raw.c    | 47 +++

Re: [Linuxptp-devel] [PATCH 2/2] phc_ctl: use PTP_CLOCK_GETCAPS2 ioctl if available

2022-11-17 Thread Geva, Erez
2' variants in > principle that developer doesn't have to remember "is this variant ok > to get > all the new features going forward?" There are more 12 bytes in the reserve. I guess once we pass them, we would need a non-backward flag, but till then, I think we can keep

Re: [Linuxptp-devel] [PATCH 0/5] *** Add support for configurable data set members in ptp4l ***

2022-11-02 Thread Geva, Erez
get you can add in any case. Erez -Original Message- From: izunna.otiji...@renesas.com Sent: Wednesday, 2 November 2022 22:33 To: linuxptp-devel@lists.sourceforge.net Subject: [Linuxptp-devel] [PATCH 0/5] *** Add support for configurable data set members in ptp4l *** From: Izunna

Re: [Linuxptp-devel] [PATCH] phc_ctl: add pin_cfg command to display pin functions

2022-10-27 Thread Geva, Erez
Already have it in https://github.com/erezgeva/libptpmgmt/blob/master/src/ptp.h Erez 😊 -Original Message- From: Miroslav Lichvar Sent: Thursday, 27 October 2022 17:00 To: Jacob Keller Cc: linuxptp-devel@lists.sourceforge.net Subject: Re: [Linuxptp-devel] [PATCH] phc_ctl: add pin_cfg

Re: [Linuxptp-devel] [PATCH] Inclusion of a virtual PTP port on a PTP clock

2022-10-17 Thread Erez
ys2phc into ptp4l and let the system clock or any non PTP clock behave as a virtual port. But I think you should start by explicitly explaining in simple, what you think is missing in the current ts2phc and sys2phc to fulfill your needs, but without moving to a robust ptp4l with "virtual

Re: [Linuxptp-devel] [PATCH] Add source only option to phc2sys autoconfiguration

2022-10-12 Thread Erez
though in most cases we want to make the decision, who is the master/grandmaster of our PTP domain, As PTP does work with "priorities", it means that in practice, any PTP entity with a higher value may become the master. So a feature like that in phc2sys does make sense :-) Erez > > Si

Re: [Linuxptp-devel] [PATCH] Fixed time of generic ts2phc master

2022-09-26 Thread Geva, Erez
Hi, I think we should put a comment there. It does looks buzzard to see ' ts->tv_nsec = ntx.time.tv_usec'. Though this is how 'ADJ_NANO' works 😊 Erez -Original Message- From: Miroslav Lichvar Sent: Monday, 26 September 2022 10:57 To: j.raczyn

  1   2   3   >