AnsweredAssumed Answered

FMC crashes

Question asked by Manjunath Mandya on Mar 21, 2016
Latest reply on Apr 6, 2016 by Yiping Wang


  We have LS1043A RDB board, we downloaded SDK 0.5 version from NXP website. We compiled the code under yocto environment. After booting we tried running FMC tool on the target, but it crashed. I have attached the log


Stopping Bootlog daemon: bootlogd.

Poky (Yocto Project Reference Distro) 1.6.1 ls1043ardb /dev/ttyS0


ls1043ardb login: root

root@ls1043ardb:~# cd ..

root@ls1043ardb:/home# cd ..

root@ls1043ardb:/# fmc -c /etc/fmc/config/private/ls1043ardb/RR_FQPP_1455/config.xml -p /etc/fmc/config/private/ls1043ardb/RR_FQPP_1455/policy_ipv4.xml -a


CPU: 2 PID: 3228 Comm: fmc Not tainted 3.19.3+ #1

Hardware name: LS1043A RDB Board (DT)

Call trace:

[<ffffffc00008a154>] dump_backtrace+0x0/0x12c

[<ffffffc00008a290>] show_stack+0x10/0x1c

[<ffffffc0006c39a4>] dump_stack+0x88/0xd8

[<ffffffc0004a4a1c>] QmEnqueueCB+0x194/0x254

[<ffffffc00048afc8>] FmHcPcdKgSetScheme+0x14c/0x504

[<ffffffc00045664c>] FM_PCD_KgSchemeSet+0x1d4/0x7d8

[<ffffffc0004a77e8>] LnxwrpFmPcdIOCTL+0x3e4/0x8fdc

[<ffffffc0004b0bd4>] LnxwrpFmIOCTL+0x568/0xd60

[<ffffffc0004b3cb8>] fm_ioctls+0x5c/0xf4

[<ffffffc0004b3df8>] fm_ioctl+0x44/0x64

[<ffffffc0001a21b4>] do_vfs_ioctl+0x31c/0x5bc

[<ffffffc0001a24d4>] SyS_ioctl+0x80/0x98

cpu 2: ! MINOR FM Error [CPU02, drivers/net/ethernet/freescale/fman/src/wrapper/lnxwrp_fm_port.c:283 QmEnqueueCB]: Write Access Failed;

cpu 2: timeout waiting for Tx confirmationcpu 2:

cpu 2: ! MINOR FM-PCD Error [CPU02, drivers/net/ethernet/freescale/fman/Peripherals/FM/HC/hc.c:218 EnQFrm]: Write Access Failed;

cpu 2: HC enqueue failedcpu 2:

cpu 2: ! MINOR FM-PCD Error [CPU02, drivers/net/ethernet/freescale/fman/Peripherals/FM/HC/hc.c:405 FmHcPcdKgSetScheme]: Write Access Failed;

cpu 2: cpu 2:

cpu 2: ! MINOR FM Error [CPU02, drivers/net/ethernet/freescale/fman/src/wrapper/lnxwrp_ioctls_fm.c:3290 LnxwrpFmPcdIOCTL]: Invalid Value;

cpu 2: IOCTL FM PCDcpu 2:

ERR : cpu 2: *** ASSERT_COND failed [CPU02, drivers/net/ethernet/freescale/fman/Peripherals/FM/Pcd/fm_pcd.c:769 FmPcdGetHcHandle]

Invocation of FM------------[ cut here ]------------

_PCD_KgSchemeSetWARNING: CPU: 2 PID: 3228 at drivers/net/ethernet/freescale/fman/src/xx/xx_arm_linux.c:157 XX_Exit+0x20/0x28()

for fm0/port/MA

FMD: fatal error, driver can't go on!!!


C/1/dist/udpeth1Modules linked in: failed

CPU: 2 PID: 3228 Comm: fmc Not tainted 3.19.3+ #1

Hardware name: LS1043A RDB Board (DT)

Call trace:

[<ffffffc00008a154>] dump_backtrace+0x0/0x12c

[<ffffffc00008a290>] show_stack+0x10/0x1c

[<ffffffc0006c39a4>] dump_stack+0x88/0xd8

[<ffffffc0000b1f3c>] warn_slowpath_common+0x94/0xcc

[<ffffffc0000b1fc0>] warn_slowpath_fmt+0x4c/0x58

[<ffffffc0004cc670>] XX_Exit+0x1c/0x28

[<ffffffc0004595f4>] FmPcdGetHcHandle+0x58/0x6c

[<ffffffc000474f04>] DetachPCD+0x54/0x19c

[<ffffffc00048349c>] FM_PORT_DeletePCD+0x2a8/0x4d8

[<ffffffc0004b2128>] LnxwrpFmPortIOCTL+0xd5c/0x2890

[<ffffffc0004b3c90>] fm_ioctls+0x34/0xf4

[<ffffffc0004b3df8>] fm_ioctl+0x44/0x64

[<ffffffc0001a21b4>] do_vfs_ioctl+0x31c/0x5bc

[<ffffffc0001a24d4>] SyS_ioctl+0x80/0x98

---[ end trace a2ce7f5648ebc92b ]---

Unable to handle kernel paging request at virtual address 00006948

pgd = ffffffc0214c4000

[00006948] *pgd=00000000a1014003, *pud=00000000a1014003, *pmd=0000000000000000

Internal error: Oops: 96000006 [#1] PREEMPT SMP

Modules linked in:

CPU: 2 PID: 3228 Comm: fmc Tainted: G        W      3.19.3+ #1

Hardware name: LS1043A RDB Board (DT)

task: ffffffc0213b0000 ti: ffffffc021bf8000 task.ti: ffffffc021bf8000

PC is at FmPcdGetHcHandle+0x5c/0x6c

LR is at FmPcdGetHcHandle+0x5c/0x6c

pc : [<ffffffc0004595f8>] lr : [<ffffffc0004595f8>] pstate: 80000145

sp : ffffffc021bfbba0

x29: ffffffc021bfbba0 x28: ffffffc021bf8000

x27: ffffffc00096e000 x26: 000000000000001d

x25: 000000000000011a x24: 000000000000e15b

x23: 0000007feceb2ac0 x22: 0000000000000000

x21: 0000007feceb2ac0 x20: ffffffc021835d40

x19: 0000000000000000 x18: 0000007feceb24b0

x17: 0000007fb5a24a30 x16: ffffffc0001a2454

x15: 0000007fb5a99598 x14: 0ffffffffffffffd

x13: 0000000000000018 x12: 0000000000000006

x11: 0000000000000000 x10: 0000000000000195

x9 : 0000000000000196 x8 : 3436356637656332

x7 : ffffffc000964508 x6 : 000000000000000f

x5 : ffffffc0003627f8 x4 : 0000000000000007

x3 : 0000000000000200 x2 : 0000000000000200

x1 : ffffffc0009cc358 x0 : 0000000000000000



Process fmc (pid: 3228, stack limit = 0xffffffc021bf8058)

Stack: (0xffffffc021bfbba0 to 0xffffffc021bfc000)

bba0: 21bfbbc0 ffffffc0 00474f08 ffffffc0 76b06000 ffffffc0 21d10000 ffffffc0

bbc0: 21bfbc00 ffffffc0 004834a0 ffffffc0 76b06000 ffffffc0 0000001d 00000000

bbe0: 21bfbbf0 ffffffc0 004ccaf4 ffffffc0 21bfbc00 ffffffc0 00483498 ffffffc0

bc00: 21bfbc50 ffffffc0 004b212c ffffffc0 0000e15b 00000000 21d110f0 ffffffc0

bc20: eceb2ac0 0000007f 0019c918 ffffffc0 21bfbce0 ffffffc0 0019ec90 ffffffc0

bc40: 21bfbdb0 ffffffc0 21bfbea8 ffffffc0 21bfbdb0 ffffffc0 004b3c94 ffffffc0

bc60: 76bea700 ffffffc0 0000e15b 00000000 21defd38 ffffffc0 00000005 00000000

bc80: eceb2ac0 0000007f 0000e15b 00000000 0000011a 00000000 0000001d 00000000

bca0: 21bfbcc0 ffffffc0 0035e7fc ffffffc0 009e81a8 ffffffc0 215db800 ffffffc0

bcc0: 21bfbcd0 ffffffc0 0035e840 ffffffc0 21bfbd00 ffffffc0 0035e858 ffffffc0

bce0: 21bfbcf0 ffffffc0 000e25c8 ffffffc0 21bfbd10 ffffffc0 0034494c ffffffc0

bd00: 21bfbd10 ffffffc0 00344970 ffffffc0 21bfbd60 ffffffc0 000e2610 ffffffc0

bd20: 215dba30 ffffffc0 00000140 00000000 215db800 ffffffc0 b5a97fd4 0000007f

bd40: 21bfbdb0 ffffffc0 004b3cbc ffffffc0 76beab00 ffffffc0 0000e116 00000000

bd60: 21deec28 ffffffc0 00000004 00000000 215db800 ffffffc0 21ca69b8 ffffffc0

bd80: 21bfbe30 ffffffc0 00190f98 ffffffc0 215ec100 ffffffc0 00000001 00000000

bda0: 21ca69b8 ffffffc0 00000002 00000000 21bfbde0 ffffffc0 004b3dfc ffffffc0

bdc0: 76bea700 ffffffc0 004a1170 ffffffc0 21bfbde0 ffffffc0 004b3de4 ffffffc0

bde0: 21bfbe10 ffffffc0 001a21b8 ffffffc0 76bea700 ffffffc0 eceb2ac0 0000007f

be00: 00000008 00000000 eceb2ac0 0000007f 21bfbe90 ffffffc0 001a24d8 ffffffc0

be20: 76bea700 ffffffc0 00000000 00000000 76bea700 ffffffc0 00000005 00000000

be40: 215ec100 ffffffc0 215ec100 ffffffc0 ffffffff ffffffff b5a1fa7c 0000007f

be60: 60000000 00000000 001918e8 ffffffc0 21bfbe80 ffffffc0 001ac3f8 ffffffc0

be80: 21bfbe90 ffffffc0 001a2494 ffffffc0 eceb2b00 0000007f 00086430 ffffffc0

bea0: 00000000 00000000 02fd5990 00000000 ffffffff ffffffff b5a24a3c 0000007f

bec0: 80000000 00000000 00000015 00000000 00000005 00000000 0000e15b 00000000

bee0: eceb2ac0 0000007f eceb2ad0 0000007f eceb2aa0 0000007f ffffffff 00000000

bf00: 00000000 00000000 eceb2798 0000007f 0000001d 00000000 fefefeff fefefefe

bf20: ffffffff 00000000 01010101 01010101 00000038 00000000 00000000 00000000

bf40: 00000000 00000000 b5a99598 0000007f 005602f8 00000000 b5a24a30 0000007f

bf60: eceb24b0 0000007f 02f1fde8 00000000 02fd5990 00000000 02fd5fd8 00000000

bf80: 00000025 00000000 0051eef0 00000000 0051ee10 00000000 00000000 00000000

bfa0: 0051efd8 00000000 eceb30a8 0000007f eceb2ef8 0000007f eceb2b00 0000007f

bfc0: 0051b7b8 00000000 eceb2b00 0000007f b5a24a3c 0000007f 80000000 00000000

bfe0: 00000005 00000000 0000001d 00000000 00000000 00000000 00000000 00000000

Call trace:

[<ffffffc0004595f8>] FmPcdGetHcHandle+0x5c/0x6c

[<ffffffc000474f04>] DetachPCD+0x54/0x19c

[<ffffffc00048349c>] FM_PORT_DeletePCD+0x2a8/0x4d8

[<ffffffc0004b2128>] LnxwrpFmPortIOCTL+0xd5c/0x2890

[<ffffffc0004b3c90>] fm_ioctls+0x34/0xf4

[<ffffffc0004b3df8>] fm_ioctl+0x44/0x64

[<ffffffc0001a21b4>] do_vfs_ioctl+0x31c/0x5bc

[<ffffffc0001a24d4>] SyS_ioctl+0x80/0x98

Code: 9138e000 9401cc24 52800020 9401cc18 (f974a660)

---[ end trace a2ce7f5648ebc92c ]---

Segmentation fault

  Please let me know how to go about this. Without performing this we cannot receive anything on the port.