[Linuxptp-users] Problems with hardware time stamping with PHY DP83640 on MCP5200 powerpc platform
PTP IEEE 1588 stack for Linux
Brought to you by:
rcochran
From: Mario M. <Mar...@we...> - 2012-05-22 17:35:02
|
Hallo linuxptp members, I have some problems to use our PTP device (PHY DP83640 on MCP5200 powerpc platform). The software time stamping seems for the first look ok but the hardware time stamping have some problems. 1.) software time stamping: ==================== ptp4l[180]: port 1: INITIALIZING to LISTENING on INITIALIZE ptp4l[180]: port 1: new foreign master 0050c2.fffe.c2dfc3-1 ptp4l[180]: selected best master clock 0050c2.fffe.c2dfc3 ptp4l[180]: port 1: LISTENING to UNCALIBRATED on RS_SLAVE ptp4l[180]: port 1: minimum delay request interval 2^3 ptp4l[180]: master offset 536296 s0 adj +0 path delay 116376 ptp4l[180]: master offset 546610 s0 adj +0 path delay 116376 ptp4l[180]: master offset 552398 s0 adj +0 path delay 116376 ptp4l[180]: master offset 597686 s1 adj +0 path delay 116376 ptp4l[180]: master offset 30287 s2 adj +3059 path delay 116376 ptp4l[180]: port 1: UNCALIBRATED to SLAVE on MASTER_CLOCK_SELECTED ptp4l[180]: master offset 41825 s2 adj +4255 path delay 116376 ptp4l[180]: master offset 104402 s2 adj +10617 path delay 116376 ptp4l[180]: master offset 108479 s2 adj +11133 path delay 116376 ptp4l[180]: master offset 190504 s2 adj +19526 path delay 95604 ptp4l[180]: master offset 180213 s2 adj +18677 path delay 95604 ptp4l[180]: master offset 212836 s2 adj +22152 path delay 87573 ptp4l[180]: master offset 202140 s2 adj +21285 path delay 87573 ptp4l[180]: master offset 245722 s2 adj +25889 path delay 87573 ptp4l[180]: master offset 212369 s2 adj +22766 path delay 95802 ptp4l[180]: master offset 241451 s2 adj +25915 path delay 95802 ptp4l[180]: master offset 302218 s2 adj +32294 path delay 95802 ptp4l[180]: master offset 164231 s2 adj +18660 path delay 95802 ptp4l[180]: master offset 150769 s2 adj +17464 path delay 95724 It adjust only the system clock not PHY clock. 2.) hardware time stamping =================== ptp4l[183]: selected /dev/ptp0 as PTP clock ptp4l[183]: port 1: INITIALIZING to LISTENING on INITIALIZE ptp4l[183]: received SYNC without timestamp ptp4l[183]: port 1: bad message ptp4l[183]: port 1: new foreign master 0050c2.fffe.c2dfc3-1 ptp4l[183]: received SYNC without timestamp ptp4l[183]: port 1: bad message ptp4l[183]: received SYNC without timestamp ptp4l[183]: port 1: bad message ptp4l[183]: selected best master clock 0050c2.fffe.c2dfc3 ptp4l[183]: port 1: LISTENING to UNCALIBRATED on RS_SLAVE ptp4l[183]: recvmsg tx timestamp failed: Resource temporarily unavailable ptp4l[183]: port 1: send delay request failed ptp4l[183]: port 1: UNCALIBRATED to FAULTY on FAULT_DETECTED ptp4l[183]: port 1: FAULTY to LISTENING on FAULT_CLEARED ptp4l[183]: received SYNC without timestamp ptp4l[183]: port 1: bad message ptp4l[183]: port 1: new foreign master 0050c2.fffe.c2dfc3-1 ptp4l[183]: received SYNC without timestamp ptp4l[183]: port 1: bad message ptp4l[183]: received SYNC without timestamp ptp4l[183]: port 1: bad message ptp4l[183]: selected best master clock 0050c2.fffe.c2dfc3 ptp4l[183]: port 1: LISTENING to UNCALIBRATED on RS_SLAVE ptp4l[183]: recvmsg tx timestamp failed: Resource temporarily unavailable ptp4l[183]: port 1: send delay request failed ptp4l[183]: port 1: UNCALIBRATED to FAULTY on FAULT_DETECTED ptp4l[183]: port 1: FAULTY to LISTENING on FAULT_CLEARED ptp4l[183]: received SYNC without timestamp ptp4l[183]: port 1: bad message ptp4l[183]: port 1: new foreign master 0050c2.fffe.c2dfc3-1 ptp4l[183]: received SYNC without timestamp ptp4l[183]: port 1: bad message ptp4l[183]: received SYNC without timestamp ptp4l[183]: port 1: bad message ptp4l[183]: selected best master clock 0050c2.fffe.c2dfc3 ptp4l[183]: port 1: LISTENING to UNCALIBRATED on RS_SLAVE ptp4l[183]: recvmsg tx timestamp failed: Resource temporarily unavailable ptp4l[183]: port 1: send delay request failed ptp4l[183]: port 1: UNCALIBRATED to FAULTY on FAULT_DETECTED ptp4l[183]: port 1: FAULTY to LISTENING on FAULT_CLEARED ptp4l[183]: received SYNC without timestamp ptp4l[183]: port 1: bad message ptp4l[183]: port 1: new foreign master 0050c2.fffe.c2dfc3-1 ptp4l[183]: received SYNC without timestamp ptp4l[183]: port 1: bad message ptp4l[183]: received SYNC without timestamp ptp4l[183]: port 1: bad message ptp4l[183]: selected best master clock 0050c2.fffe.c2dfc3 ptp4l[183]: port 1: LISTENING to UNCALIBRATED on RS_SLAVE ptp4l[183]: recvmsg tx timestamp failed: Resource temporarily unavailable ptp4l[183]: port 1: send delay request failed ptp4l[183]: port 1: UNCALIBRATED to FAULTY on FAULT_DETECTED I used following linux version without any source changes for test of PTP: Linux version 3.4.0-rc7-next-20120514 with following options - CONFIG_EXPERIMENTAL - CONFIG_PPS - CONFIG_NETWORK_PHY_TIMESTAMPING - PTP_1588_CLOCKPTP I have at the moment no any idea what is wrong and I need help to figure out where the problem is. The other point is, I am not sure that the ptp4l support the DP83640 PHY. Please let me know how I can debug this problem e.g. with some printks in the kernel driver or adapt the ptp4l application. Best regards and many thanks for the help in advance, Mario Molitor |