This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
hi,
我在am3358上面跑实时程序,运行一段时间后,提示如下错误。
[ 719.196562] BUG: spinlock cpu recursion on CPU#0, trivial/1238
[ 719.202680] lock: contig_page_data+0x24/0xc00, .magic: dead4ead, .owner: wicd/1336, .owner_cpu: 0
[ 719.212012] [<c001087d>] (unwind_backtrace+0x1/0x8c) from [<c01f722f>] (do_raw_spin_lock+0x43/0x108)
[ 719.221541] [<c01f722f>] (do_raw_spin_lock+0x43/0x108) from [<c00d17c9>] (free_one_page+0x19/0x180)
[ 719.230978] [<c00d17c9>] (free_one_page+0x19/0x180) from [<c00d1971>] (__free_pages_ok.part.52+0x41/0x58)
[ 719.240955] [<c00d1971>] (__free_pages_ok.part.52+0x41/0x58) from [<c00d379d>] (__put_compound_page+0x15/0x16)
[ 719.251392] [<c00d379d>] (__put_compound_page+0x15/0x16) from [<c0366a3d>] (__kfree_skb+0xf/0x8e)
[ 719.260645] [<c0366a3d>] (__kfree_skb+0xf/0x8e) from [<c036959d>] (skb_free_datagram+0xb/0x26)
[ 719.269635] [<c036959d>] (skb_free_datagram+0xb/0x26) from [<c03c2d53>] (packet_recvmsg+0x30f/0x31c)
[ 719.279147] [<c03c2d53>] (packet_recvmsg+0x30f/0x31c) from [<c0361825>] (sock_recvmsg+0x55/0x68)
[ 719.288309] [<c0361825>] (sock_recvmsg+0x55/0x68) from [<c0361859>] (kernel_recvmsg+0x21/0x24)
[ 719.297294] [<c0361859>] (kernel_recvmsg+0x21/0x24) from [<bf8f221f>] (ec_gen_device_poll+0x40/0x58 [ec_generic])
[ 719.307983] [<bf8f221f>] (ec_gen_device_poll+0x40/0x58 [ec_generic]) from [<bf8f2241>] (ec_gen_poll+0xa/0xc [ec_generic])
[ 719.319408] [<bf8f2241>] (ec_gen_poll+0xa/0xc [ec_generic]) from [<bf8a4c07>] (ec_device_poll+0xe/0x14 [ec_master])
[ 719.330280] [<bf8a4c07>] (ec_device_poll+0xe/0x14 [ec_master]) from [<bf8b34e9>] (ecrt_master_receive+0x10/0x98 [ec_master])
[ 719.341974] [<bf8b34e9>] (ecrt_master_receive+0x10/0x98 [ec_master]) from [<bf8bc48b>] (ec_ioctl_rtdm+0x14fe/0x2084 [ec_master])
[ 719.354033] [<bf8bc48b>] (ec_ioctl_rtdm+0x14fe/0x2084 [ec_master]) from [<bf8b865f>] (ec_rtdm_ioctl+0x12/0x14 [ec_master])
[ 719.365537] [<bf8b865f>] (ec_rtdm_ioctl+0x12/0x14 [ec_master]) from [<c00c79ff>] (__rt_dev_ioctl+0x53/0x1e8)
[ 719.375774] [<c00c79ff>] (__rt_dev_ioctl+0x53/0x1e8) from [<c008746f>] (hisyscall_event+0xdf/0x230)
[ 719.385216] [<c008746f>] (hisyscall_event+0xdf/0x230) from [<c0069f81>] (ipipe_syscall_hook+0x2d/0x34)
[ 719.394930] [<c0069f81>] (ipipe_syscall_hook+0x2d/0x34) from [<c0068f01>] (__ipipe_notify_syscall+0x5d/0xb4)
[ 719.405181] [<c0068f01>] (__ipipe_notify_syscall+0x5d/0xb4) from [<c00132ab>] (__ipipe_syscall_root+0x27/0x80)
[ 719.415615] [<c00132ab>] (__ipipe_syscall_root+0x27/0x80) from [<c000ca2d>] (local_restart+0x9/0x54)
[ 719.425147] Xenomai: watchdog triggered -- signaling runaway thread 'trivial'
[ 719.432586] Xenomai: watchdog triggered -- killing runaway thread 'trivial'
其中,'trivial'是我实时任务的名字,
这是应该是由于spinlock 发生竞争时有进程睡眠之类的导致的吧,但是我不知道这种问题该怎么解决,或者有什么解决这种问题的思路,请大家给个建议,
谢谢。
这个是打的xenomai后,跑的程序吧。
但是TI目前没有官方提供对xenomai的支持,所以,我们暂时没有很多可以帮忙的。
不过,在这个上面做这个的论坛里的朋友很多,希望其他人能够帮到您。
谢谢!