Forum Discussion

vitor_woyakewicz's avatar
vitor_woyakewicz
Icon for New Contributor rankNew Contributor
3 years ago

LinuxPTP using intel TSE MAC IP

This is my first time on the Intel Community Forum, so I apologize if i dont follow some community guidelines.

I am trying to make an implementation for PTP time synchronization using a DP83640 PHY + intel TSE MAC + LinuxPTP stack. The Hardware Time Stamps are created in the PHY and the Linux PTP stack receive this information through the TSE MAC via MII.

Checking the time stamp capabilties of my ethernet adapter using ethtol -t eth0 i get the following:

Apparently, i should be okay to use the linuxPTP software, however, when i try to run it or even use the debug tool hwstamp_ctl i get the following:

I thought i configured all the drivers correctly, as well as the device tree. It seems to be a driver related problem. Does anyone have any idea of what the problem could be?

I am using Linux Kernel Version: 5.4.94 and LinuxPTP Version: 3.1

6 Replies

  • Hello Vitor,


    I'm currently discussing with teammates on this issue. Will definitely come back on this once I have a proper fix for this.

    Meanwhile, can you confirm that the ping is working, just to make sure the ethernet link is up and running.


    Regards,

    Pavee


    • vitor_woyakewicz's avatar
      vitor_woyakewicz
      Icon for New Contributor rankNew Contributor

      Hi Paveetirra,

      I apreciate the response. The ethernet link is perfectly fine, i am using it for a few months now. SSH and SCP works with no problem. The only thing that doesnt seems to work is the ptp timestamping.

      Best regards,

      Vitor.

  • Hello Vitor,


    Apologize for the delay. I don't think we have tested Linux PTP on TSE. Well not that I'm aware of.

    I would suggest is to check hardware PTP clock master ad its connection. From software point of view, try to understand TSE IP register enablement.


    Regards,

    Pavee


    • vitor_woyakewicz's avatar
      vitor_woyakewicz
      Icon for New Contributor rankNew Contributor

      Hello Pavee,

      I appreciate the help. I will study the TSE IP and PTP clock master connections.

      Best regards,

      Vitor Augusto Woyakewicz

  • Hello Vitor,


    Good day.

    You could also check TSE MAC configuration through example design in AN647. I have attached the link for your reference. Try to compare the MAC configuration with your design.

    Kindly download the example design and unarchive, there is a file called "config.tcl", this file contains the TSE MAC register setting. System console will source this file to configure the TSE MAC register.


    https://www.intel.com/content/www/us/en/docs/programmable/683344/current/single-port-triple-speed-ethernet-and.html


    Regards,

    Pavee



  • We do not receive any response from you to the previous reply that I have provided. This thread will be transitioned to community support.

    If you have a new question, feel free to open a new thread to get the support from Intel experts.

    Otherwise, the community users will continue to help you on this thread.

    Thank you.