Avnu / OpenAvnu

OpenAvnu - an Avnu sponsored repository for Time Sensitive Network (TSN and AVB) technology
462 stars 289 forks source link

Getting GPTP to run on Intel 82579 #883

Closed satishbabu2136 closed 4 years ago

satishbabu2136 commented 4 years ago

I am trying to run the gptp daemon with 3 systems as listeners, but system stops the daemons with the different error messages. This gptp was working fine with 2 systems, when I start the third system, it goes to the different errors like., invalid received timestamp, follow up response message sequence ID mismatch and port identity mismatch.

Will it support for the ethernet controller, Intel 82579?

jdkoftinoff commented 4 years ago

No, the 82579 does not have hardware timestamping support.

You need the i210 ethernet hardware.

On Sep 24, 2019, at 6:57 AM, satishbabu2136 notifications@github.com wrote:

I am trying to run the gptp daemon with 3 systems as listeners, but system stops the daemons with the different error messages. This gptp was working fine with 2 systems, when I start the third system, it goes to the different errors like., invalid received timestamp, follow up response message sequence ID mismatch and port identity mismatch.

Will it support for the ethernet controller, Intel 82579?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/AVnu/OpenAvnu/issues/883?email_source=notifications&email_token=AABSADMQSJCGRRVY5BYRW23QLIMFHA5CNFSM4I2ACSNKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HNKM3XQ, or mute the thread https://github.com/notifications/unsubscribe-auth/AABSADPNLIZ5DGD7OTH4KR3QLIMFHANCNFSM4I2ACSNA.

satishbabu2136 commented 4 years ago

But, if i ran with 2 systems on Intel 82579, it is working fine. If it doesn't support hardware timestamping then how it's running with 2 systems?

jdkoftinoff commented 4 years ago

The timing accuracy is what is important. Without hardware timing accuracy you will always have troubles.

On Sep 24, 2019, at 9:59 PM, satishbabu2136 notifications@github.com wrote:

But, if i ran with 2 systems on Intel 82579, it is working fine. If it doesn't support hardware timestamping then how it's running with 2 systems?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/AVnu/OpenAvnu/issues/883?email_source=notifications&email_token=AABSADJBGQA4B67O532KHFTQLLV4XA5CNFSM4I2ACSNKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7QTHEA#issuecomment-534852496, or mute the thread https://github.com/notifications/unsubscribe-auth/AABSADKI545OGNHF6LQE45LQLLV4XANCNFSM4I2ACSNA.

satishbabu2136 commented 4 years ago

Thanks for the information.

pinealservo commented 4 years ago

The Intel 82579 does support hardware timestamping, though. But apparently there have been driver bugs related to PTP support on it in the past: https://lore.kernel.org/patchwork/patch/761667/

These ought to be fixed on recent kernels, but you may need to experimentally determine the right PHY delay parameters and such things. You may also want to try the LinuxPTP software; it may support that NIC better than the gPTP daemon here, which has been largely focused on working well with i210.

Note that although it has hardware timestamping, it does not have any other AVB/TSN features and the i210 is what you want if you want to go further than just time sync.

jdkoftinoff commented 4 years ago

Oh, good point! For the longest time the hardware time stamping just wasn’t enabled at all.

To the original poster of the question: If you have 3 devices hooked up to the network, which switch are you using? If it is not 802.1AS enabled you will see failure when you connect 3 devices.

Jeff

On Sep 26, 2019, at 1:25 AM, Levi Pearson notifications@github.com wrote:

The Intel 82579 does support hardware timestamping, though. But apparently there have been driver bugs related to PTP support on it in the past: https://lore.kernel.org/patchwork/patch/761667/ https://lore.kernel.org/patchwork/patch/761667/ These ought to be fixed on recent kernels, but you may need to experimentally determine the right PHY delay parameters and such things. You may also want to try the LinuxPTP software; it may support that NIC better than the gPTP daemon here, which has been largely focused on working well with i210.

Note that although it has hardware timestamping, it does not have any other AVB/TSN features and the i210 is what you want if you want to go further than just time sync.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/AVnu/OpenAvnu/issues/883?email_source=notifications&email_token=AABSADN3MEZPSNR76OQE6BTQLRWYPA5CNFSM4I2ACSNKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7UYI3Y#issuecomment-535397487, or mute the thread https://github.com/notifications/unsubscribe-auth/AABSADIP4R5V36EZNHYDFZDQLRWYPANCNFSM4I2ACSNA.