<?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 NXP IMX8MP not receiving interrupts from ethernet phy in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/NXP-IMX8MP-not-receiving-interrupts-from-ethernet-phy/m-p/1815572#M220409</link>
    <description>&lt;P&gt;We are using a custom board having NXP IMX8MP, developed based on the NXP IMX8MP EVK board. We are using the latest release of the Windows 10 IoT BSP. We have two ethernet ports which uses&amp;nbsp;RTL8211FSI-VS-CG as the ethernet phy, the pin connections for both the ethernet phys with the SOC are same as the NXP IMX8MP EVK board. The first ethernet port supports ethernet QoS and it works correctly. The problem is with second ethernet port which doesn't support QoS, when we connect an ethernet cable to the ethernet port 2 and check the windows log, we observed that we are receiving the Tx interrupts, but we are not receiving the Rx interrupts. So, in the windows it shows as "connected no internet". So, what might be the problem and what are the possible solutions?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached the windows logs for your reference.&lt;/P&gt;</description>
    <pubDate>Mon, 26 Feb 2024 12:24:54 GMT</pubDate>
    <dc:creator>Ben10</dc:creator>
    <dc:date>2024-02-26T12:24:54Z</dc:date>
    <item>
      <title>NXP IMX8MP not receiving interrupts from ethernet phy</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/NXP-IMX8MP-not-receiving-interrupts-from-ethernet-phy/m-p/1815572#M220409</link>
      <description>&lt;P&gt;We are using a custom board having NXP IMX8MP, developed based on the NXP IMX8MP EVK board. We are using the latest release of the Windows 10 IoT BSP. We have two ethernet ports which uses&amp;nbsp;RTL8211FSI-VS-CG as the ethernet phy, the pin connections for both the ethernet phys with the SOC are same as the NXP IMX8MP EVK board. The first ethernet port supports ethernet QoS and it works correctly. The problem is with second ethernet port which doesn't support QoS, when we connect an ethernet cable to the ethernet port 2 and check the windows log, we observed that we are receiving the Tx interrupts, but we are not receiving the Rx interrupts. So, in the windows it shows as "connected no internet". So, what might be the problem and what are the possible solutions?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached the windows logs for your reference.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2024 12:24:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/NXP-IMX8MP-not-receiving-interrupts-from-ethernet-phy/m-p/1815572#M220409</guid>
      <dc:creator>Ben10</dc:creator>
      <dc:date>2024-02-26T12:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: NXP IMX8MP not receiving interrupts from ethernet phy</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/NXP-IMX8MP-not-receiving-interrupts-from-ethernet-phy/m-p/1815821#M220437</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/216766"&gt;@Ben10&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I hope you're doing well!&lt;/P&gt;
&lt;P&gt;Can you please provide more details about the network environment you're testing both ethernet ports functionality? Are you using a testing tool such as iperf3?&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Hector.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2024 17:18:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/NXP-IMX8MP-not-receiving-interrupts-from-ethernet-phy/m-p/1815821#M220437</guid>
      <dc:creator>hector_delgado</dc:creator>
      <dc:date>2024-02-26T17:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: NXP IMX8MP not receiving interrupts from ethernet phy</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/NXP-IMX8MP-not-receiving-interrupts-from-ethernet-phy/m-p/1816330#M220465</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/207913"&gt;@hector_delgado&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the reply. We are just doing a ping test as iperf3 doesn't run on windows 10 IoT. The problem we face is only with the second ethernet port. The difference between our board and the NXP IMX8MP EVK board, is our board uses&amp;nbsp;RTL8211FSI-VS-CG as the ethernet phy while the NXP IMX8MP EVK board uses&amp;nbsp;RTL8211FDI-CG as the ethernet phy. The pin connection&amp;nbsp;between the ethernet phy and the SOC is the same for both the boards. When I connect an ethernet cable to the ethernet port 2 in our board, it shows as "connected no internet".&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ben10_0-1709025538300.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/265272i062225C5250F7C49/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ben10_0-1709025538300.png" alt="Ben10_0-1709025538300.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ben10_1-1709025545321.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/265273i1342F6D15F19B868/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ben10_1-1709025545321.png" alt="Ben10_1-1709025545321.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 09:20:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/NXP-IMX8MP-not-receiving-interrupts-from-ethernet-phy/m-p/1816330#M220465</guid>
      <dc:creator>Ben10</dc:creator>
      <dc:date>2024-02-27T09:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: NXP IMX8MP not receiving interrupts from ethernet phy</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/NXP-IMX8MP-not-receiving-interrupts-from-ethernet-phy/m-p/1835621#M221814</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/216766"&gt;@Ben10&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;DIV&gt;I hope you're doing well and sorry for the late response.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;P&gt;it could be connected with RX/TX delay setting for ethernet PHY.&lt;/P&gt;
&lt;P&gt;QoS Windows driver sets those delays in function&amp;nbsp;MII_Rtl8211fInit in imx-windows-iot\driver\net\ndis\imxqosmini\mp_enet_phy.c.&lt;/P&gt;
&lt;PRE class="lia-code-sample  language-c"&gt;&lt;CODE&gt;NTSTATUS MII_Rtl8211fInit(PMP_ADAPTER pAdapter)
{
    NTSTATUS Status = STATUS_SUCCESS;
    UINT16 Val;
    UINT8 PhyAddr = pAdapter-&amp;gt;MiiCfg.PhyAddr;

    // Select Page 0x0d08*/
    MII_Write(pAdapter, PhyAddr, 0x1F, 0x0d08);

    // Enable TX-delay for rgmii-id and rgmii-txid
    Val = MII_Read(pAdapter, PhyAddr, 0x11);
    if (pAdapter-&amp;gt;MiiCfg.MiiInterfaceType == RGMII) {
        // RGMII config
        Val |= 0x0100;
    } else {
        Val &amp;amp;= ~0x0100;
    }
    MII_Write(pAdapter, PhyAddr, 0x11, Val);

    // Enable RX-delay for rgmii-id and rgmii-rxid
    Val = MII_Read(pAdapter, PhyAddr, 0x15);
    if (pAdapter-&amp;gt;MiiCfg.MiiInterfaceType == RGMII) {
        // RGMII config
        Val |= 0x0008;
    } else {
        Val &amp;amp;= ~0x0008;
    }
    MII_Write(pAdapter, PhyAddr, 0x15, Val);

    // Restore to default page 0
    MII_Write(pAdapter, PhyAddr, 0x1F, 0x0000);

    // Set green LED for Link, yellow LED for Active
    MII_Write(pAdapter, PhyAddr, 0x1F, 0x0D04);
    MII_Write(pAdapter, PhyAddr, 0x10, 0x617F);
    MII_Write(pAdapter, PhyAddr, 0x1F, 0x0000);

    return Status;
}&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But the other driver for ENET is using setting in ACPI table, which is for 8MP empty and thus it relays on PHY setting done in U-boot. ACPI table for i.MX93 have this setting filled and it can be used for 8MP:&lt;/P&gt;
&lt;P&gt;mu_platform_nxp/NXP/MX93_11X11_EVK/AcpiTables/Dsdt-Enet.asl&lt;/P&gt;
&lt;PRE class="lia-code-sample  language-c"&gt;&lt;CODE&gt;Package (2) {"ConfigCmds", Package () {
                            MII_REG_WR (0x1F, 0x0d08),         // Select page
                            MII_REG_RMW(0x11, 0x0000, 0x0100), // Enable Tx-delay
                            MII_REG_RMW(0x15, 0x0000, 0x0008), // Enable Rx-delay
                            MII_REG_WR (0x1F, 0x0d04),         // Select page
                            MII_REG_WR (0x10, 0x617F),         // Set green LED for Link, yellow LED for Active
                            MII_REG_WR (0x1F, 0x0000),         // Set default page
                            ENET_MII_END}}
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;It can be put in&amp;nbsp;mu_platform_nxp/NXP/MX8M_PLUS_EVK/AcpiTables/Dsdt-Enet.asl which it by default empty:&lt;/P&gt;
&lt;PRE class="lia-code-sample  language-c"&gt;&lt;CODE&gt;Package (2) {"ConfigCmds", Package () {
                            //  Enable GTX_CLK delay
                            //MII_WRITE_COMMAND(0x11, 0x0100),
                            //MII_WRITE_COMMAND(0x15, 0x0008),
                            ENET_MII_END}}							
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is one difference, QoS driver have one line more there which is not in ACPI setting in i.MX93:&lt;/P&gt;
&lt;PRE class="lia-code-sample  language-c"&gt;&lt;CODE&gt;    // Restore to default page 0
    MII_Write(pAdapter, PhyAddr, 0x1F, 0x0000);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;To have it same like QoS driver, I would add it there too:&lt;/P&gt;
&lt;PRE class="lia-code-sample  language-c"&gt;&lt;CODE&gt;Package (2) {"ConfigCmds", Package () {
                            MII_REG_WR (0x1F, 0x0d08),         // Select page
                            MII_REG_RMW(0x11, 0x0000, 0x0100), // Enable Tx-delay
                            MII_REG_RMW(0x15, 0x0000, 0x0008), // Enable Rx-delay
                            MII_REG_WR (0x1F, 0x0000),         // Set default page
                            MII_REG_WR (0x1F, 0x0d04),         // Select page
                            MII_REG_WR (0x10, 0x617F),         // Set green LED for Link, yellow LED for Active
                            MII_REG_WR (0x1F, 0x0000),         // Set default page
                            ENET_MII_END}}	&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Hector.&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 26 Mar 2024 17:27:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/NXP-IMX8MP-not-receiving-interrupts-from-ethernet-phy/m-p/1835621#M221814</guid>
      <dc:creator>hector_delgado</dc:creator>
      <dc:date>2024-03-26T17:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: NXP IMX8MP not receiving interrupts from ethernet phy</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/NXP-IMX8MP-not-receiving-interrupts-from-ethernet-phy/m-p/1835961#M221831</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/207913"&gt;@hector_delgado&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have already done what you have mentioned above, and the issue was fixed, but thanks anyways for the help and support.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2024 05:16:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/NXP-IMX8MP-not-receiving-interrupts-from-ethernet-phy/m-p/1835961#M221831</guid>
      <dc:creator>Ben10</dc:creator>
      <dc:date>2024-03-27T05:16:11Z</dc:date>
    </item>
  </channel>
</rss>

