<?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>P-Series中的主题 Re: 1588 PTP Linux eTSEC gianfar.c device driver restarting</title>
    <link>https://community.nxp.com/t5/P-Series/1588-PTP-Linux-eTSEC-gianfar-c-device-driver-restarting/m-p/241462#M391</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I solved this by upgrading to Linux kernel 3.12-rc3.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Oct 2013 16:08:46 GMT</pubDate>
    <dc:creator>kensallings</dc:creator>
    <dc:date>2013-10-02T16:08:46Z</dc:date>
    <item>
      <title>1588 PTP Linux eTSEC gianfar.c device driver restarting</title>
      <link>https://community.nxp.com/t5/P-Series/1588-PTP-Linux-eTSEC-gianfar-c-device-driver-restarting/m-p/241461#M390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-P1020 QorIQ processor.&lt;/P&gt;&lt;P&gt;-eTSEC3 (configured as eth0)&lt;/P&gt;&lt;P&gt;-gianfar device driver.&lt;/P&gt;&lt;P&gt;-Linux Kernel (Mainline Linux kernel 3.10)&amp;nbsp; [NOTE:&amp;nbsp; Freescale bsp 1.3 exhibits the same problem.]&lt;/P&gt;&lt;P&gt;-linuxptp-1.3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When running ptp4l, I get the following output:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~ # cat /bin/start_ptp4l.sh &lt;/P&gt;&lt;P&gt;#!/bin/sh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ptp4l -m -l 7 -i eth0 -f /etc/gPTP.cfg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~ # start_ptp4l.sh &lt;/P&gt;&lt;P&gt;ptp4l[39.609]: selected /dev/ptp0 as PTP clock&lt;/P&gt;&lt;P&gt;ptp4l[39.612]: PI servo: sync interval 1.000 kp 0.700 ki 0.300000&lt;/P&gt;&lt;P&gt;ptp4l[39.619]: driver changed our HWTSTAMP options&lt;/P&gt;&lt;P&gt;ptp4l[39.619]: tx_type&amp;nbsp;&amp;nbsp; 1 not 1&lt;/P&gt;&lt;P&gt;ptp4l[39.619]: rx_filter 1 not 12&lt;/P&gt;&lt;P&gt;ptp4l[39.619]: port 1: INITIALIZING to LISTENING on INITIALIZE&lt;/P&gt;&lt;P&gt;ptp4l[39.619]: port 0: INITIALIZING to LISTENING on INITIALIZE&lt;/P&gt;&lt;P&gt;ptp4l[45.619]: port 1: announce timeout&lt;/P&gt;&lt;P&gt;ptp4l[45.619]: port 1: LISTENING to MASTER on ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES&lt;/P&gt;&lt;P&gt;ptp4l[45.619]: selected best master clock 000102.fffe.030405&lt;/P&gt;&lt;P&gt;ptp4l[45.620]: assuming the grand master role&lt;/P&gt;&lt;P&gt;ptp4l[45.620]: port 1: master sync timeout&lt;/P&gt;&lt;P&gt;ptp4l[45.622]: port 1: master sync timeout&lt;/P&gt;&lt;P&gt;NETDEV WATCHDOG: eth0 (fsl-gianfar): transmit queue 6 timed out&lt;/P&gt;&lt;P&gt;------------[ cut here ]------------&lt;/P&gt;&lt;P&gt;WARNING: at net/sched/sch_generic.c:255&lt;/P&gt;&lt;P&gt;Modules linked in: trak_fpga_itfc(O) trak_intr0(O)&lt;/P&gt;&lt;P&gt;CPU: 0 PID: 710 Comm: main Tainted: G&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; O 3.10.0 #9&lt;/P&gt;&lt;P&gt;task: df112300 ti: c426e000 task.ti: c426e000&lt;/P&gt;&lt;P&gt;NIP: c040f240 LR: c040f240 CTR: c030a7b0&lt;/P&gt;&lt;P&gt;REGS: c426fd50 TRAP: 0700&amp;nbsp;&amp;nbsp; Tainted: G&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; O&amp;nbsp; (3.10.0)&lt;/P&gt;&lt;P&gt;MSR: 00029000 &amp;lt;CE,EE,ME&amp;gt;&amp;nbsp; CR: 22000422&amp;nbsp; XER: 20000000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GPR00: c040f240 c426fe00 df112300 0000003f 00021000 00000005 c030b15c 65756520 &lt;/P&gt;&lt;P&gt;GPR08: 36207469 c063b11c c066f490 00000001 000000e4 1002e398 00000004 00000001 &lt;/P&gt;&lt;P&gt;GPR16: c0584a18 c063b1c0 00400100 ffff08c1 00000000 c0635260 c0679714 ffffffff &lt;/P&gt;&lt;P&gt;GPR24: 00000000 00000000 00000004 00000600 c0660000 c0670000 c426e000 df022000 &lt;/P&gt;&lt;P&gt;NIP [c040f240] dev_watchdog+0x2c4/0x2d4&lt;/P&gt;&lt;P&gt;LR [c040f240] dev_watchdog+0x2c4/0x2d4&lt;/P&gt;&lt;P&gt;Call Trace:&lt;/P&gt;&lt;P&gt;[c426fe00] [c040f240] dev_watchdog+0x2c4/0x2d4 (unreliable)&lt;/P&gt;&lt;P&gt;[c426fe40] [c00431c4] call_timer_fn.clone.26+0x28/0x80&lt;/P&gt;&lt;P&gt;[c426fe60] [c0043400] run_timer_softirq+0x1e4/0x1f0&lt;/P&gt;&lt;P&gt;[c426fea0] [c003ce04] __do_softirq+0x104/0x1c0&lt;/P&gt;&lt;P&gt;[c426ff00] [c003d064] irq_exit+0xa8/0xd0&lt;/P&gt;&lt;P&gt;[c426ff10] [c0008dc0] timer_interrupt+0x1a0/0x1cc&lt;/P&gt;&lt;P&gt;[c426ff40] [c000e374] ret_from_except+0x0/0x18&lt;/P&gt;&lt;P&gt;--- Exception: 901 at 0x100015a4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LR = 0x100015a4&lt;/P&gt;&lt;P&gt;Instruction dump:&lt;/P&gt;&lt;P&gt;4e800421 815f0204 4bfffe9c 7fe3fb78 90c10008 4bfe6edd 7fe4fb78 7c651b78 &lt;/P&gt;&lt;P&gt;80c10008 3c60c05d 3863817c 480ee041 &amp;lt;0fe00000&amp;gt; 38000001 981c2ee0 4bffffb4 &lt;/P&gt;&lt;P&gt;---[ end trace 6bacd068e81b67d9 ]---&lt;/P&gt;&lt;P&gt;ptp4l[46.953]: port 1: master sync timeout&lt;/P&gt;&lt;P&gt;ptp4l[48.821]: port 1: master tx announce timeout&lt;/P&gt;&lt;P&gt;ptp4l[48.822]: port 1: master sync timeout&lt;/P&gt;&lt;P&gt;ptp4l[50.821]: port 1: master sync timeout&lt;/P&gt;&lt;P&gt;ptp4l[52.821]: port 1: master tx announce timeout&lt;/P&gt;&lt;P&gt;ptp4l[52.822]: port 1: master sync timeout&lt;/P&gt;&lt;P&gt; ptp4l[53.690]: caught signal 2&lt;/P&gt;&lt;P&gt;ptp4l[53.690]: poll tx timestamp failed: Interrupted system call&lt;/P&gt;&lt;P&gt;ptp4l[53.690]: port 1: send sync failed&lt;/P&gt;&lt;P&gt;ptp4l[53.690]: port 1: MASTER to FAULTY on FAULT_DETECTED (FT_UNSPECIFIED)&lt;/P&gt;&lt;P&gt;ptp4l[53.690]: waiting 2^{4} seconds to clear fault on port 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~ # &lt;/P&gt;&lt;P&gt;~ # &lt;/P&gt;&lt;P&gt;~ # &lt;/P&gt;&lt;P&gt;~ # &lt;/P&gt;&lt;P&gt;~ # &lt;/P&gt;&lt;P&gt;~ # &lt;/P&gt;&lt;P&gt;~ # ifconfig eth0&lt;/P&gt;&lt;P&gt;eth0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Link encap:Ethernet&amp;nbsp; HWaddr 00:01:02:03:04:05&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; inet addr:10.80.41.229&amp;nbsp; Bcast:10.80.43.255&amp;nbsp; Mask:255.255.252.0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; inet6 addr: fe80::201:2ff:fe03:405/64 Scope:Link&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UP BROADCAST RUNNING MULTICAST&amp;nbsp; MTU:1500&amp;nbsp; Metric:1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RX packets:2976 errors:0 dropped:24 overruns:0 frame:0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TX packets:21 errors:6 dropped:0 overruns:0 carrier:0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; collisions:0 txqueuelen:1000 &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RX bytes:313521 (306.1 KiB)&amp;nbsp; TX bytes:1918 (1.8 KiB)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Base address:0xe000 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From looking at the output one of the transmit queues timed out.&amp;nbsp; Shortly thereafter the gianfar error interrupt will be called and the device driver is restarted.&amp;nbsp; That happens every 2 seconds.&amp;nbsp; This is killing the 1588 protocol.&amp;nbsp; Does anyone have any idea as to why this is happening?&amp;nbsp; I am currently trying to dig through the device driver to determine the problem, but I could use some expert advice to speed me up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ken&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Sep 2013 17:14:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/1588-PTP-Linux-eTSEC-gianfar-c-device-driver-restarting/m-p/241461#M390</guid>
      <dc:creator>kensallings</dc:creator>
      <dc:date>2013-09-19T17:14:13Z</dc:date>
    </item>
    <item>
      <title>Re: 1588 PTP Linux eTSEC gianfar.c device driver restarting</title>
      <link>https://community.nxp.com/t5/P-Series/1588-PTP-Linux-eTSEC-gianfar-c-device-driver-restarting/m-p/241462#M391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I solved this by upgrading to Linux kernel 3.12-rc3.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Oct 2013 16:08:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/1588-PTP-Linux-eTSEC-gianfar-c-device-driver-restarting/m-p/241462#M391</guid>
      <dc:creator>kensallings</dc:creator>
      <dc:date>2013-10-02T16:08:46Z</dc:date>
    </item>
  </channel>
</rss>

