<?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: LS1028A ENETC TX BDR does not send packet in Processor Expert Software</title>
    <link>https://community.nxp.com/t5/Processor-Expert-Software/LS1028A-ENETC-TX-BDR-does-not-send-packet/m-p/1545151#M5301</link>
    <description>&lt;P&gt;Now checking the RX path, I can see with my debugger that RB0DCR (Rx BDR 0 Drop Count Register) increments when I send packets from my PC with an in-house tool.&lt;/P&gt;&lt;P&gt;Device Ref. Manual says: "This is the receive BDR drop count register, it counts the number of frames dropped due to lack of receive buffer descriptors&amp;nbsp;available"&lt;/P&gt;&lt;P&gt;So ENETC doesn't see descriptors I provided. I have been thinking about a PCIe mapping or cache misconfiguration but lot of things are working well including this Drop Counter!&lt;/P&gt;&lt;P&gt;It should be the same issue on TX path.&lt;/P&gt;</description>
    <pubDate>Thu, 27 Oct 2022 15:56:01 GMT</pubDate>
    <dc:creator>mathuzalem</dc:creator>
    <dc:date>2022-10-27T15:56:01Z</dc:date>
    <item>
      <title>LS1028A ENETC TX BDR does not send packet</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/LS1028A-ENETC-TX-BDR-does-not-send-packet/m-p/1543332#M5297</link>
      <description>&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;I’m working on two boards LS1028ARDB and our custom LS1028A based board developing a bare-metal driver for ENETC. The issue is the same on both boards so lets focus on RDB.&lt;/P&gt;&lt;P&gt;TX BDR consumer seems not to be triggered. &amp;nbsp;I can see in debugger that producer index increments correctely but consumer doesn’t process any descriptor (consumer index = 0) till TX ring gets full.&lt;/P&gt;&lt;P&gt;Basically the driver is an adaptation of fsl_enetc.c from LSDK u-boot.&lt;/P&gt;&lt;P&gt;PCIe ECAM is working. I’m able to read/write external devices connected through MDIO on both boards. On RDB I can poll link up on 1G MAC0 interface by Reading PHY registers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BDR are statically allocated in RAM with&amp;nbsp;__attribute__((aligned(128)))&lt;/P&gt;&lt;P&gt;I tried several approaches with no success (cache enabled / cache disabled) with SICAR0 set accordingly but I don’t really trust SICAR0 value when cache is disabled.&lt;/P&gt;&lt;P&gt;&lt;U&gt;1/ With cache enabled I used SDK setup&amp;nbsp;&lt;/U&gt;:&lt;/P&gt;&lt;P&gt;/* write cache &lt;U&gt;cfg&lt;/U&gt;: snoop, no allocate, data &amp;amp; BD coherent */&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;#define&lt;/STRONG&gt;&amp;nbsp; ENETC_SICAR_WR_CFG 0x6767&lt;/P&gt;&lt;P&gt;/* read cache cfg: coherent copy, look up, don't alloc in cache */&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;#define&lt;/STRONG&gt;&amp;nbsp; ENETC_SICAR_RD_CFG 0x27270000&lt;/P&gt;&lt;P&gt;&lt;U&gt;2/ With cache disabled I tried two configs&amp;nbsp;:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;#ifdef&lt;/STRONG&gt; NOCACHE_DEV&lt;/P&gt;&lt;P&gt;/* Non-cacheable noncoherent/register space access */&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;#define&lt;/STRONG&gt;&amp;nbsp; ENETC_SICAR_WR_CFG 0x3030&lt;/P&gt;&lt;P&gt;/* Non-cacheable noncoherent/register space access */&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;#define&lt;/STRONG&gt;&amp;nbsp; ENETC_SICAR_RD_CFG 0x30300000&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;#elif&lt;/STRONG&gt; (defined(NONCOH_MEM))&lt;/P&gt;&lt;P&gt;/* Non-coherent write of cacheable memory, look up in downstream cache, allocate on miss */&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;#define&lt;/STRONG&gt;&amp;nbsp; ENETC_SICAR_WR_CFG 0x0303&lt;/P&gt;&lt;P&gt;/* Non-coherent copy of cacheable memory, do not look up or allocate in downstream cache*/&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;#define&lt;/STRONG&gt;&amp;nbsp; ENETC_SICAR_RD_CFG 0x03030000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any Idea to force TX ring to transmit packets at least for hardware testing would be welcome.&lt;/P&gt;&lt;P&gt;RX path doesn’t work better…&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2022 13:50:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/LS1028A-ENETC-TX-BDR-does-not-send-packet/m-p/1543332#M5297</guid>
      <dc:creator>mathuzalem</dc:creator>
      <dc:date>2022-10-28T13:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: LS1028A ENETC TX BDR does not send packet</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/LS1028A-ENETC-TX-BDR-does-not-send-packet/m-p/1545151#M5301</link>
      <description>&lt;P&gt;Now checking the RX path, I can see with my debugger that RB0DCR (Rx BDR 0 Drop Count Register) increments when I send packets from my PC with an in-house tool.&lt;/P&gt;&lt;P&gt;Device Ref. Manual says: "This is the receive BDR drop count register, it counts the number of frames dropped due to lack of receive buffer descriptors&amp;nbsp;available"&lt;/P&gt;&lt;P&gt;So ENETC doesn't see descriptors I provided. I have been thinking about a PCIe mapping or cache misconfiguration but lot of things are working well including this Drop Counter!&lt;/P&gt;&lt;P&gt;It should be the same issue on TX path.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2022 15:56:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/LS1028A-ENETC-TX-BDR-does-not-send-packet/m-p/1545151#M5301</guid>
      <dc:creator>mathuzalem</dc:creator>
      <dc:date>2022-10-27T15:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: LS1028A ENETC TX BDR does not send packet</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/LS1028A-ENETC-TX-BDR-does-not-send-packet/m-p/1550956#M5314</link>
      <description>&lt;P&gt;Gotcha: was wrong DDR parameters for LS1028ARDB +&amp;nbsp;&amp;nbsp;Apparently ENETC cannot access On-Chip RAM.&amp;nbsp;&lt;/P&gt;&lt;P&gt;1/ Any reason that prevent ENETC from accessing OCRAM?&lt;/P&gt;&lt;P&gt;2/ Can ENETC work with MMU &amp;amp; Cache disabled? (just for reference)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2022 09:19:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/LS1028A-ENETC-TX-BDR-does-not-send-packet/m-p/1550956#M5314</guid>
      <dc:creator>mathuzalem</dc:creator>
      <dc:date>2022-11-10T09:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: LS1028A ENETC TX BDR does not send packet</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/LS1028A-ENETC-TX-BDR-does-not-send-packet/m-p/1551693#M5317</link>
      <description>&lt;P&gt;&lt;SPAN&gt;For our LS1028ARDB board, is ENETC working well in uboot in your case?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if it's working well, I suggest you can dump ENETC related registers value, and compare them with yours.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2022 06:54:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/LS1028A-ENETC-TX-BDR-does-not-send-packet/m-p/1551693#M5317</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2022-11-10T06:54:06Z</dc:date>
    </item>
    <item>
      <title>Re: LS1028A ENETC TX BDR does not send packet</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/LS1028A-ENETC-TX-BDR-does-not-send-packet/m-p/1551984#M5318</link>
      <description>&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;1/ Yes, I built SDK images and run them from SD card. No problem so far on LS1028ARDB. My bare metal driver (fsl_enetc.c adaptation) works as well on that board.&amp;nbsp;&lt;/P&gt;&lt;P&gt;2/ I just managed the bare metal driver to work on my custom board but I had to change our RCW (SRDS_PRTCL_&lt;BR /&gt;S1_L0) to SGMII-1G-T. If I set SGMII-2.5G-T I cannot access internal PCS PHY (Reading ID regs return 0x0) and ENETC does not send packets.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2022 13:12:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/LS1028A-ENETC-TX-BDR-does-not-send-packet/m-p/1551984#M5318</guid>
      <dc:creator>mathuzalem</dc:creator>
      <dc:date>2022-11-10T13:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: LS1028A ENETC TX BDR does not send packet</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/LS1028A-ENETC-TX-BDR-does-not-send-packet/m-p/1559178#M5338</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Whether the bare metal driver works well on your custom board when setting RCW (SRDS_PRTCL_S1_L0) to SGMII-1G-T?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Refer to LS1028ARDBGSG.pdf(LS1028A Reference Design Board Getting Started Guide),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;eno0(ENETC port0) is 1GbE from ENETC SGMII MAC interface in default.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if want to use 2.5G speed, should config Serdes options in RCW, you can refer to "29.1.2 SerDes options" in LS1028ARM.pdf,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;should config SGMII 2.5G-T correctly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Have the PHY in the custom board been verified from hardward perspective? it's working well, right?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2022 07:24:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/LS1028A-ENETC-TX-BDR-does-not-send-packet/m-p/1559178#M5338</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2022-11-24T07:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: LS1028A ENETC TX BDR does not send packet</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/LS1028A-ENETC-TX-BDR-does-not-send-packet/m-p/1559994#M5340</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for your reply. indeed I modified our RCW accordingly. As a matter of fact Enetc Port0 is connected to an external Ethernet switch chip on our board and that chip seems to work. Will get back to&amp;nbsp;&lt;SPAN&gt;2.5G test later as we need to validate hardware for the moment, at least with SGMII-1G-T configuration.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Best Regards.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2022 13:36:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/LS1028A-ENETC-TX-BDR-does-not-send-packet/m-p/1559994#M5340</guid>
      <dc:creator>mathuzalem</dc:creator>
      <dc:date>2022-11-25T13:36:23Z</dc:date>
    </item>
  </channel>
</rss>

