Wind River Support Network

HomeDefectsLIN5-18540
Fixed

LIN5-18540 : fsl-b4xxx DPAA Offload: reassembly_demo and ipsec_offload run with failures

Created: Apr 17, 2014    Updated: Dec 19, 2017
Resolved Date: Apr 17, 2014
Found In Version: 5.0.1.11
Fix Version: 5.0.1.14
Severity: Standard
Applicable for: Wind River Linux 5
Component/s: BSP - Async

Description

*********************
*reasembly_demo *
*********************
<======Prepare DTB======>
cp drivers/staging/fsl_dpa_offload/dts/b4860qds-usdpaa.dts arch/powerpc/boot/dts
cp drivers/staging/fsl_dpa_offload/dts/b4860si-pre.dtsi arch/powerpc/boot/dts/fsl
cp drivers/staging/fsl_dpa_offload/dts/b4860si-chosen-reass.dtsi arch/powerpc/boot/dts/fsl/b4860si-chosen.dtsi
dtc -f -b 0 -p 1024 -I dts -O dtb -o b4860qds-usdpaa.dtb arch/powerpc/boot/dts/b4860qds-usdpaa.dts

<======Run on target======>
root@localhost:~# modprobe dpa_offload
dpa_offload: module is from the staging directory, the quality is unknown, you have been warned.
DPA Classifier Driver initialized.
DPA IPSec Driver initialized.
DPA Stats Driver initialized.
root@localhost:~# export DEF_CFG_PATH=/usr/etc/reassembly_demo_config-b4860.xml
root@localhost:~# export DEF_PCD_PATH=/usr/etc/reassembly_demo_policy.xml
root@localhost:~# export DEF_PDL_PATH=/etc/fmc/config/hxs_pdl_v3.xml
root@localhost:~# /usr/bin/reassembly_demo -f 0 -t 5
Found /fsl,dpaa/dpa-fman0-oh@2, Tx Channel = 80a, FMAN = 0, Port ID = 1
Found /fsl,dpaa/dpa-fman0-oh@3, Tx Channel = 80b, FMAN = 0, Port ID = 2
Found /fsl,dpaa/dpa-fman0-oh@4, Tx Channel = 80c, FMAN = 0, Port ID = 3
Found /fsl,dpaa/ethernet@2, Tx Channel = 804, FMAN = 0, Port ID = 2
Found /fsl,dpaa/ethernet@3, Tx Channel = 805, FMAN = 0, Port ID = 3
Found /fsl,dpaa/ethernet@4, Tx Channel = 806, FMAN = 0, Port ID = 4
Found /fsl,dpaa/ethernet@5, Tx Channel = 807, FMAN = 0, Port ID = 5
Found /fsl,dpaa/ethernet@16, MAC-LESS node
Found /fsl,dpaa/ethernet@17, MAC-LESS node
Configuring for 1 network interface
Allocated DMA region size 0x1000000
Released 4096 bufs to BPID 32
Released 4096 bufs to BPID 33
Released 4096 bucpu1: ! MAJOR FM Error [CPU01, /work/buildarea/b4xxx/rt/bitbake_build/tmp/work/fsl_b4xxx-wrs-linux/linux-windriver-3.4-r0/linux/drivers/net/ethernet/freescale/fman/Peripherals/FM
/fm.c:2978 FmVSPCheckRelativeProfile]: Invalid State; 
fs to BPID 34
cpu1: Port has no allocated profiles
cpu1: 
cpu1: ! MAJOR FM-SP Error [CPU01, /work/buildarea/b4xxx/rt/bitbake_build/tmp/work/fsl_b4xxx-wrs-linux/linux-windriver-3.4-r0/linux/drivers/net/ethernet/freescale/fman/Peripherals/FM/SP/fm_sp.c:4
68 FM_VSP_Init]: Invalid State; 
cpu1: 
cpu1: 
/usr/bin/reassembly_demo: FM_VSP_Init error: 65555
: Unknown error 65555
/usr/bin/reassembly_demo: Failed to initialize VSP
: Unknown error 65555
error: PPAM init failed (-65555)
Thread uid:0 alive (on cpu 1)


********************
*  ipsec_offload *
********************

<======Prepare DTB======>
cp drivers/staging/fsl_dpa_offload/dts/b4860si-pre.dtsi arch/powerpc/boot/dts/fsl
cp drivers/staging/fsl_dpa_offload/dts/b4860si-chosen-offld.dtsi arch/powerpc/boot/dts/fsl/b4860si-chosen.dtsi
cp drivers/staging/fsl_dpa_offload/dts/b4860qds-usdpaa-shared-interfaces.dts arch/powerpc/boot/dts
dtc -f -b 0 -p 1024 -I dts -O dtb -o b4860qds-usdpaa-shared-mac.dtb arch/powerpc/boot/dts/b4860qds-usdpaa-shared-interfaces.dts


<======Run on target======>
root@localhost:~# modprobe dpa_offload
dpa_offload: module is from the staging directory, the quality is unknown, you have been warned.
DPA Classifier Driver initialized.
DPA IPSec Driver initialized.
DPA Stats Driver initialized.
root@localhost:~# export DEF_CFG_PATH="/usr/etc/ipsec_offload_config_b4860.xml"
root@localhost:~# export DEF_PCD_PATH="/usr/etc/ipsec_offload_pcd_b4.xml"
root@localhost:~# export DEF_SWP_PATH="/usr/etc/ipsec_offload_swp.xml"
root@localhost:~# export DEF_PDL_PATH="/etc/fmc/config/hxs_pdl_v3.xml"
root@localhost:~# /usr/bin/ipsec_offload \
> -c /usr/etc/ipsec_offload_config_b4860.xml \
> -p /usr/etc/ipsec_offload_policy.xml \
> -s /usr/etc/ipsec_offload_swp.xml \
> --fm 0 \
> --ob_eth 5,1 --ib_eth 4,1 \
> --ib-oh 1 --ob-oh-pre 2 --ob-oh-post 3 \
> --max-sa 32 --vif eth1 --vof eth3 --vipsec eth2 --mtu-pre-enc 500 --ib-loop
Found /fsl,dpaa/dpa-fman0-oh@2, Tx Channel = 80a, FMAN = 0, Port ID = 1
Found /fsl,dpaa/dpa-fman0-oh@3, Tx Channel = 80b, FMAN = 0, Port ID = 2
Found /fsl,dpaa/dpa-fman0-oh@4, Tx Channel = 80c, FMAN = 0, Port ID = 3
Found /fsl,dpaa/ethernet@2, Tx Channel = 804, FMAN = 0, Port ID = 2
Found /fsl,dpaa/ethernet@3, Tx Channel = 805, FMAN = 0, Port ID = 3
Found /fsl,dpaa/ethernet@4, Tx Channel = 806, FMAN = 0, Port ID = 4
Found /fsl,dpaa/ethernet@5, Tx Channel = 807, FMAN = 0, Port ID = 5
Found /fsl,dpaa/ethernet@16, MAC-LESS node
Found /fsl,dpaa/ethernet@17, MAC-LESS node
Found /fsl,dpaa/ethernet@18, MAC-LESS node
Configuring for 5 network interfaces
Allocated DMA region size 0x1000000
Released 0 bufs to BPID 32
Released 8192 bufs to BPID 5
Released 8192 bufs to BPID 9
Released 16384 bufs to BPID 16
cpu1: Hash 0xf6f00000: 0x8854e1b0
cpu1: Hash 0xf1800000: 0x8854f9a0
cpu1: Hash 0xf0100000: 0x88550d50
cpu1: > WARNING (FM-PCD) [CPU01, /work/buildarea/b4xxx/rt/bitbake_build/tmp/work/fsl_b4xxx-wrs-linux/linux-windriver-3.4-r0/linux/drivers/net/ethernet/freescale/fman/Peripherals/FM/Pcd/fm_kg.c:1
040 BuildSchemeRegs]: 
cpu1: baseFqid is 0.
cpu1: 
cpu1: > WARNING (FM-PCD) [CPU01, /work/buildarea/b4xxx/rt/bitbake_build/tmp/work/fsl_b4xxx-wrs-linux/linux-windriver-3.4-r0/linux/drivers/net/ethernet/freescale/fman/Peripherals/FM/Pcd/fm_kg.c:1
040 BuildSchemeRegs]: 
cpu1: baseFqid is 0.
cpu1: 
Thread uid:0 alive (on cpu 1)
ipsec_offload> 
ipsec_offload> Initializing XFRM netlink socket
NET: Registered protocol family 15
f5800660: 6162 6364  6566 6768  6970 7172  7374 7576
f5800670: 7778 7961  6263 6465  .... ....  .... ....
f5800640: .... ....  .... ....  6162 6364  6566 6768
f5800650: 6970 7172  7374 7576  7778 7961  .... ....
f5800660: 6162 6364  6566 6768  6970 7172  7374 7576
f5800670: 7778 7961  6263 6465  .... ....  .... ....
f5800640: .... ....  .... ....  6162 6364  6566 6768
f5800650: 6970 7172  7374 7576  7778 7961  .... ....
f61fd7c0: c0a8 c800  .... ....  .... ....  .... ....
f61fd570: ffff ff00  .... ....  .... ....  .... ....
BUG: sleeping function called from invalid context at /work/buildarea/b4xxx/rt/bitbake_build/tmp/work/fsl_b4xxx-wrs-linux/linux-windriver-3.4-r0/linux/kernel/rtmutex.c:658
in_atomic(): 1, irqs_disabled(): 1, pid: 1512, name: ipsec_offload
Call Trace:
[c0000000f9a3b260] [c00000000000b834] .show_stack+0xe4/0x250 (unreliable)
[c0000000f9a3b330] [c00000000091ba30] .dump_stack+0x20/0x30
[c0000000f9a3b3a0] [c0000000000a2efc] .__might_sleep+0x10c/0x170
[c0000000f9a3b440] [c0000000009109a4] .rt_spin_lock+0x34/0x90
[c0000000f9a3b4c0] [c00000000077b2e0] .qman_init_fq+0x3b0/0x680
[c0000000f9a3b570] [800000000014fcf0] .create_sec_frame_queue+0x130/0x2a0 [dpa_offload]
[c0000000f9a3b680] [80000000001562c0] .create_sa_fq_pair+0x110/0x300 [dpa_offload]
[c0000000f9a3b750] [8000000000156edc] .dpa_ipsec_create_sa+0x16c/0x7a0 [dpa_offload]
[c0000000f9a3b830] [800000000016d158] .do_create_sa_compat_ioctl+0xf8/0x1d0 [dpa_offload]
[c0000000f9a3ba70] [800000000016dcc8] .wrp_dpa_ipsec_do_compat_ioctl.isra.4+0x578/0x8e0 [dpa_offload]
[c0000000f9a3bc40] [800000000016e060] .wrp_dpa_ipsec_ioctl_compat+0x30/0x50 [dpa_offload]
[c0000000f9a3bcd0] [c00000000021f9a8] .compat_sys_ioctl+0x2c8/0x1ff0
[c0000000f9a3be30] [c0000000000005a0] syscall_exit+0x0/0x60
e1000e: eth0 NIC Link is Down

Other Downloads


Live chat
Online