I was able to boot the BSP successfully on Clear-Fog LX2160A board and working on enabling DPDK with the onboard SFP+ ports. I’m able to bind as SFP module to DPDK (via vfio-fsl-mc), but when I attempt to start DPDK testpmd, it fails with following errors.
root@localhost:~# dynamic_dpl.sh dpmac.7 dpmac.9
parent - dprc.1
Creating Non nested DPRC
NEW DPRCs
dprc.1
dprc.2
Using board type as 2160
Using High Performance Buffers
##################### Container dprc.2 is created ####################
Container dprc.2 have following resources :=>
* 3 DPMCP
* 16 DPBP
* 8 DPCON
* 16 DPSECI
* 2 DPNI
* 34 DPIO
* 8 DPCI
* 64 DPDMAI
* 0 DPRTC
######################### Configured Interfaces #########################
Interface Name Endpoint Mac Address
============== ======== ==================
dpni.1 dpmac.7 -Dynamic-
dpni.2 dpmac.9 -Dynamic-
root@localhost:~# ls -l /sys/bus/fsl-mc/drivers/vfio-fsl-mc/ | grep dpni.1
lrwxrwxrwx 1 root root 0 Mar 12 05:13 dpni.1 → ../../../../devices/platform/soc/80c000000.fsl-mc/dprc.1/dprc.2/dpni.1
root@localhost:~#
root@localhost:~# ls -l /sys/bus/fsl-mc/drivers/vfio-fsl-mc/ | grep dpni.2
lrwxrwxrwx 1 root root 0 Mar 12 05:13 dpni.2 → ../../../../devices/platform/soc/80c000000.fsl-mc/dprc.1/dprc.2/dpni.2
root@localhost:~#
root@localhost:~# dpdk-hugepages.py --setup 2G
root@localhost:~#
root@localhost:~# export DPRC=dprc.2
root@localhost:~#
root@localhost:~# dpdk-testpmd – -i
EAL: Detected CPU lcores: 16
EAL: Detected NUMA nodes: 1
EAL: Detected shared linkage of DPDK
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Selected IOVA mode ‘VA’
EAL: No available 2048 kB hugepages reported
EAL: No available 32768 kB hugepages reported
EAL: No available 64 kB hugepages reported
EAL: VFIO support initialized
TELEMETRY: No legacy callbacks, legacy socket not created
testpmd: No probed ethernet devices
Interactive-mode selected
testpmd: create a new mbuf pool <mb_pool_0>: n=267456, size=2176, socket=0
testpmd: preferred mempool ops selected: ring_mp_mc
MBUF: error setting mempool handler
EAL: Error - exiting with code: 1
Cause: Creation of mbuf pool for socket 0 failed: Invalid argument
root@localhost:~#
DPDK libraries installation: what are the recommended steps to install the correct version of DPDK libraries?? We are currently using SolidRun Images dpdk-.tar.xz.
Binding NICs to DPDK: what is the recommended procedure to correctly bind SFP+ ports (dpmac/dpni) to vfio-fsl-mc. ??
Running dpdk-testpmd: are there any known limitations with the BSP kernel, DTB that could cause testpmd to fail on this platform. ??
Thanks in advance
Venky