Re: [Linuxptp-users] phc2sys with ptp_kvm and mutiport mellanox NICs
PTP IEEE 1588 stack for Linux
Brought to you by:
rcochran
From: Hussamuddin N. <na...@ne...> - 2020-07-22 20:41:52
|
Yes i can get it working with multiple instances of phc2sys, but was not sure that was the best way to move forward. Also does any one have experience using the ptp_kvm module (/dev/ptp_kvm) as a source PHC. I was looking at the latest devel linuxptp code that has a new program called "ts2phc" that claims to sync multiple PHCs using a single source PHC, but when i try this command i get the error > ~/linuxptp-code# ts2phc -s /dev/ptp_kvm -c enp7s0 -c enp8s0 > failed to arm slaves Any suggestions there ? Also when using phc2sys for this task when only one PHC is used as destination like > /usr/sbin/phc2sys -O 0 -s /dev/ptp_kvm -c enp8s0 Is using the offset set to Zero correct ? the /dev/ptp_kvm gets its time from the host clock which is already being synced using a ptp4l (and a phc2sys) on the host running with HW Timestamping -- cheers, Hussam (Hussamuddin Nasir) Netlab & GENI Operations Team ------------------------------------------------------------------- Laboratory for Adv. Networking Phone : (859)218-0059 James F Hardymon Building Fax : (859)323-3740 301 Rose Street, Rm 237 E-mail : na...@ne... Lexington, KY 40506-0495 Web : http://www.netlab.uky.edu University of Kentucky ********************** ------------------------------------------------------------------- On 7/22/20 1:45 AM, Miroslav Lichvar wrote: > On Tue, Jul 21, 2020 at 08:43:10PM -0400, nasir via Linuxptp-users wrote: >> No. I am passing in both ports to the KVM. The KVM sees three ptpt >> devices. One is using the ptp_kvm module and the other two are the >> mellanox NICS. I am trying to sync the mellanox clocks using ptp_kvm >> as source using phc2sys but using multiple -c options results in >> phc2sys uaing the last ptp device in the command as its destination >> device > I'm not sure how multiple -c options is supposed to work, but I think > you could run multiple phc2sys instances, one for each clock that > needs to be synchronized. > |