<?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: FEC on imx6q stops receiving packets in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/FEC-on-imx6q-stops-receiving-packets/m-p/492387#M79081</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd suggest looking at newer versions of the relevant files in both Freescale and Mainline trees.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There may be a patch that explicitly mentions and fixes this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There must be some change that explains the "50% higher data rate" that is linked to (or the direct cause of) your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I looked through the tree for one of the 3.14 branches and came across this. I don't know if this patch went in before or after the version you're using, but this is the sort of thing I'd look for:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/commit/drivers/net/ethernet/freescale?h=imx_3.14.52_1.1.0_ga&amp;amp;id=29c1cf942508a01c357217365fb9680e4d03afe6" title="http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/commit/drivers/net/ethernet/freescale?h=imx_3.14.52_1.1.0_ga&amp;amp;id=29c1cf942508a01c357217365fb9680e4d03afe6"&gt;linux-2.6-imx.git - Freescale i.MX Linux Tree&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This patch fixes "a NAPI race condition that results in lost interrupts" and doesn't seem to be in 3.10.53 at least.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That may not be it but is the sort of thing I'd look for, preferably in a complete download of Freescale's tree so you can check the patches to "fec.c" (or whatever file is causing problems) at every release.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other drivers have had problems with the multiple cores running the driver code. Can you run as a single core or bind the FEC to a single core and see if the problem goes away?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 06 Feb 2016 05:37:02 GMT</pubDate>
    <dc:creator>TomE</dc:creator>
    <dc:date>2016-02-06T05:37:02Z</dc:date>
    <item>
      <title>FEC on imx6q stops receiving packets</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/FEC-on-imx6q-stops-receiving-packets/m-p/492386#M79080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a problem with FEC on a custom board with cpu imx6q.&lt;/P&gt;&lt;P&gt;The problem is occured after upgrading the kernel from imx git&amp;nbsp; kernel 3.10.17 to 3.10.31 or 3.10.53 .&lt;/P&gt;&lt;P&gt;FEC throughput&amp;nbsp; at small packets(64Bytes)&amp;nbsp; increased nearly %50 after kernel upgrade, so I want to use the new kernel for the performance reasons. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is :&lt;/P&gt;&lt;P&gt;Under heavy traffic at 64 bytes packets,&amp;nbsp; after a while the fec stops receiveing packets. The transmit seems ok. The only interrupts are MII. There is no RXF interupts.&lt;/P&gt;&lt;P&gt;There is no any error on by examinig error registers.&lt;/P&gt;&lt;P&gt;When I looked at the RDAR register it is 0, means FEC stops putting frames to rings beacuse all the rings seems to be full, indeed they are not full.&lt;/P&gt;&lt;P&gt;If I manually set RDAR bit to 1 the receive operations starts to operate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I looked the patches from 3.10.17 to 3.10.31 but couldnt find any reason why I dont see the problem at kernel version 3.10.17. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is appreciated.&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Feb 2016 10:09:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/FEC-on-imx6q-stops-receiving-packets/m-p/492386#M79080</guid>
      <dc:creator>sedat_altun</dc:creator>
      <dc:date>2016-02-05T10:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: FEC on imx6q stops receiving packets</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/FEC-on-imx6q-stops-receiving-packets/m-p/492387#M79081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd suggest looking at newer versions of the relevant files in both Freescale and Mainline trees.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There may be a patch that explicitly mentions and fixes this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There must be some change that explains the "50% higher data rate" that is linked to (or the direct cause of) your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I looked through the tree for one of the 3.14 branches and came across this. I don't know if this patch went in before or after the version you're using, but this is the sort of thing I'd look for:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/commit/drivers/net/ethernet/freescale?h=imx_3.14.52_1.1.0_ga&amp;amp;id=29c1cf942508a01c357217365fb9680e4d03afe6" title="http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/commit/drivers/net/ethernet/freescale?h=imx_3.14.52_1.1.0_ga&amp;amp;id=29c1cf942508a01c357217365fb9680e4d03afe6"&gt;linux-2.6-imx.git - Freescale i.MX Linux Tree&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This patch fixes "a NAPI race condition that results in lost interrupts" and doesn't seem to be in 3.10.53 at least.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That may not be it but is the sort of thing I'd look for, preferably in a complete download of Freescale's tree so you can check the patches to "fec.c" (or whatever file is causing problems) at every release.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other drivers have had problems with the multiple cores running the driver code. Can you run as a single core or bind the FEC to a single core and see if the problem goes away?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Feb 2016 05:37:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/FEC-on-imx6q-stops-receiving-packets/m-p/492387#M79081</guid>
      <dc:creator>TomE</dc:creator>
      <dc:date>2016-02-06T05:37:02Z</dc:date>
    </item>
    <item>
      <title>Re: FEC on imx6q stops receiving packets</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/FEC-on-imx6q-stops-receiving-packets/m-p/492388#M79082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sedat&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;seems similar problem was repoerted on&lt;/P&gt;&lt;P&gt;&lt;A href="http://lists.infradead.org/pipermail/linux-arm-kernel/2014-February/230199.html" title="http://lists.infradead.org/pipermail/linux-arm-kernel/2014-February/230199.html"&gt;Freescale FEC packet loss&lt;/A&gt; &lt;/P&gt;&lt;P&gt;also one can look at ethernet tuning on&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-98322"&gt;About Gigabit Ethernet performance gap between Android&amp;amp;amp;Linux&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;igor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Feb 2016 11:32:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/FEC-on-imx6q-stops-receiving-packets/m-p/492388#M79082</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2016-02-07T11:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: FEC on imx6q stops receiving packets</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/FEC-on-imx6q-stops-receiving-packets/m-p/492389#M79083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tom,&lt;/P&gt;&lt;P&gt;Thank you very much for your reply. Instead of applying patches one by one&amp;nbsp; I will backport the complete fec driver from latest imx kernel to my kernel 3.10.17. &lt;/P&gt;&lt;P&gt;After I complete the test i will write the results here.&lt;/P&gt;&lt;P&gt;And also i was confused about which git tree to use boundry devices or freescale imx git. They seems different at least for fec driver. &lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Feb 2016 20:47:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/FEC-on-imx6q-stops-receiving-packets/m-p/492389#M79083</guid>
      <dc:creator>sedat_altun</dc:creator>
      <dc:date>2016-02-07T20:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: FEC on imx6q stops receiving packets</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/FEC-on-imx6q-stops-receiving-packets/m-p/492390#M79084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Igor，&lt;/P&gt;&lt;P&gt;Thank you very much for the links.&lt;/P&gt;&lt;P&gt;I will look at them.&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Feb 2016 20:55:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/FEC-on-imx6q-stops-receiving-packets/m-p/492390#M79084</guid>
      <dc:creator>sedat_altun</dc:creator>
      <dc:date>2016-02-07T20:55:14Z</dc:date>
    </item>
  </channel>
</rss>

