Toybrick
标题:
rk3399pro内核软死锁
[打印本页]
作者:
xinzhiling111
时间:
2021-7-1 13:25
标题:
rk3399pro内核软死锁
rk3399pro buildroot上用qt开发的应用,里面用到了metux互斥锁,运行一段时间,尤其是大小核频率都很高的情况下,会出现软死锁,log如下:
[37075.901464] NMI watchdog: BUG: soft lockup - CPU#3 stuck for 22s! [kworker/u12:3:29195]
[37075.902220] Modules linked in: bcmdhd
[37075.902575]
[37075.902733] CPU: 3 PID: 29195 Comm: kworker/u12:3 Not tainted 4.4.194 #4
[37075.903322] Hardware name: Rockchip RK3399pro evb v14 board for linux (DT)
[37075.903941] Workqueue: dma_trx_wq rk_pcie_dma_trx_work
[37075.904410] task: ffffffc0f0ce0d80 task.stack: ffffffc0c1774000
[37075.904935] PC is at rk_pcie_dma_trx_work+0x30/0x98
[37075.905378] LR is at process_one_work+0x218/0x370
[37075.905796] pc : [<ffffff8008428be4>] lr : [<ffffff80080b23b4>] pstate: 20000145
[37075.906446] sp : ffffffc0c1777d20
[37075.906741] x29: ffffffc0c1777d20 x28: 0000000000000000
[37075.907237] x27: 0000000000000000 x26: ffffffc00a23a8a0
[37075.907731] x25: 0000000000000000 x24: ffffff80090b6150
[37075.908223] x23: ffffffc0f0db4888 x22: ffffffc0f0db4870
[37075.908714] x21: ffffffc0f0db4898 x20: ffffffc0f0db4828
[37075.909205] x19: ffffffc0f0dc80a0 x18: 0000000000000008
[37075.909696] x17: 0000007f7c409800 x16: ffffff8008103550
[37075.910186] x15: 0000007ec45dd250 x14: 0000000000000001
[37075.910677] x13: 0000000000000001 x12: 0000000000000073
[37075.911168] x11: 000000000000018b x10: 0000000000000990
[37075.911664] x9 : ffffffc0c1777d10 x8 : ffffffc0f0ce1770
[37075.912160] x7 : ffffffc0f6f100c8 x6 : 0000000000000000
[37075.912660] x5 : 0000000000000001 x4 : 0000000000000000
[37075.913160] x3 : 00000040edfe3000 x2 : 00000040edfe3000
[37075.913652] x1 : ffffff8008428bb4 x0 : 0000000000000000
[37075.914150]
[37075.914150] PC: 0xffffff8008428b64:
[37075.914590] 8b64 97f36525 f9000e80 f9401280 d2884801 f2a001e1 97f36520 a9425bf5 a94363f7
[37075.915362] 8b84 a9446bf9 a94573fb f9001280 52800020 a94153f3 a8c77bfd d65f03c0 d2800416
[37075.916127] 8ba4 d2800c00 f2a02016 8b160276 17ffffb8 a9bc7bfd 910003fd a90153f3 a9025bf5
[37075.916892] 8bc4 a90363f7 aa0003f5 aa1e03e0 d101c2b4 d100a2b6 91018297 d503201f f85f02b3
[37075.917661] 8be4 eb17027f 540000c1 a94153f3 a9425bf5 a94363f7 a8c47bfd d65f03c0 b9402a80
[37075.918432] 8c04 34ffff00 b9002a9f aa1603e0 d1008278 94186a43 a9400662 f9000441 f9000022
[37075.919196] 8c24 aa0003e1 a9004e73 aa1603e0 94186a89 f900c298 b941ea80 35fffd20 aa1403e0
[37075.919963] 8c44 97fff46f 17ffffe6 a9be7bfd 910003fd a90153f3 aa0103f3 aa1e03e0 d503201f
[37075.920729]
[37075.920729] LR: 0xffffff80080b2334:
[37075.921169] 2334 aa1503e0 97fff77f b94022a1 aa1403e0 90008038 97fff6d9 aa1503e0 942644ce
[37075.921939] 2354 91036301 91014021 b9400820 7100001f 540001ed b00073a0 91000000 d538d082
[37075.922708] 2374 b8626802 52800800 b0004d23 f944e463 1ac00c40 937d7c00 f8606860 9ac22400
[37075.923478] 2394 36000060 f940103a b5000a1a f9400e61 91036318 9101e318 aa1403e0 d63f0020
[37075.924250] 23b4 b9400b00 7100001f 540001ed b00073a0 91000000 d538d081 b8616801 52800800
[37075.925022] 23d4 b0004d22 f944e442 1ac00c20 937d7c00 f8606840 9ac12400 36000060 f9401318
[37075.925802] 23f4 b5000818 d5384101 b9401020 34000120 b9401022 d00060e0 b9452823 911be021
[37075.926589] 2414 f9400e64 9109d400 9402bcc9 940c18ee 9426389c 35000040 94011c8b aa1503e0
[37075.927366]
[37075.927366] SP: 0xffffffc0c1777ca0:
[37075.927807] 7ca0 f0db4870 ffffffc0 f0db4888 ffffffc0 090b6150 ffffff80 00000000 00000000
[37075.928575] 7cc0 0a23a8a0 ffffffc0 00000000 00000000 00000000 00000000 c1777d20 ffffffc0
[37075.929343] 7ce0 080b23b4 ffffff80 c1777d20 ffffffc0 08428be4 ffffff80 20000145 00000000
[37075.930106] 7d00 ec2a0d80 ffffffc0 ef421f80 ffffffc0 ffffffff ffffffff 08a4049c ffffff80
[37075.930869] 7d20 c1777d60 ffffffc0 080b23b4 ffffff80 6de51900 ffffffc0 f0db4898 ffffffc0
[37075.931632] 7d40 0a23a800 ffffffc0 00000000 00000000 f0cfd700 ffffffc0 090b6150 ffffff80
[37075.932395] 7d60 c1777db0 ffffffc0 080b3270 ffffff80 6de51900 ffffffc0 0a23a800 ffffffc0
[37075.933158] 7d80 0a23a800 ffffffc0 08f76570 ffffff80 f0ce0d80 ffffffc0 6de51930 ffffffc0
[37075.933924]
[37075.933924] X1: 0xffffff8008428b34:
[37075.934364] 8b34 f9405ae0 b5000060 f94056e0 b40000c0 d2800003 52800022 52800061 910242a0
[37075.935127] 8b54 97f2dc3b f9400e80 d2884801 f2a001e1 97f3652aa0003f5 aa1e03e0 d101c2b4
[37075.938191] 8bd4 d100a2b6 91018297 d503201f f85f02b3 eb17027f 540000c1 a94153f3 a9425bf5
[37075.938959] 8bf4 a94363f7 a8c47bfd d65f03c0 b9402a80 34ffff00 b9002a9f aa1603e0 d1008278
[37075.939734] 8c14 94186a43 a9400662 f9000441 f9000022 aa0003e1 a9004e73 aa1603e0 94186a89
[37075.940512]
[37075.940512] X7: 0xffffffc0f6f10048:
[37075.940953] 0048 00000000 dead4ead ffffffff 00000000 ffffffff ffffffff f6f10060 ffffffc0
[37075.941721] 0068 f6f10060 ffffffc0 00000000 00000000 00000000 00000000 00000000 00000000
[37075.942491] 0088 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[37075.943261] 00a8 00000000 00000000 00000000 00000000 f6f17900 ffffffc0 00000001 00000000
[37075.944032] 00c8 00000001 00000000 f0f4c310 ffffffc0 00000000 00000000 709c71c0 000021b8
[37075.944802] 00e8 709c71c0 000021b8 08110988 ffffff80 f6f0fc80 ffffffc0 00000001 00000000
[37075.945570] 0108 081103f0 ffffff80 70617773 2f726570 00000033 00000000 00000000 00000000
[37075.946339] 0128 00000002 00000000 688d8380 000021b2 00000000 00000000 0230c33e 00000001
[37075.947107]
[37075.947107] X8: 0xffffffc0f0ce16f0:
[37075.947547] 16f0 00000000 00000000 00000000 00000000 00000001 00000000 00000000 00000000
[37075.948312] 1710 ec2a0d80 ffffffc0 f0ce0d80 ffffffc0 ec2a0d80 ffffffc0 ef421f80 ffffffc0
[37075.949076] 1730 08f27000 ffffff80 08a4049c ffffff80 f6f14080 ffffffc0 00000000 00000000
[37075.949842] 1750 08f67000 ffffff80 f0ce13e8 ffffffc0 c1777d10 ffffffc0 c1777d10 ffffffc0
[37075.950618] 1770 08085008 ffffff80 00000000 00000000 00000000 00000000 00000000 00000000
[37075.951401] 1790 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[37075.952175] 17b0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[37075.952947] 17d0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[37075.953720]
[37075.953720] X9: 0xffffffc0c1777c90:
[37075.954160] 7c90 f0db4828 ffffffc0 f0db4898 ffffffc0 f0db4870 ffffffc0 f0db4888 ffffffc0
[37075.954926] 7cb0 090b6150 ffffff80 00000000 00000000 0a23a8a0 ffffffc0 00000000 00000000
[37075.955701] 7cd0 00000000 00000000 c1777d20 ffffffc0 080b23b4 ffffff80 c1777d20 ffffffc0
[37075.956478] 7cf0 08428be4 ffffff80 20000145 00000000 ec2a0d80 ffffffc0 ef421f80 ffffffc0
[37075.957297] 7d10 ffffffff ffffffff 08a4049c ffffff80 c1777d60 ffffffc0 080b23b4 ffffff80
[37075.958148] 7d30 6de51900 ffffffc0 f0db4898 ffffffc0 0a23a800 ffffffc0 00000000 00000000
[37075.958932] 7d50 f0cfd700 ffffffc0 090b6150 ffffff80 c1777db0 ffffffc0 080b3270 ffffff80
[37075.959720] 7d70 6de51900 ffffffc0 0a23a800 ffffffc0 0a23a800 ffffffc0 08f76570 ffffff80
[37075.960493]
[37075.960493] X16: 0xffffff80081034d0:
[37075.960945] 34d0 f00049e1 913b2021 d5384102 f9027c41 12804060 f9403ba1 b9400c21 b9050041
[37075.961713] 34f0 f9402fa1 f9028454 f9028c41 a94153f3 93407c00 a9425bf5 f9401bf7 a8ca7bfd
[37075.962479] 3510 d65f03c0 92f00000 17ffffe4 aa1403e1 910103a0 97fffbdf 7100001f 54fffd2c
[37075.963245] 3530 17fffff3 52800000 17fffff1 12804020 17ffffef 71018c1f 9a9fc273 17ffffca
[37075.964009] 3550 a9bd7bfd 910003fd a90153f3 aa0003f3 aa0103f4 aa1e03e0 d503201f d5384100
[37075.964773] 3570 f9400401 aa1303e0 b1004000 fa413002 9a9f87e2 b40000c2 d2800202 aa1303e1
[37075.965536] 3590 910083a0 940acd2b b40000a0 928001a0 a94153f3 a8c37bfd d65f03c0 f94013a0
[37075.966299] 35b0 b7f800c0 f94017a1 d2993fe0 f2a77340 eb00003f 54000069 928002a0 17fffff5
[37075.967066]
[37075.967066] X19: 0xffffffc0f0dc8020:
[37075.967517] 8020 f0866198 ffffffc0 3a6e0198 ffffffc0 f08661b0 ffffffc0 f0cbef30 ffffffc0
[37075.968287] 8040 00000000 00000000 00000000 00000000 f0d354c0 ffffffc0 00000000 00000000
[37075.969062] 8060 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[37075.969837] 8080 094fd000 ffffff80 00000000 00000000 f7100000 00000000 000000
有大佬指点下如何锁定问题点的方法吗?记得动态库如果出现段错误,可以用addr2line等方法锁定出问题的地方,请问这种软死锁是否也有方法锁定一下位置?
欢迎光临 Toybrick (https://t.rock-chips.com/)
Powered by Discuz! X3.3