<?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>LayerscapeのトピックRe: ls1046a rdb run dpdk l3fwd problem</title>
    <link>https://community.nxp.com/t5/Layerscape/ls1046a-rdb-run-dpdk-l3fwd-problem/m-p/891866#M4139</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;dpaa_eth_queue_portal_rx(): Failure in affining portal -1&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;ioctl(DPAA_IOCTL_PORTAL_MAP): No such device&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The error is related to in-sufficient number of IO Portals for DPDK.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer to the LSDK documentation chapter for DPDK. (9.2 Data Plane Development Kit (DPDK))&lt;/P&gt;&lt;P&gt;There are some pre-requirements for running DPDK&lt;/P&gt;&lt;P&gt;1. you should be adding following to your bootargs -&amp;nbsp;&amp;nbsp;default_hugepagesz=2MB hugepagesz=2MB hugepages=448 isolcpus=1-3 bportals=s0&amp;nbsp;qportals=s0 iommu.passthrough=1&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; - hugepages for dpdk usages&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; - isolcpus - so kernel does not schedule any task for these cores - dedicated for user-space&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; - limiting the portals in kernel so that userspace dpdk can use it.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 31 May 2019 09:49:30 GMT</pubDate>
    <dc:creator>hemantagrawal</dc:creator>
    <dc:date>2019-05-31T09:49:30Z</dc:date>
    <item>
      <title>ls1046a rdb run dpdk l3fwd problem</title>
      <link>https://community.nxp.com/t5/Layerscape/ls1046a-rdb-run-dpdk-l3fwd-problem/m-p/891862#M4135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try to run lsdk 18.12 dpdk&amp;nbsp; l3fwd example on ls1046ardb.&lt;/P&gt;&lt;P&gt;I followed &lt;STRONG&gt;9.2.4.4 DPDK example applications in&amp;nbsp;LSDK-KC-REV18.12.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;l3fwd -c 0x6 -n 1 -- -p 0x3 --config="(0,0,1),(1,0,2)"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It worked!.&lt;/P&gt;&lt;P&gt;But I tried to run&amp;nbsp;4 core - 2 Port, 2 queues per port:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;STRONG&gt;l3fwd -c 0xF -n 1 -- -p 0x3 -P --config="(0,0,0),(0,1,1),(1,0,2),(1,1,3)"&lt;BR /&gt;EAL: Detected 4 lcore(s)&lt;BR /&gt;EAL: DPAA Bus Detected&lt;BR /&gt;EAL: Probing VFIO support...&lt;BR /&gt;EAL: VFIO support initialized&lt;BR /&gt;PMD: net: dpaa: fm1-mac3: 00:04:9f:05:5b:76&lt;BR /&gt;PMD: net: dpaa: fm1-mac4: 00:04:9f:05:5b:77&lt;BR /&gt;PMD: net: dpaa: fm1-mac5: 00:04:9f:05:5b:72&lt;BR /&gt;PMD: net: dpaa: fm1-mac6: 00:04:9f:05:5b:73&lt;BR /&gt;PMD: net: dpaa: fm1-mac9: 00:04:9f:05:5b:75&lt;BR /&gt;PMD: net: dpaa: fm1-mac10: 00:04:9f:05:5b:74&lt;BR /&gt;PMD: dpaa_sec-6 cryptodev init&lt;BR /&gt;PMD: dpaa_sec-7 cryptodev init&lt;BR /&gt;PMD: dpaa_sec-8 cryptodev init&lt;BR /&gt;PMD: dpaa_sec-9 cryptodev init&lt;BR /&gt;L3FWD: Promiscuous mode selected&lt;BR /&gt;L3FWD: LPM or EM none selected, default LPM on&lt;BR /&gt;Initializing port 0 ... Creating queues: nb_rxq=2 nb_txq=4... EAL: Error - exiting with code: 1&lt;BR /&gt; Cause: Cannot configure device: err=-22, port=0&lt;BR /&gt;[ 90.652132] USDPAA process leaking 16422 FQIDs&lt;BR /&gt;[ 91.096213] USDPAA process leaking 6 CGRIDs&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Does any one know how to fix it?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Regards,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Yi-Lin&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 May 2019 10:27:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/ls1046a-rdb-run-dpdk-l3fwd-problem/m-p/891862#M4135</guid>
      <dc:creator>yi-linhsieh</dc:creator>
      <dc:date>2019-05-13T10:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: ls1046a rdb run dpdk l3fwd problem</title>
      <link>https://community.nxp.com/t5/Layerscape/ls1046a-rdb-run-dpdk-l3fwd-problem/m-p/891863#M4136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had try modify RX_QUEUES setting:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;export DPAA_NUM_RX_QUEUES=2&lt;BR /&gt;root@localhost:/usr/local/dpdk/dpaa# export DPAA_FMC_MODE=1&lt;BR /&gt;&lt;A href="mailto:root@localhost:/usr/local/dpdk/dpaa"&gt;root@localhost:/usr/local/dpdk/dpaa#&lt;/A&gt;&amp;nbsp;fmc -c&amp;nbsp; usdpaa_config_ls1046.xml -p usdpaa_policy_hash_ipv4_2queue.xml -a&lt;BR /&gt;root@localhost:/usr/local/dpdk/dpaa# cd&lt;BR /&gt;root@localhost:~#&lt;BR /&gt;root@localhost:~#&lt;BR /&gt;root@localhost:~# mount -t hugetlbfs none /mnt/hugepages&lt;BR /&gt;_hugepages&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ages@localhost:~# echo 1024 &amp;gt; /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepa&lt;BR /&gt;root@localhost:~#&lt;BR /&gt;root@localhost:~#&lt;BR /&gt;root@localhost:~#&lt;BR /&gt;2),(1,1,3)"ost:~# l3fwd -c 0xF -n 1 -- -p 0x3 -P --config="(0,0,0),(0,1,1),(1,0,2&lt;BR /&gt;EAL: Detected 4 lcore(s)&lt;BR /&gt;EAL: DPAA Bus Detected&lt;BR /&gt;EAL: Probing VFIO support...&lt;BR /&gt;EAL: VFIO support initialized&lt;BR /&gt;PMD: net: dpaa: fm1-mac3: 00:04:9f:05:5b:76&lt;BR /&gt;PMD: net: dpaa: fm1-mac4: 00:04:9f:05:5b:77&lt;BR /&gt;PMD: net: dpaa: fm1-mac5: 00:04:9f:05:5b:72&lt;BR /&gt;PMD: net: dpaa: fm1-mac6: 00:04:9f:05:5b:73&lt;BR /&gt;PMD: net: dpaa: fm1-mac9: 00:04:9f:05:5b:75&lt;BR /&gt;PMD: net: dpaa: fm1-mac10: 00:04:9f:05:5b:74&lt;BR /&gt;PMD: dpaa_sec-6 cryptodev init&lt;BR /&gt;PMD: dpaa_sec-7 cryptodev init&lt;BR /&gt;PMD: dpaa_sec-8 cryptodev init&lt;BR /&gt;PMD: dpaa_sec-9 cryptodev init&lt;BR /&gt;L3FWD: Promiscuous mode selected&lt;BR /&gt;L3FWD: LPM or EM none selected, default LPM on&lt;BR /&gt;Initializing port 0 ... Creating queues: nb_rxq=2 nb_txq=4... Address:00:04:9F:05:5B:76, Destination:02:00:00:00:00:00, Allocated mbuf pool on socket 0&lt;BR /&gt;LPM: Adding route 0x01010100 / 24 (0)&lt;BR /&gt;LPM: Adding route 0x02010100 / 24 (1)&lt;BR /&gt;LPM: Adding route IPV6 / 48 (0)&lt;BR /&gt;LPM: Adding route IPV6 / 48 (1)&lt;BR /&gt;txq=0,0,0 txq=1,1,0 txq=2,2,0 txq=3,3,0&lt;BR /&gt;Initializing port 1 ... Creating queues: nb_rxq=2 nb_txq=4... Address:00:04:9F:05:5B:77, Destination:02:00:00:00:00:01, Allocated mbuf pool on socket 0&lt;BR /&gt;txq=0,0,0 txq=1,1,0 txq=2,2,0 txq=3,3,0&lt;/P&gt;&lt;P&gt;Skipping disabled port 2&lt;/P&gt;&lt;P&gt;Skipping disabled port 3&lt;/P&gt;&lt;P&gt;Skipping disabled port 4&lt;/P&gt;&lt;P&gt;Skipping disabled port 5&lt;/P&gt;&lt;P&gt;Initializing rx queues on lcore 0 ... rxq=0,0,0&lt;BR /&gt;Initializing rx queues on lcore 1 ... rxq=0,1,0&lt;BR /&gt;Initializing rx queues on lcore 2 ... rxq=1,0,0&lt;BR /&gt;Initializing rx queues on lcore 3 ... rxq=1,1,0&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Checking link statusdone&lt;BR /&gt;Port0 Link Up. Speed 1000 Mbps -full-duplex&lt;BR /&gt;Port1 Link Up. Speed 1000 Mbps -full-duplex&lt;BR /&gt;L3FWD: entering main loop on lcore 1&lt;BR /&gt;L3FWD: -- lcoreid=1 portid=0 rxqueueid=1&lt;BR /&gt;L3FWD: entering main loop on lcore 3&lt;BR /&gt;L3FWD: -- lcoreid=3 portid=1 rxqueueid=1&lt;BR /&gt;L3FWD: entering main loop on lcore 0&lt;BR /&gt;L3FWD: -- lcoreid=0 portid=0 rxqueueid=0&lt;BR /&gt;L3FWD: entering main loop on lcore 2&lt;BR /&gt;L3FWD: -- lcoreid=2 portid=1 rxqueueid=0&lt;BR /&gt;ioctl(DPAA_IOCTL_PORTAL_MAP): No such device&lt;BR /&gt;l3fwd: process_portal_map(): Unknown error -1&lt;BR /&gt;dpaa: qman_thread_init failed on core 2 (lcore=2) with ret: -1&lt;BR /&gt;dpaa: portal initialization failure&lt;BR /&gt;dpaa_eth_queue_portal_rx(): Failure in affining portal -1&lt;BR /&gt;ioctl(DPAA_IOCTL_PORTAL_MAP): No such device&lt;BR /&gt;l3fwd: process_portal_map(): Unknown error -1&lt;BR /&gt;dpaa: qman_thread_init failed on core 2 (lcore=2) with ret: -1&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 May 2019 10:40:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/ls1046a-rdb-run-dpdk-l3fwd-problem/m-p/891863#M4136</guid>
      <dc:creator>yi-linhsieh</dc:creator>
      <dc:date>2019-05-13T10:40:49Z</dc:date>
    </item>
    <item>
      <title>Re: ls1046a rdb run dpdk l3fwd problem</title>
      <link>https://community.nxp.com/t5/Layerscape/ls1046a-rdb-run-dpdk-l3fwd-problem/m-p/891864#M4137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is your issue resolved?&lt;/P&gt;&lt;P&gt;Can you share the output for following:&lt;/P&gt;&lt;P&gt;#cat /proc/cmdline&lt;/P&gt;&lt;P&gt;#&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 May 2019 03:53:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/ls1046a-rdb-run-dpdk-l3fwd-problem/m-p/891864#M4137</guid>
      <dc:creator>hemantagrawal</dc:creator>
      <dc:date>2019-05-28T03:53:16Z</dc:date>
    </item>
    <item>
      <title>Re: ls1046a rdb run dpdk l3fwd problem</title>
      <link>https://community.nxp.com/t5/Layerscape/ls1046a-rdb-run-dpdk-l3fwd-problem/m-p/891865#M4138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had returned the RDB.&lt;/P&gt;&lt;P&gt;I run you command with&amp;nbsp; our ls1046a board:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;root@localhost:~# cat /proc/cmdline&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;console=ttyS0,115200 earlycon=uart8250,mmio,0x21c0500 root=PARTUUID=c46fcc0e-03 rw rootwait&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 May 2019 07:03:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/ls1046a-rdb-run-dpdk-l3fwd-problem/m-p/891865#M4138</guid>
      <dc:creator>yi-linhsieh</dc:creator>
      <dc:date>2019-05-28T07:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: ls1046a rdb run dpdk l3fwd problem</title>
      <link>https://community.nxp.com/t5/Layerscape/ls1046a-rdb-run-dpdk-l3fwd-problem/m-p/891866#M4139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;dpaa_eth_queue_portal_rx(): Failure in affining portal -1&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;ioctl(DPAA_IOCTL_PORTAL_MAP): No such device&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The error is related to in-sufficient number of IO Portals for DPDK.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer to the LSDK documentation chapter for DPDK. (9.2 Data Plane Development Kit (DPDK))&lt;/P&gt;&lt;P&gt;There are some pre-requirements for running DPDK&lt;/P&gt;&lt;P&gt;1. you should be adding following to your bootargs -&amp;nbsp;&amp;nbsp;default_hugepagesz=2MB hugepagesz=2MB hugepages=448 isolcpus=1-3 bportals=s0&amp;nbsp;qportals=s0 iommu.passthrough=1&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; - hugepages for dpdk usages&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; - isolcpus - so kernel does not schedule any task for these cores - dedicated for user-space&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; - limiting the portals in kernel so that userspace dpdk can use it.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 May 2019 09:49:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/ls1046a-rdb-run-dpdk-l3fwd-problem/m-p/891866#M4139</guid>
      <dc:creator>hemantagrawal</dc:creator>
      <dc:date>2019-05-31T09:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: ls1046a rdb run dpdk l3fwd problem</title>
      <link>https://community.nxp.com/t5/Layerscape/ls1046a-rdb-run-dpdk-l3fwd-problem/m-p/891867#M4140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hemant,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;I did add the parameter at bootargs. But it seems not show in /proc/cmdline.&lt;/P&gt;&lt;P&gt;=&amp;gt; print bootargs&lt;BR /&gt;bootargs=console=ttyS0,115200 root=/dev/ram0 earlycon=uart8250,mmio,0x21c0500 mtdparts=1550000.quadspi:1m(rcw),15m(u-boot),48m(kernel.itb);7e800000.flash:16m(nand_uboot),48m(nand_kernel),448m(nand_free) default_hugepagesz=2MB hugepagesz=2MB hugepages=448 isolcpus=1-3 bportals=s0 qportals=s0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;root@localhost:~# cat /proc/cmdline&lt;BR /&gt;console=ttyS0,115200 earlycon=uart8250,mmio,0x21c0500 root=PARTUUID=c46fcc0e-03 rw rootwait&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is any thing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Yi-Lin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 May 2019 11:31:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/ls1046a-rdb-run-dpdk-l3fwd-problem/m-p/891867#M4140</guid>
      <dc:creator>yi-linhsieh</dc:creator>
      <dc:date>2019-05-31T11:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: ls1046a rdb run dpdk l3fwd problem</title>
      <link>https://community.nxp.com/t5/Layerscape/ls1046a-rdb-run-dpdk-l3fwd-problem/m-p/891868#M4141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try setting these extra parameters in othbootargs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is still not working, please send a mail to nxp support&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 May 2019 11:38:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/ls1046a-rdb-run-dpdk-l3fwd-problem/m-p/891868#M4141</guid>
      <dc:creator>hemantagrawal</dc:creator>
      <dc:date>2019-05-31T11:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: ls1046a rdb run dpdk l3fwd problem</title>
      <link>https://community.nxp.com/t5/Layerscape/ls1046a-rdb-run-dpdk-l3fwd-problem/m-p/891869#M4142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just to add - you can do $export DPAA_PUSH_QUEUES_NUMBER=0&amp;nbsp;&lt;/P&gt;&lt;P&gt;before running your DPDK application (even without these bootargs).&amp;nbsp;&lt;/P&gt;&lt;P&gt;This will reduce the number of portal requirements - but performance will be bit lower.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 May 2019 11:40:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/ls1046a-rdb-run-dpdk-l3fwd-problem/m-p/891869#M4142</guid>
      <dc:creator>hemantagrawal</dc:creator>
      <dc:date>2019-05-31T11:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: ls1046a rdb run dpdk l3fwd problem</title>
      <link>https://community.nxp.com/t5/Layerscape/ls1046a-rdb-run-dpdk-l3fwd-problem/m-p/891870#M4143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes! It works after add the extra parameters in othbootargs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jun 2019 03:13:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/ls1046a-rdb-run-dpdk-l3fwd-problem/m-p/891870#M4143</guid>
      <dc:creator>yi-linhsieh</dc:creator>
      <dc:date>2019-06-03T03:13:17Z</dc:date>
    </item>
  </channel>
</rss>

