<?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: P2040: strange behavior of network interface under linux</title>
    <link>https://community.nxp.com/t5/P-Series/P2040-strange-behavior-of-network-interface-under-linux/m-p/720093#M4318</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please check that the PHYs are correctly defined in the DTS being used.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 15 Apr 2018 06:05:42 GMT</pubDate>
    <dc:creator>ufedor</dc:creator>
    <dc:date>2018-04-15T06:05:42Z</dc:date>
    <item>
      <title>P2040: strange behavior of network interface under linux</title>
      <link>https://community.nxp.com/t5/P-Series/P2040-strange-behavior-of-network-interface-under-linux/m-p/720092#M4317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;our custom P2040 board&amp;nbsp; has&amp;nbsp;five 1G Marvell PHYs (1x88E1510 + 1x88E1340 Quad phy ) connected to the same MDIO bus at addresses 0, 4, 5, 6, 7 , respectively.&lt;/P&gt;&lt;P&gt;U-boot 2016.01 and linux kernel 4.1&amp;nbsp;based on QorIQ SDK 2.0 are used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All above network interfaces work as expected in u-boot.&amp;nbsp;&amp;nbsp;Under linux, we observe a weird behavior of one of the network interfaces connected to a quad PHY.&lt;/P&gt;&lt;P&gt;Under llinux, the eth2 (PHY address 5) always shows the link connected and "doesn't auto-negotiate", i.e. the only&lt;/P&gt;&lt;P&gt;way to make it work under linux is to manually turn its auto-negotiation off&amp;nbsp;+ set proper speed and duplex mode using&lt;/P&gt;&lt;P&gt;the standard ethtool command. At the same time, the "peer" connected to this interface auto-negotiates correctly regardless of that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above suggests that most(or all) related data structures are OK, and this is not a device tree problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only discrepancy observed so far is that the standard PHY identification registers #2 and #3&amp;nbsp;are always read as zeros for this interface/phyad:5. All other registers read (and written ?) OK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; root:/mnt/ctrl# ./phytool read eth1/4/2&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 0x0141&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; root:/mnt/ctrl# ./phytool read eth1/4/3&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 0x0dc0&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; root:/mnt/ctrl# ./phytool read eth2/5/2&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 0000&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; root:/mnt/ctrl# ./phytool read eth2/5/3&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 0000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does this situation look familiar to anyone? What debugging technique should be used in our case?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2018 15:50:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/P2040-strange-behavior-of-network-interface-under-linux/m-p/720092#M4317</guid>
      <dc:creator>andy_m</dc:creator>
      <dc:date>2018-04-10T15:50:01Z</dc:date>
    </item>
    <item>
      <title>Re: P2040: strange behavior of network interface under linux</title>
      <link>https://community.nxp.com/t5/P-Series/P2040-strange-behavior-of-network-interface-under-linux/m-p/720093#M4318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please check that the PHYs are correctly defined in the DTS being used.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Apr 2018 06:05:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/P2040-strange-behavior-of-network-interface-under-linux/m-p/720093#M4318</guid>
      <dc:creator>ufedor</dc:creator>
      <dc:date>2018-04-15T06:05:42Z</dc:date>
    </item>
  </channel>
</rss>

