<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: PTP timestamping in PowerQUICC Processors</title>
    <link>https://community.nxp.com/t5/PowerQUICC-Processors/PTP-timestamping/m-p/1247801#M3603</link>
    <description>&lt;P&gt;Please refer to the attached patch for ptpd from NXP.&lt;/P&gt;</description>
    <pubDate>Thu, 18 Mar 2021 05:28:12 GMT</pubDate>
    <dc:creator>yipingwang</dc:creator>
    <dc:date>2021-03-18T05:28:12Z</dc:date>
    <item>
      <title>PTP timestamping</title>
      <link>https://community.nxp.com/t5/PowerQUICC-Processors/PTP-timestamping/m-p/1241022#M3585</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying hw timestamping using timestamping.c (basically sending - receiving ptp packets) on p3041. I added PTP_ENBL_TXTS_IOCTL and PTP_GET_TIME ioctls in the given code.&amp;nbsp;I set clock source as mac clk. I saw counter is incrementing (PTP_GET_TIME ) at user space application. When I send UDP packets (sendpacket), wireshark capturing ptp packets but timestamps always zero. (port: 319)&lt;/P&gt;&lt;P&gt;And I want to ask about testptp.c. It is using clock_gettime() function. Is it getting counter value of 1588 module? And can I use it as hardware timestamp.&lt;/P&gt;&lt;P&gt;Do you have any idea?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Mar 2021 13:45:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/PowerQUICC-Processors/PTP-timestamping/m-p/1241022#M3585</guid>
      <dc:creator>LordStark3232</dc:creator>
      <dc:date>2021-03-05T13:45:15Z</dc:date>
    </item>
    <item>
      <title>Re: PTP timestamping</title>
      <link>https://community.nxp.com/t5/PowerQUICC-Processors/PTP-timestamping/m-p/1242409#M3589</link>
      <description>&lt;P&gt;Please refer to&amp;nbsp;&lt;STRONG&gt;Open Source&lt;/STRONG&gt;&lt;STRONG&gt; Software Block Diagram as the following.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yipingwang_0-1615282242231.png" style="width: 555px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/139092i3EF39D8B21169C6C/image-dimensions/555x193?v=v2" width="555" height="193" role="button" title="yipingwang_0-1615282242231.png" alt="yipingwang_0-1615282242231.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Timestamp Processing in Open Source&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;•A shared time stamp structure – struct skb_shared_hwtstamps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; struct&amp;nbsp; skb_shared_hwtstamps {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ktime_t hwtstamp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ktime_t syststamp; /* hwtstamp transformed to system time base */&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;/P&gt;
&lt;P&gt;•Time stamps for received packets was stored in the skb. Get a pointer to the shared time stamp structure by calling skb_hwtstamps(). Then set the time stamps in the structure skb_shared_hwtstamps.&lt;/P&gt;
&lt;P&gt;•For outgoing packets, skb_hwtstamp_tx() clones the original skb and adds the timestamp to structure skb_shared_hwtstamps. The cloned skb with the send timestamp attached is looped back to the socket's error queue.&lt;/P&gt;
&lt;P&gt;•PTPd get the RX timestamp by calling recvmsg() and the TX timestamp by calling recvmsg(flags=MSG_ERRQUEUE).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Mar 2021 09:36:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/PowerQUICC-Processors/PTP-timestamping/m-p/1242409#M3589</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2021-03-09T09:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: PTP timestamping</title>
      <link>https://community.nxp.com/t5/PowerQUICC-Processors/PTP-timestamping/m-p/1243068#M3590</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN class=""&gt;&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/52411" target="_self"&gt;yipingwang&lt;/A&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;When I send ptp packet (followup or sync) at User Space App, do I have to add timestamp inside of ptp packet or controller automatically add timestamp outgoing packets?. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;I can succesfuly read my loop back timestamp with recvmsg(&lt;SPAN&gt;MSG_ERRQUEUE&lt;/SPAN&gt;) from transmitter side but receiver side not getting timestamp when it receives ptp packet.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Mar 2021 07:55:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/PowerQUICC-Processors/PTP-timestamping/m-p/1243068#M3590</guid>
      <dc:creator>LordStark3232</dc:creator>
      <dc:date>2021-03-10T07:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: PTP timestamping</title>
      <link>https://community.nxp.com/t5/PowerQUICC-Processors/PTP-timestamping/m-p/1246121#M3599</link>
      <description>&lt;P&gt;Please enable 1588 driver for PTPd stack&lt;/P&gt;
&lt;P&gt;Device Drivers ---&amp;gt;&lt;BR /&gt;&amp;nbsp; PTP clock support ---&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;*&amp;gt; Freescale DPAA as PTP clock&lt;/P&gt;</description>
      <pubDate>Tue, 16 Mar 2021 06:37:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/PowerQUICC-Processors/PTP-timestamping/m-p/1246121#M3599</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2021-03-16T06:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: PTP timestamping</title>
      <link>https://community.nxp.com/t5/PowerQUICC-Processors/PTP-timestamping/m-p/1246157#M3600</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I have this configuration.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Device Drivers ---&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; PTP clock support ---&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;*&amp;gt; Freescale dTSEC as PTP clock&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When I transmit some PTP package for example Followup, I can read my transmit time stamp calling receive with MSG_ERRORQUE flag. But receiver is not getting these time stamps from received packet. Time stamp fields in received PTP packet is always zero which is not set.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Do I have to add timestamp fields at software or should I expect dTSEC to add timestamps automatically (which is not adding ts right now).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Also in dpaa document, it is stated TCTRL[TTSE] causes return of time-stamp value from dTSEC. I guess it is not adding any time-stamp into PTP messages.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Mar 2021 07:31:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/PowerQUICC-Processors/PTP-timestamping/m-p/1246157#M3600</guid>
      <dc:creator>LordStark3232</dc:creator>
      <dc:date>2021-03-16T07:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: PTP timestamping</title>
      <link>https://community.nxp.com/t5/PowerQUICC-Processors/PTP-timestamping/m-p/1247801#M3603</link>
      <description>&lt;P&gt;Please refer to the attached patch for ptpd from NXP.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Mar 2021 05:28:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/PowerQUICC-Processors/PTP-timestamping/m-p/1247801#M3603</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2021-03-18T05:28:12Z</dc:date>
    </item>
  </channel>
</rss>

