<?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: imx6ull network  MII  transmit  timed out in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/imx6ull-network-MII-transmit-timed-out/m-p/1529138#M195712</link>
    <description>&lt;P&gt;最近重新做了测试底板，CPU提供PHY的时钟，暂时没有发生类似的现象。问题可能在信号质量上。&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 28 Sep 2022 02:38:03 GMT</pubDate>
    <dc:creator>dizhuyuan</dc:creator>
    <dc:date>2022-09-28T02:38:03Z</dc:date>
    <item>
      <title>imx6ull network  MII  transmit  timed out</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6ull-network-MII-transmit-timed-out/m-p/1501212#M193444</link>
      <description>&lt;P&gt;大家好：&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 板子信息：imx6ull&amp;nbsp; 双网口分别通过MII（COL、CRS已使用）和RMII接口接phy芯片 ksz8721，系统使用 linux4.1.15。&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 在使用imx6ull的MII接口的网口使用iperf3做压力测试时，内核会出现网络超时。打印信息如下：&lt;/P&gt;&lt;P&gt;# iperf3 -c 192.168.1.11 -t 1024&lt;/P&gt;&lt;P&gt;[ 5] 122.00-123.00 sec 0.00 Bytes 0.00 bits/sec 0 15.7 KBytes&lt;BR /&gt;[ 5] 123.00-124.00 sec 0.00 Bytes 0.00 bits/sec 0 15.7 KBytes&lt;BR /&gt;[ 5] 124.00-125.00 sec 0.00 Bytes 0.00 bits/sec 0 15.7 KBytes&lt;BR /&gt;[ 5] 125.00-126.00 sec 0.00 Bytes 0.00 bits/sec 0 15.7 KBytes&lt;BR /&gt;[ 5] 126.00-127.00 sec 0.00 Bytes 0.00 bits/sec 0 15.7 KBytes&lt;BR /&gt;[ 5] 127.00-128.00 sec 0.00 Bytes 0.00 bits/sec 0 15.7 KBytes&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [ 142.051928] ------------[ cut here ]------------&lt;BR /&gt;[ 142.056571] WARNING: CPU: 0 PID: 0 at net/sched/sch_generic.c:305 dev_watchdog+0x2dc/0x30c()&lt;BR /&gt;[ 142.065014] NETDEV WATCHDOG: eth0 (fec): transmit queue 0 timed out&lt;BR /&gt;[ 142.071284] Modules linked in:&lt;BR /&gt;[ 142.074363] CPU: 0 PID: 0 Comm: swapper Not tainted 4.1.15-rt18-svn46 #126&lt;BR /&gt;[ 142.081241] Hardware name: Freescale i.MX6 Ultralite (Device Tree)&lt;BR /&gt;[ 142.087424] Backtrace:&lt;BR /&gt;[ 142.089905] [&amp;lt;80013014&amp;gt;] (dump_backtrace) from [&amp;lt;80013234&amp;gt;] (show_stack+0x18/0x1c)&lt;BR /&gt;[ 142.097477] r7:804684d8 r6:00000131 r5:00000009 r4:00000000&lt;BR /&gt;[ 142.103205] [&amp;lt;8001321c&amp;gt;] (show_stack) from [&amp;lt;80545e68&amp;gt;] (dump_stack+0x24/0x28)&lt;BR /&gt;[ 142.110442] [&amp;lt;80545e44&amp;gt;] (dump_stack) from [&amp;lt;8002d2b0&amp;gt;] (warn_slowpath_common+0x88/0xb4)&lt;BR /&gt;[ 142.118546] [&amp;lt;8002d228&amp;gt;] (warn_slowpath_common) from [&amp;lt;8002d314&amp;gt;] (warn_slowpath_fmt+0x38/0x40)&lt;BR /&gt;[ 142.127266] r8:00000000 r7:80779f52 r6:80750610 r5:9a313a00 r4:806c8c60&lt;BR /&gt;[ 142.134045] [&amp;lt;8002d2e0&amp;gt;] (warn_slowpath_fmt) from [&amp;lt;804684d8&amp;gt;] (dev_watchdog+0x2dc/0x30c)&lt;BR /&gt;[ 142.142224] r3:9a315800 r2:806c8c60&lt;BR /&gt;[ 142.145825] r4:9a315800&lt;BR /&gt;[ 142.148383] [&amp;lt;804681fc&amp;gt;] (dev_watchdog) from [&amp;lt;8006af94&amp;gt;] (call_timer_fn+0x2c/0xa0)&lt;BR /&gt;[ 142.156040] r8:00200200 r7:80741de8 r6:804681fc r5:00000101 r4:9a315a2c&lt;BR /&gt;[ 142.162813] [&amp;lt;8006af68&amp;gt;] (call_timer_fn) from [&amp;lt;8006b4b4&amp;gt;] (run_timer_softirq+0x2b8/0x2d0)&lt;BR /&gt;[ 142.171078] r6:00000000 r5:807bea80 r4:9a315a2c&lt;BR /&gt;[ 142.175745] [&amp;lt;8006b1fc&amp;gt;] (run_timer_softirq) from [&amp;lt;8002ff7c&amp;gt;] (__do_softirq+0x114/0x238)&lt;BR /&gt;[ 142.183923] r10:00000101 r9:00000001 r8:00000004 r7:8077ce84 r6:80740000 r5:00000000&lt;BR /&gt;[ 142.191817] r4:8077ce88&lt;BR /&gt;[ 142.194373] [&amp;lt;8002fe68&amp;gt;] (__do_softirq) from [&amp;lt;80030544&amp;gt;] (irq_exit+0xb8/0x100)&lt;BR /&gt;[ 142.201682] r10:00000000 r9:00000021 r8:9a005000 r7:00000000 r6:00000000 r5:00000010&lt;BR /&gt;[ 142.209574] r4:80759938&lt;BR /&gt;[ 142.212132] [&amp;lt;8003048c&amp;gt;] (irq_exit) from [&amp;lt;8005c528&amp;gt;] (__handle_domain_irq+0x60/0xb0)&lt;BR /&gt;[ 142.219961] r5:00000010 r4:80759938&lt;BR /&gt;[ 142.223570] [&amp;lt;8005c4c8&amp;gt;] (__handle_domain_irq) from [&amp;lt;800093e8&amp;gt;] (gic_handle_irq+0x2c/0x5c)&lt;BR /&gt;[ 142.231920] r9:00000021 r8:0eabc2ee r7:f4a02000 r6:80741ed8 r5:80742354 r4:f4a0200c&lt;BR /&gt;[ 142.239734] [&amp;lt;800093bc&amp;gt;] (gic_handle_irq) from [&amp;lt;80013d80&amp;gt;] (__irq_svc+0x40/0x88)&lt;BR /&gt;[ 142.247221] Exception stack(0x80741ed8 to 0x80741f20)&lt;BR /&gt;[ 142.252278] 1ec0: 80741f28 fffffff7&lt;BR /&gt;[ 142.260464] 1ee0: 123e69f8 00000021 123e69f8 00000021 8076cbb8 00000002 0eabc2ee 00000021&lt;BR /&gt;[ 142.268648] 1f00: 00000000 80741f5c 00000017 80741f20 a6aaaaab 803d85e8 600f0013 ffffffff&lt;BR /&gt;[ 142.276828] r7:80741f0c r6:ffffffff r5:600f0013 r4:803d85e8&lt;BR /&gt;[ 142.282550] [&amp;lt;803d8560&amp;gt;] (cpuidle_enter_state) from [&amp;lt;803d8774&amp;gt;] (cpuidle_enter+0x1c/0x20)&lt;BR /&gt;[ 142.290814] r10:8076cbb0 r9:00000001 r8:807420d4 r7:8074c140 r6:8076cbb8 r5:807420d4&lt;BR /&gt;[ 142.298707] r4:80740000&lt;BR /&gt;[ 142.301268] [&amp;lt;803d8758&amp;gt;] (cpuidle_enter) from [&amp;lt;80053ee8&amp;gt;] (cpu_startup_entry+0x178/0x23c)&lt;BR /&gt;[ 142.309545] [&amp;lt;80053d70&amp;gt;] (cpu_startup_entry) from [&amp;lt;80542530&amp;gt;] (rest_init+0x8c/0x90)&lt;BR /&gt;[ 142.317291] r7:ffffffff&lt;BR /&gt;[ 142.319849] [&amp;lt;805424a4&amp;gt;] (rest_init) from [&amp;lt;80705ce8&amp;gt;] (start_kernel+0x3a4/0x3b0)&lt;BR /&gt;[ 142.327332] r5:8077c000 r4:8077c050&lt;BR /&gt;[ 142.330945] [&amp;lt;80705944&amp;gt;] (start_kernel) from [&amp;lt;80008078&amp;gt;] (0x80008078)&lt;BR /&gt;[ 142.337478] ---[ end trace 37c6b41dd7f14c77 ]---&lt;BR /&gt;[ 142.342113] fec 20b4000.ethernet eth0: TX ring dump&lt;BR /&gt;[ 142.346993] Nr SC addr len SKB&lt;BR /&gt;[ 142.351357] 0 0x1c00 0x9a482800 1460 9a4605f0&lt;BR /&gt;[ 142.356151] cdb_esc = 0x18000000&lt;BR /&gt;[ 142.359385] 1 0x1400 0x9a482000 54 (null)&lt;BR /&gt;[ 142.364179] cdb_esc = 0x58000000&lt;BR /&gt;[ 142.367414] 2 0x1c00 0x9a949e30 1460 9a460170&lt;BR /&gt;[ 142.372208] cdb_esc = 0x18000000&lt;BR /&gt;[ 142.375444] 3 0x1400 0x9a4c9000 54 (null)&lt;BR /&gt;[ 142.380238] cdb_esc = 0x58000000&lt;BR /&gt;[ 142.383473] 4 0x1c00 0x9a4ca800 1460 9a4602f0&lt;BR /&gt;[ 142.388267] cdb_esc = 0x18000000&lt;/P&gt;&lt;P&gt;1、经多次测试发现问题多出现在CPU主动发送的时候&lt;/P&gt;&lt;P&gt;2、在出现问题时使用示波器查看TXD波形，会有稀疏的波形产生&lt;/P&gt;&lt;P&gt;3、跟踪代码发现txq-&amp;gt;cur_tx也在移动（在fec_main.c中的fec_enet_tx_queue函数中）&lt;/P&gt;&lt;P&gt;4、查看了ENETx_EIR寄出中的（BABR、BABT、EBERR、LC、UN、PLR）相应的位（已配置EIMR），均未置1&lt;/P&gt;&lt;P&gt;5、查看了以下寄存器均未发现相关错误置位或计数不为0&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dizhuyuan_0-1659622414776.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/189125i267CD8C393D4D99B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dizhuyuan_0-1659622414776.png" alt="dizhuyuan_0-1659622414776.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dizhuyuan_1-1659622450666.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/189126iB7157F8B179630D0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dizhuyuan_1-1659622450666.png" alt="dizhuyuan_1-1659622450666.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;6、查看了Enhanced transmit buffer descriptor&amp;nbsp; &amp;nbsp; （ebdp-&amp;gt;cbd_esc）&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dizhuyuan_2-1659622566585.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/189127i7A96F726BD902616/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dizhuyuan_2-1659622566585.png" alt="dizhuyuan_2-1659622566585.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;其中EE、FE、置1、（正常情况下也有置位的），bit30也有被置1的情况，但TXE没有置位，其他错误位均未发现置位。&lt;/P&gt;&lt;P&gt;7、使用MII-Lite（COL、CRS去掉）问题依旧存在。&lt;/P&gt;&lt;P&gt;8、RMII接口正常&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2022 14:33:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6ull-network-MII-transmit-timed-out/m-p/1501212#M193444</guid>
      <dc:creator>dizhuyuan</dc:creator>
      <dc:date>2022-08-04T14:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: imx6ull network  MII  transmit  timed out</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6ull-network-MII-transmit-timed-out/m-p/1506035#M193842</link>
      <description>&lt;P&gt;L4.1.15 is quite old version of BSP. Could you try the newer version?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Linux BSP:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/design/software/embedded-software/i-mx-software/embedded-linux-for-i-mx-applications-processors:IMXLINUX" target="_blank"&gt;https://www.nxp.com/design/software/embedded-software/i-mx-software/embedded-linux-for-i-mx-applications-processors:IMXLINUX&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2022 07:18:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6ull-network-MII-transmit-timed-out/m-p/1506035#M193842</guid>
      <dc:creator>jimmychan</dc:creator>
      <dc:date>2022-08-15T07:18:37Z</dc:date>
    </item>
    <item>
      <title>Re: imx6ull network  MII  transmit  timed out</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6ull-network-MII-transmit-timed-out/m-p/1529138#M195712</link>
      <description>&lt;P&gt;最近重新做了测试底板，CPU提供PHY的时钟，暂时没有发生类似的现象。问题可能在信号质量上。&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2022 02:38:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6ull-network-MII-transmit-timed-out/m-p/1529138#M195712</guid>
      <dc:creator>dizhuyuan</dc:creator>
      <dc:date>2022-09-28T02:38:03Z</dc:date>
    </item>
  </channel>
</rss>

