Toybrick

标题: VPU服务运行一段时间崩溃 [打印本页]

作者: czcl    时间: 2022-10-17 15:24
标题: VPU服务运行一段时间崩溃

开启4路视频解码连续运行

发现vpu崩溃(dmesg -w 看到的)

具体崩溃日志如下:
[16575.785294] ------------[ cut here ]------------
[16575.785300] WARNING: at drivers/video/rockchip/vcodec/vcodec_service.c:914
[16575.785306] Modules linked in:

[16575.785323] CPU: 2 PID: 3703 Comm: decoder_decoder Tainted: G        W       4.4.194 #1
[16575.785329] Hardware name: rockchip,x3399pro-linux (DT)
[16575.785335] task: ffffffc0e37e0d80 task.stack: ffffffc0ac0e8000
[16575.785348] PC is at vpu_reset+0x38/0x218
[16575.785354] LR is at vpu_reset+0x30/0x218
[16575.785360] pc : [<ffffff800843afb4>] lr : [<ffffff800843afac>] pstate: 40000145
[16575.785365] sp : ffffffc0ac0ebd20
[16575.785370] x29: ffffffc0ac0ebd20 x28: ffffffc0e37e0d80
[16575.785380] x27: ffffff8008a62000 x26: 0000000000000001
[16575.785390] x25: ffffffc0ed7f1ec8 x24: ffffffc0f165b288
[16575.785400] x23: ffffffc0f0d8c628 x22: 0000000000000001
[16575.785409] x21: ffffffc0f165b028 x20: ffffffc0f0d8c628
[16575.785419] x19: ffffffc0f165b028 x18: ffffff80890ef897
[16575.785429] x17: 0000000000000000 x16: 0000000000000000
[16575.785438] x15: 0000000000000000 x14: 00000000000bfb6e
[16575.785448] x13: 000000000000000a x12: 0000000000000030
[16575.785457] x11: 00000000fffffffe x10: ffffff80090ef89f
[16575.785467] x9 : 0000000005f5e0ff x8 : ffffff800835b10c
[16575.785476] x7 : ffffff8008fce488 x6 : 0000000000000037
[16575.785486] x5 : ffffffc0f6ef8b38 x4 : 0000000000000001
[16575.785496] x3 : 0000000000000007 x2 : 0000000000000007
[16575.785505] x1 : 0000000000000006 x0 : ffffffc0eec67200
[16575.785516]
               PC: 0xffffff800843af34:
[16575.785522] af34  b4fffac0 39001016 b0005d56 b9000017 912f02d6 b9000818 9102c2d7 aa1703e0
[16575.785550] af54  94183192 aa1603e0 91004281 f84f0c02 f9007ac1 f9000441 a9010282 aa1703e0
[16575.785577] af74  941831bd 17ffffc5 a9bb7bfd 910003fd a90153f3 a9025bf5 aa0003f4 aa1e03e0
[16575.785605] af94  d503201f 900046e1 910a7c21 f9404693 f942ba60 9404d46b f941de60 b4000040
[16575.785632] afb4  d4210000 f941e260 b4000040 d4210000 f941e660 b4000040 d4210000 f942ba60
[16575.785659] afd4  f901de7f f901e27f f901e67f 94007bbd f9433e60 f9401001 d0ffffe0 913c5000
[16575.785686] aff4  eb00003f 54000501 910de275 aa1503e0 94183166 9100c3a8 52800002 52800001
[16575.785714] b014  52800000 940dba0a aa1503e0 94183192 f942ba60 f00046d5 94007bc4 f942ba60
[16575.785742]
               LR: 0xffffff800843af2c:
[16575.785747] af2c  97f59bb6 aa0003f4 b4fffac0 39001016 b0005d56 b9000017 912f02d6 b9000818
[16575.785774] af4c  9102c2d7 aa1703e0 94183192 aa1603e0 91004281 f84f0c02 f9007ac1 f9000441
[16575.785801] af6c  a9010282 aa1703e0 941831bd 17ffffc5 a9bb7bfd 910003fd a90153f3 a9025bf5
[16575.785828] af8c  aa0003f4 aa1e03e0 d503201f 900046e1 910a7c21 f9404693 f942ba60 9404d46b
[16575.785855] afac  f941de60 b4000040 d4210000 f941e260 b4000040 d4210000 f941e660 b4000040
[16575.785882] afcc  d4210000 f942ba60 f901de7f f901e27f f901e67f 94007bbd f9433e60 f9401001
[16575.785910] afec  d0ffffe0 913c5000 eb00003f 54000501 910de275 aa1503e0 94183166 9100c3a8
[16575.785936] b00c  52800002 52800001 52800000 940dba0a aa1503e0 94183192 f942ba60 f00046d5
[16575.785964]
               SP: 0xffffffc0ac0ebca0:
[16575.785970] bca0  00000001 00000000 f0d8c628 ffffffc0 f165b288 ffffffc0 ed7f1ec8 ffffffc0
[16575.785997] bcc0  00000001 00000000 08a62000 ffffff80 e37e0d80 ffffffc0 ac0ebd20 ffffffc0
[16575.786023] bce0  0843afac ffffff80 ac0ebd20 ffffffc0 0843afb4 ffffff80 40000145 00000000
[16575.786050] bd00  00000000 00000000 00000000 00000000 00000000 00000080 08fce488 ffffff80
[16575.786076] bd20  ac0ebd70 ffffffc0 0843b7c8 ffffff80 ed7f1e80 ffffffc0 ffffff92 00000000
[16575.786103] bd40  f165b028 ffffffc0 00000001 00000000 edfcd000 00000040 ffffffff 00ffffff
[16575.786130] bd60  0000000a 00000000 00000002 00000000 ac0ebe00 ffffffc0 081bd158 ffffff80
[16575.786157] bd80  40086c04 00000000 7dffc600 0000007f abf6be00 ffffffc0 f19f4970 ffffffc0
[16575.786186]
               X0: 0xffffffc0eec67180:
[16575.786191] 7180  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[16575.786218] 71a0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[16575.786244] 71c0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[16575.786271] 71e0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[16575.786298] 7200  00000001 00000002 ed7f1e80 ffffffc0 f0d8c628 ffffffc0 08fe41a0 ffffff80
[16575.786325] 7220  08ad7470 ffffff80 ed7f1ea8 ffffffc0 ed7f1ea8 ffffffc0 f165b2d8 ffffffc0
[16575.786352] 7240  f165b2d8 ffffffc0 00000138 00000000 acf5d910 ffffffc0 a595f310 ffffffc0
[16575.786379] 7260  ede00000 00000000 eec67270 ffffffc0 00000000 00000000 00100000 ffe78878
[16575.786409]
               X5: 0xffffffc0f6ef8ab8:
[16575.786415] 8ab8  0000003f 00000000 0000003f 00000000 00000000 00000000 00000000 00000000
[16575.786442] 8ad8  00000000 00000000 080db9e4 ffffff80 00000000 00000000 00000000 00000000
[16575.786469] 8af8  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[16575.786496] 8b18  469590c0 0000021d 00000000 00000000 080ede98 ffffff80 00000001 00000000
[16575.786522] 8b38  00000007 00000000 00000000 00000000 080ee584 ffffff80 00000000 00000000
[16575.786549] 8b58  00000000 01400000 00000000 00203767 00000000 00000000 00000000 00000000
[16575.786575] 8b78  00000000 00000000 e381e381 dead4ead ffffffff 00000000 ffffffff ffffffff
[16575.786602] 8b98  00000000 00000000 00f85982 00000001 00f8599c 00000001 00000005 00000000
[16575.786630]
               X7: 0xffffff8008fce408:
[16575.786635] e408  f1bba9c0 ffffffc0 00000000 00000000 00000000 00000000 00110000 00000000
[16575.786662] e428  000f0000 00000000 00000000 00000000 00040000 00000000 00080000 00000000
[16575.786689] e448  00000000 00000000 00000000 00000000 00000001 00000000 00000000 00000000
[16575.786715] e468  00000000 00000001 00000000 00000001 00000001 00000001 00000001 00000000
[16575.786741] e488  00000000 00000000 08d001d9 ffffff80 30a430a4 dead4ead ffffffff 00000000
[16575.786769] e4a8  ffffffff ffffffff f1440000 ffffffc0 00040000 00000000 00000001 00000000
[16575.786796] e4c8  00000000 dead4ead ffffffff 00000000 ffffffff ffffffff 08fce4e0 ffffff80
[16575.786823] e4e8  08fce4e0 ffffff80 00000000 00000000 00000000 00000000 00000000 00000000
[16575.786851]
               X8: 0xffffff800835b08c:
[16575.786858] b08c  9400054a aa1303e0 94000554 52800000 a94153f3 f94013f5 a8c37bfd d65f03c0
[16575.786884] b0ac  f9400413 17fffff6 f9400813 17fffff4 f9400c13 17fffff2 128002a0 17fffff5
[16575.786912] b0cc  71001c1f 54000161 f9405ce0 f9400c00 b4000140 a9bf7bfd aa0603e2 aa0403e1
[16575.786938] b0ec  910003fd 940004ce a8c17bfd d65f03c0 128002a0 d65f03c0 12800160 d65f03c0
[16575.786965] b10c  a9bb7bfd 7100081f 910003fd a9025bf5 aa0403f6 a90153f3 aa0603f5 a90363f7
[16575.786992] b12c  f9405cf3 54000181 f9400660 b4000a20 2a1503e2 aa1603e1 9400047d 52800000
[16575.787019] b14c  a94153f3 a9425bf5 a94363f7 a8c57bfd d65f03c0 71000c1f 54000061 f9400a60
[16575.787045] b16c  17fffff3 71001c1f 54000061 f9400e60 17ffffef 35000820 51000420 7100041f
[16575.787074]
               X10: 0xffffff80090ef81f:
[16575.787079] f81c  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[16575.787106] f83c  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[16575.787133] f85c  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[16575.787159] f87c  00000000 00000000 00000000 00000000 00000000 00000001 00000000 30303020
[16575.787185] f89c  372e3537 38313737 66205d35 20633938 372e3537 37303738 58205d34 203a3031
[16575.787212] f8bc  66667830 66666666 39303038 38666530 0a3a6631 33343830 63616661 70205d3e
[16575.787239] f8dc  74617473 34203a65 30303030 0a353431 20343931 2e0a3123 0a310a2e 30310a64
[16575.787267] f8fc  6a2e3030 6e72756f 63206c61 7572726f 64657470 20726f20 6c636e75 6c6e6165
[16575.787294] f91c  68732079 64207475 2c6e776f 6e657220 6e696d61 6e612067 65722064 63616c70
[16575.787325]
               X18: 0xffffff80890ef817:
[16575.787331] f814  ******** ******** ******** ******** ******** ******** ******** ********
[16575.787361] f834  ******** ******** ******** ******** ******** ******** ******** ********
[16575.787388] f854  ******** ******** ******** ******** ******** ******** ******** ********
[16575.787415] f874  ******** ******** ******** ******** ******** ******** ******** ********
[16575.787442] f894  ******** ******** ******** ******** ******** ******** ******** ********
[16575.787469] f8b4  ******** ******** ******** ******** ******** ******** ******** ********
[16575.787495] f8d4  ******** ******** ******** ******** ******** ******** ******** ********
[16575.787521] f8f4  ******** ******** ******** ******** ******** ******** ******** ********
[16575.787548] f914  ******** ******** ******** ******** ******** ******** ******** ********
[16575.787575]
               X19: 0xffffffc0f165afa8:
[16575.787581] afa8  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[16575.787608] afc8  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[16575.787634] afe8  00000000 00000000 00000000 00000000 00000000 00000000 f0cfef00 ffffffc0
[16575.787661] b008  f1b9fef0 ffffffc0 08577b9c ffffff80 08d4b585 ffffff80 000006a8 00000000
[16575.787687] b028  08da93cb ffffff80 f165a830 ffffffc0 f0f3f108 ffffffc0 00190019 dead4ead
[16575.787714] b048  ffffffff 00000000 ffffffff ffffffff 00000000 00000000 00000000 00000000
[16575.787741] b068  00000000 00000000 00000000 00000000 085852a0 ffffff80 f165b028 ffffffc0
[16575.787768] b088  00000004 ffffffff ffffffff 00000000 00000000 00000000 00000000 00000000
[16575.787796]
               X20: 0xffffffc0f0d8c5a8:
[16575.787801] c5a8  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[16575.787829] c5c8  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[16575.787856] c5e8  00000000 00000000 00000000 00000000 00000000 00000000 f0d06740 ffffffc0
[16575.787883] c608  f0d06400 ffffffc0 08577b9c ffffff80 08d4b585 ffffff80 00000160 00000000
[16575.787911] c628  00000000 00000000 f0d8c630 ffffffc0 f0d8c630 ffffffc0 00000000 00000000
[16575.787937] c648  00000000 00000000 08f91068 ffffff80 00000000 00000000 00000005 00000001
[16575.787964] c668  00000000 00000000 08ad6b28 ffffff80 f19f4bc8 ffffffc0 f19f4bc8 ffffffc0
[16575.787991] c688  0f400000 00000001 0f400000 00000000 f0d04700 ffffffc0 f0d69800 ffffffc0
[16575.788019]
               X21: 0xffffffc0f165afa8:
[16575.788025] afa8  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[16575.788052] afc8  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[16575.788078] afe8  00000000 00000000 00000000 00000000 00000000 00000000 f0cfef00 ffffffc0
[16575.788105] b008  f1b9fef0 ffffffc0 08577b9c ffffff80 08d4b585 ffffff80 000006a8 00000000
[16575.788132] b028  08da93cb ffffff80 f165a830 ffffffc0 f0f3f108 ffffffc0 00190019 dead4ead
[16575.788158] b048  ffffffff 00000000 ffffffff ffffffff 00000000 00000000 00000000 00000000
[16575.788185] b068  00000000 00000000 00000000 00000000 085852a0 ffffff80 f165b028 ffffffc0
[16575.788212] b088  00000004 ffffffff ffffffff 00000000 00000000 00000000 00000000 00000000
[16575.788240]
               X23: 0xffffffc0f0d8c5a8:
[16575.788246] c5a8  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[16575.788272] c5c8  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[16575.788299] c5e8  00000000 00000000 00000000 00000000 00000000 00000000 f0d06740 ffffffc0
[16575.788326] c608  f0d06400 ffffffc0 08577b9c ffffff80 08d4b585 ffffff80 00000160 00000000
[16575.788353] c628  00000000 00000000 f0d8c630 ffffffc0 f0d8c630 ffffffc0 00000000 00000000
[16575.788380] c648  00000000 00000000 08f91068 ffffff80 00000000 00000000 00000005 00000001
[16575.788407] c668  00000000 00000000 08ad6b28 ffffff80 f19f4bc8 ffffffc0 f19f4bc8 ffffffc0
[16575.788433] c688  0f400000 00000001 0f400000 00000000 f0d04700 ffffffc0 f0d69800 ffffffc0
[16575.788461]
               X24: 0xffffffc0f165b208:
[16575.788467] b208  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[16575.788494] b228  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[16575.788521] b248  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[16575.788547] b268  00000000 00000000 00000000 00000000 f0d8c400 ffffffc0 5c3977ba 00000f13
[16575.788574] b288  00000000 00000000 5fa95fa9 dead4ead ffffffff 00000000 ffffffff ffffffff
[16575.788601] b2a8  f165b2a8 ffffffc0 f165b2a8 ffffffc0 e37e0d80 ffffffc0 00000000 00000000
[16575.788628] b2c8  eec66e38 ffffffc0 ac0df838 ffffffc0 eec67238 ffffffc0 eec67238 ffffffc0
[16575.788655] b2e8  f165b2e8 ffffffc0 f165b2e8 ffffffc0 f0d04408 ffffffc0 ed7f1e88 ffffffc0
[16575.788682]
               X25: 0xffffffc0ed7f1e48:
[16575.788688] 1e48  00000000 00000000 080aeab8 ffffff80 00000000 00000000 00000000 00000000
[16575.788715] 1e68  00000000 00000000 00000000 00000000 00000000 00000000 00000001 00000000
[16575.788741] 1e88  f165b2f8 ffffffc0 ac236288 ffffffc0 eec66e28 ffffffc0 eb880a28 ffffffc0
[16575.788767] 1ea8  eec67228 ffffffc0 eec67228 ffffffc0 ed7f1eb8 ffffffc0 ed7f1eb8 ffffffc0
[16575.788794] 1ec8  00610061 dead4ead ffffffff 00000000 ffffffff ffffffff ed7f1ee0 ffffffc0
[16575.788821] 1ee8  ed7f1ee0 ffffffc0 00000c2d 00000000 00000780 00000008 ed7f1d80 ffffffc0
[16575.788848] 1f08  00000000 00000000 ed7f1f10 ffffffc0 ed7f1f10 ffffffc0 00000000 00000000
[16575.788876] 1f28  00000000 00000000 f9c00000 00000000 003fc000 00000000 00000011 0000000f
[16575.788904]
               X27: 0xffffff8008a61f80:
[16575.788910] 1f80  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[16575.788937] 1fa0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[16575.788964] 1fc0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[16575.788990] 1fe0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[16575.789016] 2000  081f0a10 ffffff80 081f13c8 ffffff80 081f19a4 ffffff80 081f19ec ffffff80
[16575.789043] 2020  081f1b48 ffffff80 081cfa80 ffffff80 081cfae4 ffffff80 081cfb48 ffffff80
[16575.789070] 2040  081cfbf4 ffffff80 081cfc44 ffffff80 081cfc94 ffffff80 081cfd18 ffffff80
[16575.789097] 2060  081cfd60 ffffff80 081cfda8 ffffff80 081cfe1c ffffff80 081cfe58 ffffff80
[16575.789125]
               X28: 0xffffffc0e37e0d00:
[16575.789130] 0d00  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[16575.789157] 0d20  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[16575.789184] 0d40  00000000 00000000 00000000 00000000 e0800000 20600000 42000840 00200000
[16575.789210] 0d60  80000082 90000000 10000100 00303440 00000000 00804040 84000000 0c010000
[16575.789236] 0d80  00000018 00000000 ffffffff ffffffff 00000000 00000000 00000000 00000000
[16575.789263] 0da0  ac0e8000 ffffffc0 00000003 00004040 008001f9 00000000 00000000 00000000
[16575.789289] 0dc0  00000001 00000002 00000003 00000000 00f85978 00000001 aba85e80 ffffffc0
[16575.789316] 0de0  00000002 00000001 00000078 00000078 00000078 00000000 08a68590 ffffff80
[16575.789344]
               X29: 0xffffffc0ac0ebca0:
[16575.789349] bca0  00000001 00000000 f0d8c628 ffffffc0 f165b288 ffffffc0 ed7f1ec8 ffffffc0
[16575.789376] bcc0  00000001 00000000 08a62000 ffffff80 e37e0d80 ffffffc0 ac0ebd20 ffffffc0
[16575.789402] bce0  0843afac ffffff80 ac0ebd20 ffffffc0 0843afb4 ffffff80 40000145 00000000
[16575.789429] bd00  00000000 00000000 00000000 00000000 00000000 00000080 08fce488 ffffff80
[16575.789455] bd20  ac0ebd70 ffffffc0 0843b7c8 ffffff80 ed7f1e80 ffffffc0 ffffff92 00000000
[16575.789482] bd40  f165b028 ffffffc0 00000001 00000000 edfcd000 00000040 ffffffff 00ffffff
[16575.789509] bd60  0000000a 00000000 00000002 00000000 ac0ebe00 ffffffc0 081bd158 ffffff80
[16575.789536] bd80  40086c04 00000000 7dffc600 0000007f abf6be00 ffffffc0 f19f4970 ffffffc0

[16575.789567] ---[ end trace b9f3ab2a84e403af ]---
[16575.789573] Call trace:
[16575.789581] Exception stack(0xffffffc0ac0ebb40 to 0xffffffc0ac0ebc70)
[16575.789589] bb40: ffffffc0f165b028 0000008000000000 ffffffc0ac0ebd20 ffffff800843afb4
[16575.789596] bb60: 0000000040000145 6674616c702b3d45 363666663a6d726f 766b722e30303030
[16575.789604] bb80: ffffffc000636564 ffffffc0ac0ebcc0 ffffffc0ac0ebc90 00000000ffffffd8
[16575.789611] bba0: 4554535953425553 6f6674616c703d4d 4349564544006d72 6674616c702b3d45
[16575.789618] bbc0: 363666663a6d726f 766b722e30303030 ffffffc0ac0ebc70 ffffff800856fda8
[16575.789626] bbe0: ffffffc0f1b9fc10 0000000000000006 ffffffc0eec67200 0000000000000006
[16575.789633] bc00: 0000000000000007 0000000000000007 0000000000000001 ffffffc0f6ef8b38
[16575.789640] bc20: 0000000000000037 ffffff8008fce488 ffffff800835b10c 0000000005f5e0ff
[16575.789647] bc40: ffffff80090ef89f 00000000fffffffe 0000000000000030 000000000000000a
[16575.789653] bc60: 00000000000bfb6e 0000000000000000
[16575.789662] [<ffffff800843afb4>] vpu_reset+0x38/0x218
[16575.789669] [<ffffff800843b7c8>] vpu_service_ioctl+0x634/0x7d0
[16575.789679] [<ffffff80081bd158>] do_vfs_ioctl+0x9c/0x548
[16575.789686] [<ffffff80081bd654>] SyS_ioctl+0x50/0x80
[16575.789696] [<ffffff8008082f70>] el0_svc_naked+0x24/0x28
[16575.789879] rk-vcodec ff660000.rkvdec: reset done
[16575.789960] rk-vcodec ff660000.rkvdec: reset done
[16577.833826] rk_vcodec: vpu_service_ioctl:2088: error: pid 3107 wait 0 task done timeout
[16577.841849] rk_vcodec: vpu_service_ioctl:2088: error: pid 3117 wait 0 task done timeout
[16577.867498] rk-vcodec ff660000.rkvdec: resetting...
[16577.867565] rk-vcodec ff660000.rkvdec: reset done
[16577.867625] rk-vcodec ff660000.rkvdec: reset done
[16588.783554] rk_vcodec: vpu_service_ioctl:2088: error: pid 3107 wait 0 task done timeout
[16601.288316] rk_vcodec: vpu_service_ioctl:2088: error: pid 3117 wait 0 task done timeout

mpp使用最新的代码



作者: jefferyzhang    时间: 2022-10-17 15:30
驱动挂了,你用的什么板子,什么固件
作者: czcl    时间: 2022-10-17 15:31
jefferyzhang 发表于 2022-10-17 15:30
驱动挂了,你用的什么板子,什么固件

ubuntu18.04的系统
板子是rk3399Pro的
作者: jefferyzhang    时间: 2022-10-17 16:02
czcl 发表于 2022-10-17 15:31
ubuntu18.04的系统
板子是rk3399Pro的

那你要找板商去debug, 他们驱动没搞好。






欢迎光临 Toybrick (https://t.rock-chips.com/) Powered by Discuz! X3.3