Hi,

I recently migrated from using the native 1G MAC with PTP support in my Intel 
Stratix 10 SoC FPGA ARM processor to a new 10G MAC with PTP support based on a 
Rocketboards sample project 
(https://rocketboards.org/foswiki/Projects/Stratix10SoCDesignExampleFor10GbeWithIEEE1588PTPCapability)
 . I have tested out the sample project using their targeted hardware (Stratix 
10 SX Dev Kit) and observed that both 10G Ethernet communications and PTP 
functionality work well.

On my hardware the interface also works well and I am able to send receive 
Ethernet messages from my ARM processor. However, when I try to use ptp4l I am 
getting a strange sequence of events.


  *   Ptp4l starts up and recognizes my remote GM clock.
  *   It attempts to send out a Delay Request message and reports that the 
message failed.
  *   Ptp4l then goes into the Faulty state.

root@stratix10:~/ptp4l_output# ./ptp4l -m -s -H -i eth0 --tx_timestamp_timeout 
100
ptp4l[269.984]: selected /dev/ptp0 as PTP clock
[  269.994322] intel_fpga_qse_ll f9030000.ethernet eth0: 
qse_set_hwtstamp_config config flags:0x0, tx_type:0x1, rx_filter:0xc
ptp4l[270.000]: port 1: INITIALIZING to LISTENING on INIT_COMPLETE
ptp4l[270.000]: port 0: INITIALIZING to LISTENING on INIT_COMPLETE
ptp4l[271.704]: port 1: new foreign master 001b21.fffe.c00dd6-1
ptp4l[275.704]: selected best master clock 001b21.fffe.c00dd6
ptp4l[275.704]: port 1: LISTENING to UNCALIBRATED on RS_SLAVE
ptp4l[275.868]: timed out while polling for tx timestamp
ptp4l[275.868]: increasing tx_timestamp_timeout may correct this issue, but it 
is likely caused by a driver bug
ptp4l[275.868]: port 1: send delay request failed
ptp4l[275.868]: port 1: UNCALIBRATED to FAULTY on FAULT_DETECTED 
(FT_UNSPECIFIED)

However, I see in Wireshark that the ARM processor did indeed send out the 
Delay Request message. The GM also responded correctly with the Delay Response 
message!

I modified the ptp4l source code to print out the errno and resolved error 
message in the function that prints out "send delay request failed" (port.c). I 
am seeing an errno of 6 which resolves to "No such device or address".

Do you have any clue what could be causing this strange behavior?

Thanks,
Daniel


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

Reply via email to