Thread: [Linuxptp-users] [LinuxPTP] Seeing SYNC without timestamp, DELAY_REQ without timestamp
PTP IEEE 1588 stack for Linux
Brought to you by:
rcochran
|
From: Karthick G. <kar...@pl...> - 2021-06-14 06:18:13
|
Hi Experts, Can someone help me resolve the following issue. When trying ptp4l with hardware timestamp on a hw timestamp supported interface, the sync and delay request packets are being received without timestamp. Linux version : 4.4.0-87-generic root@ptp-slave:~# ptp4l -i enp1s0f0 -4 -m -s -H ptp4l[23525.128]: selected /dev/ptp2 as PTP clock ptp4l[23525.129]: port 1 (enp1s0f0): INITIALIZING to LISTENING on INIT_COMPLETE ptp4l[23525.129]: port 0 (/var/run/ptp4l): INITIALIZING to LISTENING on INIT_COMPLETE ptp4l[23525.129]: port 0 (/var/run/ptp4lro): INITIALIZING to LISTENING on INIT_COMPLETE ptp4l[23526.788]: port 1 (enp1s0f0): new foreign master 3cfdfe.fffe.c46794-1 ptp4l[23527.787]: port 1 (enp1s0f0): received SYNC without timestamp ptp4l[23527.787]: port 1 (enp1s0f0): received SYNC without timestamp ptp4l[23528.787]: port 1 (enp1s0f0): received SYNC without timestamp ptp4l[23528.787]: port 1 (enp1s0f0): received SYNC without timestamp ptp4l[23528.788]: selected best master clock 3cfdfe.fffe.c46794 ptp4l[23528.788]: port 1 (enp1s0f0): LISTENING to UNCALIBRATED on RS_SLAVE ptp4l[23529.787]: port 1 (enp1s0f0): received SYNC without timestamp ptp4l[23529.787]: port 1 (enp1s0f0): received SYNC without timestamp ptp4l[23530.787]: port 1 (enp1s0f0): received SYNC without timestamp ptp4l[23530.787]: port 1 (enp1s0f0): received SYNC without timestamp root@ptp-master:~# ptp4l -i enp1s0f0 -4 -m -H ptp4l[22959.160]: selected /dev/ptp2 as PTP clock ptp4l[22959.161]: port 1 (enp1s0f0): INITIALIZING to LISTENING on INIT_COMPLETE ptp4l[22959.161]: port 0 (/var/run/ptp4l): INITIALIZING to LISTENING on INIT_COMPLETE ptp4l[22959.161]: port 0 (/var/run/ptp4lro): INITIALIZING to LISTENING on INIT_COMPLETE ptp4l[22966.482]: port 1 (enp1s0f0): LISTENING to MASTER on ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES ptp4l[22966.482]: selected local clock 3cfdfe.fffe.c46794 as best master ptp4l[22966.482]: port 1 (enp1s0f0): assuming the grand master role ptp4l[22968.490]: port 1 (enp1s0f0): received DELAY_REQ without timestamp ptp4l[22968.802]: port 1 (enp1s0f0): received DELAY_REQ without timestamp ptp4l[22969.335]: port 1 (enp1s0f0): received DELAY_REQ without timestamp ptp4l[22969.868]: port 1 (enp1s0f0): received DELAY_REQ without timestamp root@ptp-slave:~# ethtool -i enp1s0f0 driver: i40e version: 2.15.9 firmware-version: 6.01 0x800035cf 1.1747.0 expansion-rom-version: bus-info: 0000:01:00.0 supports-statistics: yes supports-test: yes supports-eeprom-access: yes supports-register-dump: yes supports-priv-flags: yes root@ptp-slave:~# ethtool -T enp1s0f0 Time stamping parameters for enp1s0f0: Capabilities: hardware-transmit (SOF_TIMESTAMPING_TX_HARDWARE) software-transmit (SOF_TIMESTAMPING_TX_SOFTWARE) hardware-receive (SOF_TIMESTAMPING_RX_HARDWARE) software-receive (SOF_TIMESTAMPING_RX_SOFTWARE) software-system-clock (SOF_TIMESTAMPING_SOFTWARE) hardware-raw-clock (SOF_TIMESTAMPING_RAW_HARDWARE) PTP Hardware Clock: 2 Hardware Transmit Timestamp Modes: off (HWTSTAMP_TX_OFF) on (HWTSTAMP_TX_ON) Hardware Receive Filter Modes: none (HWTSTAMP_FILTER_NONE) ptpv1-l4-sync (HWTSTAMP_FILTER_PTP_V1_L4_SYNC) ptpv1-l4-delay-req (HWTSTAMP_FILTER_PTP_V1_L4_DELAY_REQ) ptpv2-l4-event (HWTSTAMP_FILTER_PTP_V2_L4_EVENT) ptpv2-l4-sync (HWTSTAMP_FILTER_PTP_V2_L4_SYNC) ptpv2-l4-delay-req (HWTSTAMP_FILTER_PTP_V2_L4_DELAY_REQ) ptpv2-l2-event (HWTSTAMP_FILTER_PTP_V2_L2_EVENT) ptpv2-l2-sync (HWTSTAMP_FILTER_PTP_V2_L2_SYNC) ptpv2-l2-delay-req (HWTSTAMP_FILTER_PTP_V2_L2_DELAY_REQ) ptpv2-event (HWTSTAMP_FILTER_PTP_V2_EVENT) ptpv2-sync (HWTSTAMP_FILTER_PTP_V2_SYNC) ptpv2-delay-req (HWTSTAMP_FILTER_PTP_V2_DELAY_REQ) root@ptp-master:~# ethtool -i enp1s0f0 driver: i40e version: 2.15.9 firmware-version: 6.01 0x800035cf 1.1747.0 expansion-rom-version: bus-info: 0000:01:00.0 supports-statistics: yes supports-test: yes supports-eeprom-access: yes supports-register-dump: yes supports-priv-flags: yes root@ptp-master:~# ethtool -T enp1s0f0 Time stamping parameters for enp1s0f0: Capabilities: hardware-transmit (SOF_TIMESTAMPING_TX_HARDWARE) software-transmit (SOF_TIMESTAMPING_TX_SOFTWARE) hardware-receive (SOF_TIMESTAMPING_RX_HARDWARE) software-receive (SOF_TIMESTAMPING_RX_SOFTWARE) software-system-clock (SOF_TIMESTAMPING_SOFTWARE) hardware-raw-clock (SOF_TIMESTAMPING_RAW_HARDWARE) PTP Hardware Clock: 2 Hardware Transmit Timestamp Modes: off (HWTSTAMP_TX_OFF) on (HWTSTAMP_TX_ON) Hardware Receive Filter Modes: none (HWTSTAMP_FILTER_NONE) ptpv1-l4-sync (HWTSTAMP_FILTER_PTP_V1_L4_SYNC) ptpv1-l4-delay-req (HWTSTAMP_FILTER_PTP_V1_L4_DELAY_REQ) ptpv2-l4-event (HWTSTAMP_FILTER_PTP_V2_L4_EVENT) ptpv2-l4-sync (HWTSTAMP_FILTER_PTP_V2_L4_SYNC) ptpv2-l4-delay-req (HWTSTAMP_FILTER_PTP_V2_L4_DELAY_REQ) ptpv2-l2-event (HWTSTAMP_FILTER_PTP_V2_L2_EVENT) ptpv2-l2-sync (HWTSTAMP_FILTER_PTP_V2_L2_SYNC) ptpv2-l2-delay-req (HWTSTAMP_FILTER_PTP_V2_L2_DELAY_REQ) ptpv2-event (HWTSTAMP_FILTER_PTP_V2_EVENT) ptpv2-sync (HWTSTAMP_FILTER_PTP_V2_SYNC) ptpv2-delay-req (HWTSTAMP_FILTER_PTP_V2_DELAY_REQ) Regards, Karthick |
|
From: Richard C. <ric...@gm...> - 2021-06-14 06:39:06
|
On Mon, Jun 14, 2021 at 11:17:18AM +0530, Karthick Gunasekaran via Linuxptp-users wrote: > When trying ptp4l with hardware timestamp on a hw timestamp supported interface, the sync and delay request packets are being received without timestamp. > > Linux version : 4.4.0-87-generic That must be a distro kernel -- which distro? > root@ptp-slave:~# ethtool -i enp1s0f0 > driver: i40e > version: 2.15.9 Hm, did kernel 4.4 already have PTP support in the i40e? Maybe this is a buggy back port? Thanks, Richard |
|
From: Karthick G. <kar...@pl...> - 2021-06-14 07:08:02
|
Hi Richard, Please find the distro below: root@ptp-slave:~# lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 16.04.3 LTS Release: 16.04 Codename: xenial root@ptp-slave:~# cat /etc/*release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=16.04 DISTRIB_CODENAME=xenial DISTRIB_DESCRIPTION="Ubuntu 16.04.3 LTS" NAME="Ubuntu" VERSION="16.04.3 LTS (Xenial Xerus)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 16.04.3 LTS" VERSION_ID="16.04" HOME_URL="http://www.ubuntu.com/" SUPPORT_URL="http://help.ubuntu.com/" BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/" VERSION_CODENAME=xenial UBUNTU_CODENAME=xenial Kindly let me know if i need to upgrade to specific kenerl version for i40e driver support. Regards, Karthick > On Jun 14, 2021, at 12:08 PM, Richard Cochran <ric...@gm...> wrote: > > On Mon, Jun 14, 2021 at 11:17:18AM +0530, Karthick Gunasekaran via Linuxptp-users wrote: >> When trying ptp4l with hardware timestamp on a hw timestamp supported interface, the sync and delay request packets are being received without timestamp. >> >> Linux version : 4.4.0-87-generic > > That must be a distro kernel -- which distro? > >> root@ptp-slave:~# ethtool -i enp1s0f0 >> driver: i40e >> version: 2.15.9 > > Hm, did kernel 4.4 already have PTP support in the i40e? > > Maybe this is a buggy back port? > > Thanks, > Richard > |
|
From: Keller, J. E <jac...@in...> - 2021-06-14 17:17:56
|
> -----Original Message----- > From: Richard Cochran <ric...@gm...> > Sent: Sunday, June 13, 2021 11:39 PM > To: Karthick Gunasekaran <kar...@pl...> > Cc: lin...@li... > Subject: Re: [Linuxptp-users] [LinuxPTP] Seeing SYNC without timestamp, > DELAY_REQ without timestamp > > On Mon, Jun 14, 2021 at 11:17:18AM +0530, Karthick Gunasekaran via Linuxptp- > users wrote: > > When trying ptp4l with hardware timestamp on a hw timestamp supported > interface, the sync and delay request packets are being received without > timestamp. > > > > Linux version : 4.4.0-87-generic > > That must be a distro kernel -- which distro? > > > root@ptp-slave:~# ethtool -i enp1s0f0 > > driver: i40e > > version: 2.15.9 > > Hm, did kernel 4.4 already have PTP support in the i40e? > > Maybe this is a buggy back port? > The first initial release of the kernel that hat i40e PTP support is v3.14, however... there are a lot of fixes, many of which are significantly newer than 4.4 > Thanks, > Richard > > > > _______________________________________________ > Linuxptp-users mailing list > Lin...@li... > https://lists.sourceforge.net/lists/listinfo/linuxptp-users |
|
From: Karthick G. <kar...@pl...> - 2021-06-18 08:06:02
|
Issue is resolved when nic firmware is upgraded to 8.30 version. - Karthick > On Jun 14, 2021, at 10:47 PM, Keller, Jacob E <jac...@in...> wrote: > > > >> -----Original Message----- >> From: Richard Cochran <ric...@gm... <mailto:ric...@gm...>> >> Sent: Sunday, June 13, 2021 11:39 PM >> To: Karthick Gunasekaran <kar...@pl... <mailto:kar...@pl...>> >> Cc: lin...@li... <mailto:lin...@li...> >> Subject: Re: [Linuxptp-users] [LinuxPTP] Seeing SYNC without timestamp, >> DELAY_REQ without timestamp >> >> On Mon, Jun 14, 2021 at 11:17:18AM +0530, Karthick Gunasekaran via Linuxptp- >> users wrote: >>> When trying ptp4l with hardware timestamp on a hw timestamp supported >> interface, the sync and delay request packets are being received without >> timestamp. >>> >>> Linux version : 4.4.0-87-generic >> >> That must be a distro kernel -- which distro? >> >>> root@ptp-slave:~# ethtool -i enp1s0f0 >>> driver: i40e >>> version: 2.15.9 >> >> Hm, did kernel 4.4 already have PTP support in the i40e? >> >> Maybe this is a buggy back port? >> > > The first initial release of the kernel that hat i40e PTP support is v3.14, however... there are a lot of fixes, many of which are significantly newer than 4.4 > >> Thanks, >> Richard >> >> >> >> _______________________________________________ >> Linuxptp-users mailing list >> Lin...@li... <mailto:Lin...@li...> >> https://lists.sourceforge.net/lists/listinfo/linuxptp-users <https://lists.sourceforge.net/lists/listinfo/linuxptp-users> |