<?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: i.MX8dxl eqos ethernet fixed-link: Failed to reset the dma in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8dxl-eqos-ethernet-fixed-link-Failed-to-reset-the-dma/m-p/1533363#M196042</link>
    <description>&lt;P&gt;With assistance from NXP we were able to work out the issues from my post above - and do now have rx&amp;amp;tx operating properly between the switch and the SoC eqos.&lt;/P&gt;&lt;P&gt;Essentially the eqos controller requires the rx clock to operate dma.&lt;BR /&gt;If anyone else faces this issue - verify that the connected phy or switch provides a clock to the SoC ENET1_RGMII_RXC input.&lt;/P&gt;</description>
    <pubDate>Thu, 06 Oct 2022 12:06:51 GMT</pubDate>
    <dc:creator>catwich</dc:creator>
    <dc:date>2022-10-06T12:06:51Z</dc:date>
    <item>
      <title>i.MX8dxl eqos ethernet fixed-link: Failed to reset the dma</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8dxl-eqos-ethernet-fixed-link-Failed-to-reset-the-dma/m-p/1512697#M194361</link>
      <description>&lt;P&gt;\o/&lt;/P&gt;&lt;P&gt;We are trying to enable the second network port (ENET1) on a custom i.MX8dxl board, with &lt;SPAN&gt;lf-5.15.5-1.0.0&lt;/SPAN&gt;.&lt;BR /&gt;However we encounter somewhat obscure error messages on the console when trying to bring up a link:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;root@2a473698774a:~# ip link set dev eth0 up
[  166.341902] imx-dwmac 5b050000.ethernet eth0: Register MEM_TYPE_PAGE_POOL RxQ-0
[  167.355265] imx-dwmac 5b050000.ethernet: Failed to reset the dma
[  167.361354] imx-dwmac 5b050000.ethernet eth0: stmmac_hw_setup: DMA engine initialization failed
[  167.370371] imx-dwmac 5b050000.ethernet eth0: stmmac_open: Hw setup failed
RTNETLINK answers: Connection timed out&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;I noticed many questions about similar errors on the i.MX8M Plus - but they are (probably) not applicable in our case because we want to connect directly to an SJA1110a switch using rgmii without a dedicated phy in between.&lt;BR /&gt;&lt;BR /&gt;Our board shares a lot with the EVK, e.g. we can boot the imx8dxl-evk.dtb and try enabling the eqos interface (after replacing the phy with fixed-link in dts) - and still trigger the same error.&lt;BR /&gt;So for reference below are the relevant parts of our device-tree, which includes imx8dxl.dtsi at its base:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;amp;iomuxc {
        pinctrl_eqos: eqosgrp {
            fsl,pins = &amp;lt;
                /* MDIO to Switch */
                IMX8DXL_ENET0_MDC_CONN_EQOS_MDC             0x06000020
                IMX8DXL_ENET0_MDIO_CONN_EQOS_MDIO           0x06000020
                /* RGMII to Switch */
                IMX8DXL_ENET1_RGMII_TX_CTL_CONN_EQOS_RGMII_TX_CTL   0x06000020
                IMX8DXL_ENET1_RGMII_TXC_CONN_EQOS_RGMII_TXC     0x06000020
                IMX8DXL_ENET1_RGMII_TXD0_CONN_EQOS_RGMII_TXD0       0x06000020
                IMX8DXL_ENET1_RGMII_TXD1_CONN_EQOS_RGMII_TXD1       0x06000020
                IMX8DXL_ENET1_RGMII_TXD2_CONN_EQOS_RGMII_TXD2       0x06000020
                IMX8DXL_ENET1_RGMII_TXD3_CONN_EQOS_RGMII_TXD3       0x06000020
                IMX8DXL_ENET1_RGMII_RXC_CONN_EQOS_RGMII_RXC     0x06000020
                IMX8DXL_ENET1_RGMII_RX_CTL_CONN_EQOS_RGMII_RX_CTL   0x06000020
                IMX8DXL_ENET1_RGMII_RXD0_CONN_EQOS_RGMII_RXD0       0x06000020
                IMX8DXL_ENET1_RGMII_RXD1_CONN_EQOS_RGMII_RXD1       0x06000020
                IMX8DXL_ENET1_RGMII_RXD2_CONN_EQOS_RGMII_RXD2       0x06000020
                IMX8DXL_ENET1_RGMII_RXD3_CONN_EQOS_RGMII_RXD3       0x06000020
            &amp;gt;;
        };
};

&amp;amp;eqos {
    pinctrl-names = "default";
    pinctrl-0 = &amp;lt;&amp;amp;pinctrl_eqos&amp;gt;;
    phy-mode = "rgmii-id";
    status = "okay";

    fixed-link {
        speed = &amp;lt;1000&amp;gt;;
        full-duplex;
    };
};&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Also please find the full boot log attached ...&lt;/P&gt;</description>
      <pubDate>Sat, 27 Aug 2022 14:12:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX8dxl-eqos-ethernet-fixed-link-Failed-to-reset-the-dma/m-p/1512697#M194361</guid>
      <dc:creator>catwich</dc:creator>
      <dc:date>2022-08-27T14:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX8dxl eqos ethernet fixed-link: Failed to reset the dma</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8dxl-eqos-ethernet-fixed-link-Failed-to-reset-the-dma/m-p/1533363#M196042</link>
      <description>&lt;P&gt;With assistance from NXP we were able to work out the issues from my post above - and do now have rx&amp;amp;tx operating properly between the switch and the SoC eqos.&lt;/P&gt;&lt;P&gt;Essentially the eqos controller requires the rx clock to operate dma.&lt;BR /&gt;If anyone else faces this issue - verify that the connected phy or switch provides a clock to the SoC ENET1_RGMII_RXC input.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2022 12:06:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX8dxl-eqos-ethernet-fixed-link-Failed-to-reset-the-dma/m-p/1533363#M196042</guid>
      <dc:creator>catwich</dc:creator>
      <dc:date>2022-10-06T12:06:51Z</dc:date>
    </item>
  </channel>
</rss>

