Re: [Linuxptp-users] Hardware PTP clock synchronization
PTP IEEE 1588 stack for Linux
Brought to you by:
rcochran
From: Гаврилов А. <le...@im...> - 2013-08-02 06:33:32
|
Thanks for your interest in my problem! lspci output: Intel 82576 Gigabit ethernet controller (rev 01) Intel 82576 Gigabit ethernet controller (rev 01) ethtool output: ethtool -T p16p1 Time stamping parameters for p16p1: 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: 0 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-sync (HWTSTAMP_FILTER_PTP_V2_L4_SYNC) ptpv2-l4-delay-req (HWTSTAMP_FILTER_PTP_V2_L4_DELAY_REQ) 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) > You are on a modern kernel. Please do not use -p /dev/ptpX option. Let the program automatically determine it. Ok, it works. > How about just increasing the tx_timestamp_timeout configuration option to 100 or 1000? Set a tx_timestamp_timeout value to 1000 in configuration file. > Also please re-try with -P, for peer to peer delay mechanism. ptp4l -2 -i p16p1 -P -m -H -s ptp4l[728.271]: selected /dev/ptp0 as PTP clock ptp4l[728.288]: port 1: INITIALIZING to LISTENING on INITIALIZE ptp4l[728.288]: port 0: INITIALIZING to LISTENING on INITIALIZE ptp4l[729.462]: port 1: new foreign master ece555.fffe.2de639-2 ptp4l[733.452]: selected best master clock ece555.fffe.2de639 ptp4l[733.452]: port 1: LISTENING to UNCALIBRATED on RS_SLAVE ptp4l[734.458]: recvmsg tx timestamp failed: Resource temporarily unavailable ptp4l[734.458]: port 1: send peer delay request failed ptp4l[734.458]: port 1: UNCALIBRATED to FAULTY on FAULT_DETECTED > I wrote the original igb ptp code, but I never tested the 82576 because I don't have one. I am not sure if Intel tested this either. Richard, you are an employee Intel? Or a driver for Intel card are developing people who do not work in Intel? I wrote to tech support intel two months ago, they said that my question is redirected to a deeper level. To this day there is no response from Intel. > Basically, the 82576 is not a very reliable part for timestamping... What kind of adapter would you recommend instead of 82576? (gigabit). In any case, thank you very much! |