Hi LinuxPtp Community,

We are trying to run multiple instances of ptp4l on the same interface
using the virtual PHC clock feature that was submitted to linuxptp.
We are using the master branch of linuxPTP and kernel 6.0.8. I have created
virtual clocks using the command “echo 2 >  /sys/class/ptp/ptp2/n_vclocks”,
and provided the phc_index in the config file.

When I run ptp4l it's unable to detect the virtual clock and prints out the
error “phc device mismatch”.
After reading through the code I see that *“rtnl_iface_has_vclock” *is
failing to detect the virtual clock. Can you please suggest what could be
going wrong here? We are using CentOS 7 with
*“kernel-ml-6.0.8-1.el7.elrepo.x86_64”*





LOGS:

*[root@supermicrodu1 ~]# ./ptp4l -f /etc/sysconfig/config_ptp.conf -i
sriov2  -m 2 -H -l 6 -s --slave_event_monitor=/tmp/pmc*

*option slaveOnly is deprecated, please use clientOnly instead*

*ptp4l[166163.457]: selected /dev/ptp8 as PTP clock*

*ptp4l[166163.457]: port 1 (sriov2): PHC device mismatch*

*ptp4l[166163.457]: port 1 (sriov2): /dev/ptp8 requested, ptp2 attached*

*ptp4l[166163.457]: failed to open port sriov2*





Thanks,
Amar

Attachment: config_ptp.conf
Description: Binary data

_______________________________________________
Linuxptp-users mailing list
Linuxptp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-users

Reply via email to