Re: [Linuxptp-users] Configuration for boundary clock with on two-port NIC

2023-11-20 Thread Andre Puschmann
Hi, I've tried three different ConnectX-3 NICs now and they all behave the same. To rule out any issues with the GM I tried a Intel i210 as well and that is spot on with excellent sync. However, the Mellanox is not. It's almost as if there is a frequency correction happening inside the NIC ev

Re: [Linuxptp-users] Configuration for boundary clock with on two-port NIC

2023-11-20 Thread Andre Puschmann
Hey, > How the GM side is configured? Are you writing system time to PHC > every second? If so, you can try make the phc free run. Without 1PPS > signal connecting to the phc or PTM enabled, it's not recommended to > set pmc's time by software, the jitter is quite big. I am not writing any time

Re: [Linuxptp-users] Configuration for boundary clock with on two-port NIC

2023-11-20 Thread Andre Puschmann
Hi, this morning I tried with the Mellanox OFED drivers v4.9-7.1.0 on Ubuntu 20.04 LTS. This was the last version I could get the Mellanox drivers compiled. Result, however, is the same: ptp4l[283.357]: selected /dev/ptp0 as PTP clock ptp4l[283.408]: port 1 (enp1s0): INITIALIZING to LISTENING

Re: [Linuxptp-users] Configuration for boundary clock with on two-port NIC

2023-11-20 Thread egg car
Hi, How the GM side is configured? Are you writing system time to PHC every second? If so, you can try make the phc free run. Without 1PPS signal connecting to the phc or PTM enabled, it's not recommended to set pmc's time by software, the jitter is quite big. Is the GM and the client connected d

Re: [Linuxptp-users] Configuration for boundary clock with on two-port NIC

2023-11-20 Thread Miroslav Lichvar
On Sun, Nov 19, 2023 at 10:07:50PM +0100, Andre Puschmann wrote: > Hey, > > I've been able to get my hands on a ConnectX-3 Pro card and have done some > initial testing. The card indeed has a shared PHC for both ports so running > ptp4l as BC or TC does indeed work without the jbod option. > > Ho

Re: [Linuxptp-users] Configuration for boundary clock with on two-port NIC

2023-11-19 Thread Andre Puschmann
Hey, I've been able to get my hands on a ConnectX-3 Pro card and have done some initial testing. The card indeed has a shared PHC for both ports so running ptp4l as BC or TC does indeed work without the jbod option. However, sync performance (i.e. rms values) for the downstream OCs isn't gre

Re: [Linuxptp-users] Configuration for boundary clock with on two-port NIC

2023-11-02 Thread Jacob Keller
On 11/2/2023 4:15 AM, Andre Puschmann wrote: > Hi, > > On 2/11/23 4:11, James Clark wrote: >> I have a dual-port Mellanox ConnectX-3 (specifically MCX312A-XCBT), >> which has a shared PHC. You can get them for less than $50 on >> eBay/AliExpress. I had to upgrade the firmware on mine to get PTP

Re: [Linuxptp-users] Configuration for boundary clock with on two-port NIC

2023-11-02 Thread Andre Puschmann
Hi, On 2/11/23 4:11, James Clark wrote: I have a dual-port Mellanox ConnectX-3 (specifically MCX312A-XCBT), which has a shared PHC. You can get them for less than $50 on eBay/AliExpress. I had to upgrade the firmware on mine to get PTP support. I haven't yet tried it as a boundary clock. Excel

Re: [Linuxptp-users] Configuration for boundary clock with on two-port NIC

2023-11-01 Thread James Clark
On Thu, Nov 2, 2023 at 2:30 AM Andre Puschmann wrote: >Is there any other NIC > that you can recommend and/or know that has a shared PHC among it's ports? I have a dual-port Mellanox ConnectX-3 (specifically MCX312A-XCBT), which has a shared PHC. You can get them for less than $50 on eBay/AliExpr

Re: [Linuxptp-users] Configuration for boundary clock with on two-port NIC

2023-11-01 Thread Andre Puschmann
On 1/11/23 9:28, Miroslav Lichvar wrote: On Wed, Nov 01, 2023 at 09:04:12AM +0100, Andre Puschmann wrote: /opt/linuxptp/ptp4l -2 -i enp1s0f1 -i enp1s0f0 -f /opt/ptp4l_cfg/bc.cfg -m -l 6 ptp4l[851.735]: selected /dev/ptp1 as PTP clock ptp4l[851.735]: port 1 (enp1s0f1): PHC device mismatch ptp4l

Re: [Linuxptp-users] Configuration for boundary clock with on two-port NIC

2023-11-01 Thread Miroslav Lichvar
On Wed, Nov 01, 2023 at 09:04:12AM +0100, Andre Puschmann wrote: > /opt/linuxptp/ptp4l -2 -i enp1s0f1 -i enp1s0f0 -f /opt/ptp4l_cfg/bc.cfg -m > -l 6 > ptp4l[851.735]: selected /dev/ptp1 as PTP clock > ptp4l[851.735]: port 1 (enp1s0f1): PHC device mismatch > ptp4l[851.735]: port 1 (enp1s0f1): /dev/

Re: [Linuxptp-users] Configuration for boundary clock with on two-port NIC

2023-11-01 Thread Andre Puschmann
Hi everyone, I am picking up this thread as we're still facing some issues with getting the BC mode working on this two-port Intel 82599ES NIC. Cabling is still the same as in the original post - one port receives PTP sync from an external GM and should redistribute it over the second port t

Re: [Linuxptp-users] Configuration for boundary clock with on two-port NIC

2023-10-03 Thread Nils Fuerste
Ah yeah, I didnt read well. That really improved the sync quality - thanks a lot for your advice! On 3/10/23 14:38, Miroslav Lichvar wrote: On Tue, Oct 03, 2023 at 02:33:32PM +0200, Nils Fuerste wrote: Thanks for your help! Unfortunately, setting those values doesn't work for me. I get the fol

Re: [Linuxptp-users] Configuration for boundary clock with on two-port NIC

2023-10-03 Thread Miroslav Lichvar
On Tue, Oct 03, 2023 at 02:33:32PM +0200, Nils Fuerste wrote: > Thanks for your help! Unfortunately, setting those values doesn't work for > me. I get the following errors: > > sudo ptp4l -2 -i enp1s0f1 -f ./default-new-master.cfg -m > -1.0 is an out of range value for option pi_proportional_const

Re: [Linuxptp-users] Configuration for boundary clock with on two-port NIC

2023-10-03 Thread Nils Fuerste
Thanks for your help! Unfortunately, setting those values doesn't work for me. I get the following errors: sudo ptp4l -2 -i enp1s0f1 -f ./default-new-master.cfg -m -1.0 is an out of range value for option pi_proportional_const at line 73 failed to parse configuration file ./default-new-master.cf

Re: [Linuxptp-users] Configuration for boundary clock with on two-port NIC

2023-10-03 Thread Miroslav Lichvar
On Tue, Oct 03, 2023 at 11:45:49AM +0200, Nils Fuerste wrote: > I have a 82599ES from Intel [1]. I found the paramters you were referring to > but I am not sure how to adjust them. Can you give me some guidance for this > if you get a chance? Try this: pi_proportional_exponent -1

Re: [Linuxptp-users] Configuration for boundary clock with on two-port NIC

2023-10-03 Thread Nils Fuerste
Thanks for the quick answer! I have a 82599ES from Intel [1]. I found the paramters you were referring to but I am not sure how to adjust them. Can you give me some guidance for this if you get a chance? These are my current settings, basically the default.cfg: pi_proportional_const   0.0 pi

Re: [Linuxptp-users] Configuration for boundary clock with on two-port NIC

2023-10-02 Thread Miroslav Lichvar
On Mon, Oct 02, 2023 at 09:44:19AM +0200, Nils Fuerste wrote: > Unfortunately, the sync on the server receiving the sync from the BC looks > like this: > > ptp4l[3297.441]: master offset 42 s2 freq   +9338 path delay   > 319 > ptp4l[3298.441]: master offset    -10 s2 freq   +9298 p

[Linuxptp-users] Configuration for boundary clock with on two-port NIC

2023-10-02 Thread Nils Fuerste
Hello everyone! I am looking for help configuring a 2 port NIC as boundary clock. The PTP sync is coming in on one port and I want to forward it to the other one. I got something working but the sync is not as good as I expected. The sync on the receiving port looks like this: ptp4l[775]: [3