HI,
I built fsl-ls1046a-rdb-shared-mac10-only.dts (modify from fsl-ls1046a-rdb-shared-mac9-only.dts)
fsl,dpaa {
compatible = "fsl,ls1046a", "fsl,dpaa", "simple-bus";
dma-coherent;
/*
* ethernet@8 {
* fsl,bman-buffer-pools = <&bp7 &bp8 &bp9>;
* fsl,qman-frame-queues-rx = <0x5c 1 0x5d 1 0x8a 1>;
* fsl,qman-frame-queues-tx = <0x7c 1 0x7d 1 0x84 1>;
* };
*/
ethernet@9 {
fsl,bman-buffer-pools = <&bp7 &bp8 &bp9>;
fsl,qman-frame-queues-rx = <0x5e 1 0x5f 1 0x8b 1>;
fsl,qman-frame-queues-tx = <0x7e 1 0x7f 1 0x85 1>;
};
dpa-fman0-oh@2 {
compatible = "fsl,dpa-oh";
/* Define frame queues for the OH port*/
/* <OH Rx error, OH Rx default> */
fsl,qman-frame-queues-oh = <0x60 1 0x61 1>;
fsl,fman-oh-port = <&fman0_oh2>;
};
};
why result in error below
ERR : Invocation of FM_PORT_SetPCD for fm0/port/MAC/10 failed with error code 0x00010013
ERR : Invocation of FM_PCD_KgSchemeDelete for fm0/port/MAC/10/dist/default_mac10_dist failed with error code 0x00010013
configuration file and policy file had been attached.
Hello @yipingwang,
thanks for your reply!
I compile the /usr/local/dpdk/dpaa/fsl-ls1046a-rdb-sdk-shared-usdpaa.dts and boot the device with the compiled dtb fsl-ls1046a-rdb-usdpaa-shared.dtb.
for vsp fmc :
fmc -c /usr/local/dpdk/dpaa/usdpaa_config_ls1046_shared_24g.xml -p /usr/local/dpdk/dpaa/usdpaa_policy_vsp_24g_classif_udp_ipsec_1queue.xml -a
for testpmd :
testpmd -c 0x3 -- -i --forward-mode=rxonly --rxq=1
result :
EAL: Detected 4 lcore(s)
EAL: Detected 1 NUMA nodes
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Selected IOVA mode 'PA'
EAL: Probing VFIO support...
EAL: VFIO support initialized
EAL: DPAA Bus Detected
PMD: Using FMC script mode,RXQs will be setup according to FMC configuration
dpaa_dev_init(): fm1-mac3 is not configured by FMC.
PMD: net: dpaa: fm1-mac3: 00:04:9f:06:53:a4
dpaa_dev_init(): fm1-mac4 is not configured by FMC.
PMD: net: dpaa: fm1-mac4: 00:04:9f:06:53:a5
dpaa_dev_init(): fm1-mac5 is not configured by FMC.
PMD: net: dpaa: fm1-mac5: 00:04:9f:06:53:a0
PMD: net: dpaa: fm1-mac6: 00:04:9f:06:53:a1
PMD: net: dpaa: fm1-mac9: 00:04:9f:06:53:a3
PMD: net: dpaa: fm1-mac10: 00:04:9f:06:53:a2
PMD: dpaa_sec-1 cryptodev init
PMD: dpaa_sec-2 cryptodev init
PMD: dpaa_sec-3 cryptodev init
PMD: dpaa_sec-4 cryptodev init
Interactive-mode selected
Set rxonly packet forwarding mode
Fail: input rxq (1) can't be greater than max_rx_queues (0) of port 0
EAL: Error - exiting with code: 1
Cause: rxq 1 invalid - must be >= 0 && <= 0
I try export the parameters, but status remain unchange
export DPAA_NUM_RX_QUEUES=1
export DPAA_PUSH_QUEUES_NUMBER=1
For dts, please refer to /usr/local/dpdk/dpaa/fsl-ls1046a-rdb-sdk-shared-usdpaa.dts provided in rootfs.
To activate VSP capability on a port, the user will have to configure the chosen node in the device tree. One valid entry looks like:
fman0_rx2-extd-args {
cell-index = <2>;
compatible = "fsl,fman-port-1g-rx-extended-
args";
/* Define Virtual storage profile */
/* <number of profiles, default profile id> */
vsp-window = <2 0>;
};
vsp-window - the number of VSPs that this port can have and the default VSP.
Ethernet port definition is as the following in dts file.
ethernet@2 {
compatible = "fsl,ls1046-dpa-ethernet-shared", "fsl,dpa-ethernet-
shared";
fsl,bman-buffer-pools = <&bp7 &bp8 &bp9>;
fsl,qman-frame-queues-rx = <0x54 1 0x55 1>;
fsl,qman-frame-queues-tx = <0x74 1 0x75 1 0x80 1>;
};
For VSP fmc configure, please refer to the following.
$ fmc -c /usr/local/dpdk/dpaa/usdpaa_config_ls1046_shared_24g.xml -p /usr/local/dpdk/dpaa/
usdpaa_policy_24g_classif_udp_ipsec_1queue.xml -a
Please use dtb fsl-ls1046a-rdb-usdpaa-shared.dtb provided in Linux Kernel.
setenv othbootargs console=ttyS0,115200 earlycon=uart8250,mmio,0x21c0500 ramdisk_size=0x40000000 bportals=s0 qportals=s0 isolcpus=1-3 default_hugepagesz=2m hugepagesz=2m hugepages=448 nmi_watchdog=0 rcupdate.rcu_cpu_stall_suppress=1
root@localhost:~# fmc -x
root@localhost:~# mkdir -p /mnt/hugepages
root@localhost:~# mount -t hugetlbfs none /mnt/hugepages
root@localhost:~# export DPAA_FMC_MODE=1
root@localhost:~# fmc -c /usr/local/dpdk/dpaa/usdpaa_config_ls1046_shared_24g.xml -p /usr/local/dpdk/dpaa/usdpaa_policy_24g_classif_udp_ipsec_1queue.xml -a
root@localhost:~# dpdk-testpmd -c 0x3 -- -i --forward-mode=rxonly --rxq=1
EAL: Detected 4 lcore(s)
EAL: Detected 1 NUMA nodes
EAL: Detected static linkage of DPDK
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Selected IOVA mode 'PA'
EAL: No available hugepages reported in hugepages-32768kB
EAL: No available hugepages reported in hugepages-64kB
EAL: No available hugepages reported in hugepages-1048576kB
EAL: Probing VFIO support...
EAL: VFIO support initialized
EAL: DPAA Bus Detected
PMD: Using FMC script mode,RXQs will be setup according to FMC configuration
PMD: net: dpaa: fm1-mac3: 00:e0:0c:00:aa:00
PMD: net: dpaa: fm1-mac4: 00:e0:0c:00:aa:01
PMD: net: dpaa: fm1-mac5: 00:e0:0c:00:aa:02
PMD: net: dpaa: fm1-mac6: 00:e0:0c:00:aa:03
PMD: net: dpaa: fm1-mac9: 00:e0:0c:00:aa:04
PMD: net: dpaa: fm1-mac10: 00:e0:0c:00:aa:05
PMD: dpaa_sec-1 cryptodev init
PMD: dpaa_sec-2 cryptodev init
PMD: dpaa_sec-3 cryptodev init
PMD: dpaa_sec-4 cryptodev init
EAL: No legacy callbacks, legacy socket not created
Interactive-mode selected
Set rxonly packet forwarding mode
testpmd: create a new mbuf pool <mb_pool_0>: n=155456, size=2176, socket=0
testpmd: preferred mempool ops selected: dpaa
Configuring Port 0 (socket 0)
Port 0: link state change event
Port 0: 00:E0:0C:00:AA:00
Configuring Port 1 (socket 0)
Port 1: link state change event
Port 1: 00:E0:0C:00:AA:01
Configuring Port 2 (socket 0)
Port 2: link state change event
Port 2: 00:E0:0C:00:AA:02
Configuring Port 3 (socket 0)
Port 3: link state change event
Port 3: 00:E0:0C:00:AA:03
Configuring Port 4 (socket 0)
Port 4: link state change event
Port 4: 00:E0:0C:00:AA:04
Configuring Port 5 (socket 0)
Port 5: link state change event
Port 5: 00:E0:0C:00:AA:05
Checking link statuses...
Done
testpmd>