<?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: ENETC not sending with CBS enabled in Layerscape</title>
    <link>https://community.nxp.com/t5/Layerscape/ENETC-not-sending-with-CBS-enabled/m-p/1730144#M13393</link>
    <description>&lt;P&gt;I know, for this reason I have only enabled the highest TC 7.&lt;BR /&gt;As I mentioned in my original post I took the code in&amp;nbsp;enetc_set_cbs as reference and configured the same registers.&lt;/P&gt;</description>
    <pubDate>Wed, 27 Sep 2023 05:27:05 GMT</pubDate>
    <dc:creator>_mkl</dc:creator>
    <dc:date>2023-09-27T05:27:05Z</dc:date>
    <item>
      <title>ENETC not sending with CBS enabled</title>
      <link>https://community.nxp.com/t5/Layerscape/ENETC-not-sending-with-CBS-enabled/m-p/1723698#M13311</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am extending a custom driver for enetc on&amp;nbsp;ls1028ardb to also support the TSN features of the board.&lt;/P&gt;&lt;P&gt;Now as soon as I enable the credit based shaper, no packets are transmitted. I have configured two TX BDR with prios 0 and 7 and set the PTC7CBSR0 and PTC7CBSR1 registers. But no matter which credit or bandwidth values I use, no data gets transmitted from either ring as soon as the CBSE bit is set. It is simply filling up until full.&lt;/P&gt;&lt;P&gt;I looked into the LSDK driver implementation and also only find these registers configured for CBS as described in the manual. Is there any hidden configuration I missed? Or are there more constrains to have a valid CBS configuration?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2023 07:32:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/ENETC-not-sending-with-CBS-enabled/m-p/1723698#M13311</guid>
      <dc:creator>_mkl</dc:creator>
      <dc:date>2023-09-15T07:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: ENETC not sending with CBS enabled</title>
      <link>https://community.nxp.com/t5/Layerscape/ENETC-not-sending-with-CBS-enabled/m-p/1727933#M13370</link>
      <description>&lt;P&gt;&lt;SPAN&gt;for ENETC port, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if want to enable CBS, should make sure the other TC (that are numerically higher than this TC) have been enabled.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if want to disable CBS, should make sure the other TC (that are numerically lower than this TC) have been disabled.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;you can refer to the function enetc_set_cbs in drivers/net/ethernet/freescale/enetc/enetc_tsn.c,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2023 09:34:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/ENETC-not-sending-with-CBS-enabled/m-p/1727933#M13370</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2023-09-22T09:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: ENETC not sending with CBS enabled</title>
      <link>https://community.nxp.com/t5/Layerscape/ENETC-not-sending-with-CBS-enabled/m-p/1730144#M13393</link>
      <description>&lt;P&gt;I know, for this reason I have only enabled the highest TC 7.&lt;BR /&gt;As I mentioned in my original post I took the code in&amp;nbsp;enetc_set_cbs as reference and configured the same registers.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 05:27:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/ENETC-not-sending-with-CBS-enabled/m-p/1730144#M13393</guid>
      <dc:creator>_mkl</dc:creator>
      <dc:date>2023-09-27T05:27:05Z</dc:date>
    </item>
    <item>
      <title>Re: ENETC not sending with CBS enabled</title>
      <link>https://community.nxp.com/t5/Layerscape/ENETC-not-sending-with-CBS-enabled/m-p/1731079#M13411</link>
      <description>&lt;P&gt;&lt;SPAN&gt;For CBS test, should send the frames using the corresponding queue, for example "pktgen -q ...".&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;you can refer to " 4.1.4.1.5.2 Using CBS Qdisc to setup Qav" of real-time-edge RM.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;can also use "ethtool -S enox" command to show the rx/tx counter, it can help to find why the packets are blocked.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Sep 2023 07:10:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/ENETC-not-sending-with-CBS-enabled/m-p/1731079#M13411</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2023-09-28T07:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: ENETC not sending with CBS enabled</title>
      <link>https://community.nxp.com/t5/Layerscape/ENETC-not-sending-with-CBS-enabled/m-p/1731157#M13415</link>
      <description>Ok, with the rx/tx counter I can see that the first frame is transmitted, but no further ones. Maybe the credits are not replenished or another missing configuration causes starvation?&lt;BR /&gt;I now tried with all 8 traffic classes with a 1:1 mapping from BDR priority to traffic class to VLAN PCP, but it still does not send any further packets from any of the queues.</description>
      <pubDate>Thu, 28 Sep 2023 08:58:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/ENETC-not-sending-with-CBS-enabled/m-p/1731157#M13415</guid>
      <dc:creator>_mkl</dc:creator>
      <dc:date>2023-09-28T08:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: ENETC not sending with CBS enabled</title>
      <link>https://community.nxp.com/t5/Layerscape/ENETC-not-sending-with-CBS-enabled/m-p/1731285#M13417</link>
      <description>&lt;P&gt;I have the same problem with other TSN features as well, e.g. Qbv scheduler. Once enabled, only a single frame is transmitted.&amp;nbsp;&lt;BR /&gt;I assume there is a dependant timing/frequency configuration I am missing? IEEE1588 clock is already initialized and running and the speed value is set to 1Gbps.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Sep 2023 12:51:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/ENETC-not-sending-with-CBS-enabled/m-p/1731285#M13417</guid>
      <dc:creator>_mkl</dc:creator>
      <dc:date>2023-09-28T12:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: ENETC not sending with CBS enabled</title>
      <link>https://community.nxp.com/t5/Layerscape/ENETC-not-sending-with-CBS-enabled/m-p/1735535#M13443</link>
      <description>&lt;P&gt;&lt;SPAN&gt;For the same environment and steps, LSDK driver is working well, right?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;do you use ptp4l to do the time synchronization?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;you can dump the related registers and compare them with that in LSDK driver.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2023 06:45:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/ENETC-not-sending-with-CBS-enabled/m-p/1735535#M13443</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2023-10-09T06:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: ENETC not sending with CBS enabled</title>
      <link>https://community.nxp.com/t5/Layerscape/ENETC-not-sending-with-CBS-enabled/m-p/1735551#M13444</link>
      <description>Yes, the LSDK driver works as expected, I have two ls1028a boards connected to each other. There ptp4l is able to synchronize both boards with gPTP.&lt;BR /&gt;In my system I do not have ptp synchronization yet, only the ptp clock counting the system runtime. Do I have to set up a proper PTP calibration before enabling TSN?&lt;BR /&gt;I already compared the registers, here are some differences I found but assume unrelated, please comment if there is something mandatory:&lt;BR /&gt;- LSDK uses two VSI with 4 queues each behind the PSI, I only use the 8 PSI queues directly.&lt;BR /&gt;- LSDK uses SI based VLAN extraction/insertion, I currently handle VLANs in software.</description>
      <pubDate>Mon, 09 Oct 2023 07:08:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/ENETC-not-sending-with-CBS-enabled/m-p/1735551#M13444</guid>
      <dc:creator>_mkl</dc:creator>
      <dc:date>2023-10-09T07:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: ENETC not sending with CBS enabled</title>
      <link>https://community.nxp.com/t5/Layerscape/ENETC-not-sending-with-CBS-enabled/m-p/1738136#M13470</link>
      <description>&lt;P&gt;&lt;SPAN&gt;PTP synchronization is needed, so you should enable it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;you can test your code in LSDK's environment, just replace ENET driver using your driver.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;it can exclude some interference factors.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2023 02:39:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/ENETC-not-sending-with-CBS-enabled/m-p/1738136#M13470</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2023-10-12T02:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: ENETC not sending with CBS enabled</title>
      <link>https://community.nxp.com/t5/Layerscape/ENETC-not-sending-with-CBS-enabled/m-p/1748646#M13563</link>
      <description>&lt;P&gt;For the curious reader:&lt;/P&gt;&lt;P&gt;I was finally able to get TSN on ENETC working. The difference was in the IEEE1588 Timer Module configuration.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;My configuration: TMR_CTRL[TCLK_PERIOD] = 16, TMR_ADD=0x28000000&lt;/LI&gt;&lt;LI&gt;The Linux config: TMR_CTRL[TCLK_PERIOD] = 5, TMR_ADD=0x80000000&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;After decreasing the CLK_PERIOD to 5 or 4 and recalculating TMR_ADD accordingly it is now functional.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2023 10:25:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/ENETC-not-sending-with-CBS-enabled/m-p/1748646#M13563</guid>
      <dc:creator>_mkl</dc:creator>
      <dc:date>2023-10-30T10:25:38Z</dc:date>
    </item>
  </channel>
</rss>

