请教wowo 内核出现死锁需要怎么调?谢谢
本文是原「蜗窝讨论区」的历史存档(2016-11-30),来自版块「Linux kernel技术问答」,共 6 帖。讨论区已停止服务,此处仅供查阅。
Dear:
按电源键休眠的时候会出现内核死锁的情况,估计是cpu down的时候有些地方没做好,看了一些smp跟进程的知识但还是解决不了,故请教下wowo等各位,附部分log。
先谢谢了 ! //=======================================================================
[== Undefined ==]
<6>[ 40.368469] [2:PhotonicModulat: 674] psci: CPU7 killed.
<5>[ 40.374563] [2:PhotonicModulat: 674] CPU6: shutdown
<6>[ 40.374685] [2:PhotonicModulat: 674] psci: CPU6 killed.
<5>[ 40.380205] [2:PhotonicModulat: 674] CPU5: shutdown
<6>[ 40.380303] [2:PhotonicModulat: 674] psci: CPU5 killed.
<5>[ 40.386471] [2:PhotonicModulat: 674] CPU4: shutdown
<4>[ 60.257475] I[1: swapper/1: 0] ------------[ cut here ]------------
<4>[ 60.257583] I[1: swapper/1: 0] WARNING: at kernel/watchdog.c:259 watchdog_timer_fn+0xf8/0x258(
<4>[ 60.257614] I[1: swapper/1: 0] Watchdog detected hard LOCKUP on cpu 2
<4>[ 60.257644] I[1: swapper/1: 0] Modules linked in: pvrsrvkm(O)
<4>[ 60.257714] I[1: swapper/1: 0] CPU: 1 PID: 0 Comm: swapper/1 Tainted: G O 3.10.0 #410
<4>[ 60.257793] I[1: swapper/1: 0] [<ffffffc000088468>] ump_backtrace+0x0/0x10c
<4>[ 60.257873] I[1: swapper/1: 0] [<ffffffc0008d3f54>] dump_stack+0x1c/0x28
<4>[ 60.257945] I[1: swapper/1: 0] [<ffffffc0000a6924>] warn_slowpath_fmt+0x4c/0x58
<4>[ 60.258018] I[1: swapper/1: 0] [<ffffffc0000caf64>] __run_hrtimer+0x12c/0x238
<4>[ 60.258088] I[1: swapper/1: 0] [<ffffffc000654008>] arch_timer_handler_virt+0x28/0x38
<4>[ 60.258160] I[1: swapper/1: 0] [<ffffffc00010cf00>] generic_handle_irq+0x28/0x3c
<4>[ 60.258229] I[1: swapper/1: 0] [<ffffffc0000813b0>] gic_handle_irq+0x50/0x84
<4>[ 60.258305] I[1: swapper/1: 0] 7da0: 3fd1bee8 ffffffc0 00000000 00000000 3b337ee0 ffffffc0 00638868 ffffffc0
<4>[ 60.258376] I[1: swapper/1: 0] 7de0: 0000003b 00000000 3434a37e 00000000 29aaaaab 00000000 00000018 00000000
<4>[ 60.258455] I[1: swapper/1: 0] 7e20: 00000078 00000000 df4798e0 00000000 f750b1d9 00000000 00000000 00000000
<4>[ 60.258517] I[1: swapper/1: 0] 7e60: 00000000 00000000 fc74ccb4 0000000d 00000000 00000000 00ea1000 ffffffc0
<4>[ 60.258589] I[1: swapper/1: 0] 7ea0: 00200000 00000040 3b337ee0 ffffffc0 00638864 ffffffc0 3b337ee0 ffffffc0
<4>[ 60.258659] I[1: swapper/1: 0] [<ffffffc000638a30>] cpuidle_idle_call+0x160/0x228
<4>[ 60.258731] I[1: swapper/1: 0] [<ffffffc0000e9fac>] cpu_startup_entry+0x1e8/0x240
<4>[ 60.258799] I[1: swapper/1: 0] ---[ end trace cfd25baee3abf284 ]---
<3>[ 61.064363] I[0: AudioOut_2: 580] INFO: rcu_preempt detected stalls on CPUs/tasks: { 2} (detected by 0, t=2102 jiffies, g=333, c=332, q=1572)
<6>[ 61.064470] I[0: AudioOut_2: 580] Task dump for CPU 2:
<6>[ 61.064507] I[0: AudioOut_2: 580] PhotonicModulat R running task 0 674 209 0x00000002
<0>[ 61.064545] I[0: AudioOut_2: 580] Call trace:
<4>[ 61.064610] I[0: AudioOut_2: 580] [<ffffffc0000856c0>] __switch_to+0x80/0x8c
<3>[ 61.064665] I[0: AudioOut_2: 580] INFO: rcu_sched detected stalls on CPUs/tasks: { 2} (detected by 0, t=2102 jiffies, g=18446744073709551320, c=18446744073709551319, q=4)
<6>[ 61.064748] I[0: AudioOut_2: 580] PhotonicModulat R running task 0 674 209 0x00000002
<4>[ 61.064807] I[0: AudioOut_2: 580] [<ffffffc0000856c0>] __switch_to+0x80/0x8c
<12>[ 64.181463] [1: healthd: 191] healthd: battery none chg=a 2013-01-21 08:51:06.191798946 UTC
<0>[ 68.109814] I[0: AudioOut_2: 580] BUG: soft lockup - CPU#0 stuck for 22s! [AudioOut_2:580]
<4>[ 68.109871] I[0: AudioOut_2: 580] Modules linked in: pvrsrvkm(O)
<4>[ 68.109921] I[0: AudioOut_2: 580]
<4>[ 68.109970] I[0: AudioOut_2: 580] CPU: 0 PID: 580 Comm: AudioOut_2 Tainted: G W O 3.10.0 #410
<4>[ 68.110016] I[0: AudioOut_2: 580] task: ffffffc03ac3a700 ti: ffffffc020c04000 task.ti: ffffffc020c04000
<4>[ 68.110074] I[0: AudioOut_2: 580] PC is at smp_call_function_many+0x28c/0x2b0
<4>[ 68.110109] I[0: AudioOut_2: 580] LR is at smp_call_function_many+0x268/0x2b0
<4>[ 68.110147] I[0: AudioOut_2: 580] pc : [<ffffffc0000f8160>] lr : [<ffffffc0000f813c>] pstate: 80000145
<4>[ 68.110170] I[0: AudioOut_2: 580] sp : ffffffc020c07c00
<4>[ 68.110225] I[0: AudioOut_2: 580] x27: ffffffc000f5c000 x26: ffffffc000cfe8c8
<4>[ 68.110277] I[0: AudioOut_2: 580] x23: ffffffc0006384dc x22: ffffffc03fd11708
<4>[ 68.110325] I[0: AudioOut_2: 580] x19: ffffffc03fd11700 x18: 0000000000000000
<4>[ 68.110373] I[0: AudioOut_2: 580] x15: 0000000000000000 x14: 00000000f72311f9
<4>[ 68.110428] I[0: AudioOut_2: 580] x11: 000000000000b815 x10: 0000000000000000
<4>[ 68.110476] I[0: AudioOut_2: 580] x7 : ffffffc03fd35740 x6 : ffffffc03fd11708
<4>[ 68.110531] I[0: AudioOut_2: 580] x3 : ffffffc000f5c528 x2 : 0000000000000002
<4>[ 68.110587] I[0: AudioOut_2: 580]
<4>[ 68.110587] I[0: AudioOut_2: 580] PC: 0xffffffc0000f80e0:
<4>[ 68.110685] I[0: AudioOut_2: 580] 8100 aa0603e0 941f8d9e f9403fa2 17ffffd5 91004260 97fe5a23 12800002 34000279
<4>[ 68.110774] I[0: AudioOut_2: 580] 8140 b94002a1 6b01001f 5400010a 9114a283 f9400261 f860d860 8b000021 79404020
<4>[ 68.110860] I[0: AudioOut_2: 580] 8180 d65f03c0 a9bf7bfd aa0003e6 aa0103e5 910003e0 910003fd 9272c404 b9405083
<4>[ 68.110946] I[0: AudioOut_2: 580] 81c0 97ffff45 910003e0 9272c400 b9405001 51000421 b9005001 f9400000 36080040
<4>[ 68.111039] I[0: AudioOut_2: 580] 80bc 91004086 f9000b97 aa0603e0 f9000f98 f90043a4 f90047a6 941f8d1d f94043a4
<4>[ 68.111121] I[0: AudioOut_2: 580] 80fc f90000fc aa0603e0 941f8d9e f9403fa2 17ffffd5 91004260 97fe5a23 12800002
<4>[ 68.111207] I[0: AudioOut_2: 580] 813c 2a0003e2 b94002a1 6b01001f 5400010a 9114a283 f9400261 f860d860 8b000021
<4>[ 68.111289] I[0: AudioOut_2: 580] 817c a8c97bfd d65f03c0 a9bf7bfd aa0003e6 aa0103e5 910003e0 910003fd 9272c404
<4>[ 68.111376] I[0: AudioOut_2: 580]
<4>[ 68.111376] I[0: AudioOut_2: 580] SP: 0xffffffc020c07b80:
<4>[ 68.111462] I[0: AudioOut_2: 580] 7ba0 00000000 00000000 00000001 00000000 00cfe8c8 ffffffc0 00f5c000 ffffffc0
<4>[ 68.111542] I[0: AudioOut_2: 580] 7be0 000f8160 ffffffc0 80000145 00000000 20c07c00 ffffffc0 000f8118 ffffffc0
<4>[ 68.111625] I[0: AudioOut_2: 580] 7c20 00000000 00000000 00004406 00000000 77359400 00000000 00000140 00000000
<4>[ 68.111710] I[0: AudioOut_2: 580] 7c60 00000008 00000000 00cd5fd0 ffffffc0 3f062000 00000000 00000003 00000000
<4>[ 68.111799] I[0: AudioOut_2: 580] bf50 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
<4>[ 68.111886] I[0: AudioOut_2: 580] bf90 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
<4>[ 68.111969] I[0: AudioOut_2: 580] bfd0 3fd29740 ffffffc0 3fd29740 ffffffc0 006384dc ffffffc0 00000000 00000000
<4>[ 68.112045] I[0: AudioOut_2: 580] c010 00000000 00000000 49a11880 00000009 d5555585 00000014 000003e8 00000000
<4>[ 68.112130] I[0: AudioOut_2: 580]
<4>[ 68.112130] I[0: AudioOut_2: 580] X3: 0xffffffc000f5c4a8:
<4>[ 68.112223] I[0: AudioOut_2: 580] c4c8 1592dc40 ffffffc0 083b083b 0000c000 0000000f 00000000 3fd0ce00 ffffffc0
<4>[ 68.112308] I[0: AudioOut_2: 580] c508 00000048 00000000 3fd6d040 ffffffc0 3fd6d000 ffffffc0 00001000 00000000
<4>[ 68.112635] I[0: AudioOut_2: 580] 16c8 00000037 00000000 00000000 00000000 5c46ca7a 00000009 00000a49 00000000
<4>[ 68.112679] I[0: AudioOut_2: 580] 16e8 00000000 00000000 00000000 00000000 00000000 00000000 00cd5fd0 ffffffc0
<4>[ 68.112723] I[0: AudioOut_2: 580] 1708 0000000e 00000000 0000000e 00000000 00000000 00000000 00000000 00000000
<4>[ 68.112763] I[0: AudioOut_2: 580] 1728 00000000 00000000 00000000 00000000 00000000 00000000 3fd11740 ffffffc0
<4>[ 68.112804] I[0: AudioOut_2: 580] 1748 3fd11740 ffffffc0 00580058 00000000 00000000 00000000 00000000 00000000
<4>[ 68.112844] I[0: AudioOut_2: 580] 1768 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
<4>[ 68.112883] I[0: AudioOut_2: 580]
<4>[ 68.112883] I[0: AudioOut_2: 580] X7: 0xffffffc03fd356c0:
<4>[ 68.112926] I[0: AudioOut_2: 580] 56c0 00000000 00000000 00000000 00000000 00000000 00000000 54427236 00000009
<4>[ 68.112966] I[0: AudioOut_2: 580] 56e0 0000005f 00000000 00000000 00000000 00000000 00000000 00000000 00000000
<4>[ 68.113006] I[0: AudioOut_2: 580] 5700 00cd6a28 ffffffc0 000000f7 00000000 000000f7 00000000 00000000 00000000
<4>[ 68.113054] I[0: AudioOut_2: 580] 5720 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
<4>[ 68.113098] I[0: AudioOut_2: 580] 5740 3fd35740 ffffffc0 3fd35740 ffffffc0 00660066 00000000 00000000 00000000
<4>[ 68.113138] I[0: AudioOut_2: 580] 5760 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
<4>[ 68.113179] I[0: AudioOut_2: 580] 5780 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
<4>[ 68.113222] I[0: AudioOut_2: 580] 57a0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
<4>[ 68.113264] I[0: AudioOut_2: 580]
<4>[ 68.113264] I[0: AudioOut_2: 580] X9: 0xffffffc020c07780:
<4>[ 68.113307] I[0: AudioOut_2: 580] 7780 00b6178b ffffffc0 00000000 00000080 ffffff80 0000003f ffffff00 0000003f
<4>[ 68.113345] I[0: AudioOut_2: 580] 77a0 00ccff38 ffffffc0 3fd0dc98 ffffffc0 3fd0dc58 ffffffc0 00000002 00000000
<4>[ 68.113383] I[0: AudioOut_2: 580] 77c0 00000000 00000000 0000ffff 00000008 00000000 00000000 30303020 30303020
<4>[ 68.113423] I[0: AudioOut_2: 580] 77e0 20c07830 ffffffc0 0008549c ffffffc0 20c07ae0 ffffffc0 00ccffa9 ffffffc0
<4>[ 68.113468] I[0: AudioOut_2: 580] 7800 00f38000 ffffffc0 20c07ae0 ffffffc0 00000029 00000000 3fd0df50 ffffffc0
<4>[ 68.113509] I[0: AudioOut_2: 580] 7820 0002840e ffffff80 30003958 31373839 20c07850 ffffffc0 0010cb60 ffffffc0
<4>[ 68.113550] I[0: AudioOut_2: 580] 7840 00ccf000 ffffffc0 00cfeab0 ffffffc0 20c078c0 ffffffc0 000caf68 ffffffc0
<4>[ 68.113591] I[0: AudioOut_2: 580] 7860 3fd0df50 ffffffc0 d8b138b9 0000000f 3fd0dbe0 ffffffc0 3fd0dba0 ffffffc0
<4>[ 68.113638] I[0: AudioOut_2: 580]
<4>[ 68.113638] I[0: AudioOut_2: 580] X16: 0xffffffc000176674:
<4>[ 68.113684] I[0: AudioOut_2: 580] 6674 940067e9 aa1603e0 94002b0e 93407e80 a94153f3 a9425bf5 a94363f7 a8c67bfd
<4>[ 68.113733] I[0: AudioOut_2: 580] 6694 d65f03c0 a9bf7bfd aa0003e4 aa0203e3 910003fd 320f0022 12800c60 aa0403e1
<4>[ 68.113770] I[0: AudioOut_2: 580] 66b4 97ffff89 a8c17bfd d65f03c0 a9bf7bfd 320f0042 910003fd 97ffff83 a8c17bfd
<4>[ 68.113816] I[0: AudioOut_2: 580] 66d4 d65f03c0 a9bf7bfd aa0103e2 52804821 910003fd 97ffffec a8c17bfd d65f03c0
<4>[ 68.113857] I[0: AudioOut_2: 580] 66f4 a9bf7bfd aa0003e1 910003e0 910003fd 9272c400 f9400800 f943d400 940067ce
<4>[ 68.113902] I[0: AudioOut_2: 580] 6714 11080401 7100043f 540000c9 121e7801 3108103f 12800061 1a811000 14000002
<4>[ 68.113943] I[0: AudioOut_2: 580] 6734 12800060 93407c00 a8c17bfd d65f03c0 a9bf7bfd 52800340 910003fd 97fcec05
<4>[ 68.113987] I[0: AudioOut_2: 580] 6754 53001c01 92800000 34000061 9407eb64 d2800000 a8c17bfd d65f03c0 f9402400
<4>[ 68.114032] I[0: AudioOut_2: 580]
<4>[ 68.114032] I[0: AudioOut_2: 580] X19: 0xffffffc03fd11680:
<4>[ 68.114077] I[0: AudioOut_2: 580] 1680 00000000 00000000 000df971 00000000 ffffa636 00000000 fffffe82 ffffffff
<4>[ 68.114118] I[0: AudioOut_2: 580] 16a0 00000000 00000000 00000a49 0000b926 e2a19611 00000009 00000000 00000000
<4>[ 68.114158] I[0: AudioOut_2: 580] 16c0 00000000 00000000 00000037 00000000 00000000 00000000 5c46ca7a 00000009
<4>[ 68.114199] I[0: AudioOut_2: 580] 16e0 00000a49 00000000 00000000 00000000 00000000 00000000 00000000 00000000
<4>[ 68.114243] I[0: AudioOut_2: 580] 1700 00cd5fd0 ffffffc0 0000000e 00000000 0000000e 00000000 00000000 00000000
<4>[ 68.114283] I[0: AudioOut_2: 580] 1720 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
<4>[ 68.114320] I[0: AudioOut_2: 580] 1740 3fd11740 ffffffc0 3fd11740 ffffffc0 00580058 00000000 00000000 00000000
<4>[ 68.114361] I[0: AudioOut_2: 580] 1760 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
<4>[ 68.114403] I[0: AudioOut_2: 580]
<4>[ 68.114403] I[0: AudioOut_2: 580] X20: 0xffffffc000f5bf80:
<4>[ 68.114448] I[0: AudioOut_2: 580] bf80 00e954a0 ffffffc0 00e95528 ffffffc0 00e955b0 ffffffc0 00e95638 ffffffc0
<4>[ 68.114493] I[0: AudioOut_2: 580] bfa0 00e956c0 ffffffc0 00e95748 ffffffc0 00e957d0 ffffffc0 00e95858 ffffffc0
<4>[ 68.114534] I[0: AudioOut_2: 580] bfc0 00e958e0 ffffffc0 00e95968 ffffffc0 00e959f0 ffffffc0 00e95a78 ffffffc0
<4>[ 68.114579] I[0: AudioOut_2: 580] bfe0 00e95b00 ffffffc0 00e95b88 ffffffc0 00e95c10 ffffffc0 00e95c98 ffffffc0
<4>[ 68.114624] I[0: AudioOut_2: 580] c000 00e95d20 ffffffc0 00e95da8 ffffffc0 00e95e30 ffffffc0 00000000 00000000
<4>[ 68.114671] I[0: AudioOut_2: 580] c020 00000000 00000000 00000000 00000000 00000000 00000000 00003600 ffffffc0
<4>[ 68.114712] I[0: AudioOut_2: 580] c040 00001e40 ffffffc0 00000000 00000000 00000000 00000000 00000000 00000000
<4>[ 68.114753] I[0: AudioOut_2: 580] c060 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
<4>[ 68.114792] I[0: AudioOut_2: 580]
<4>[ 68.114792] I[0: AudioOut_2: 580] X21: 0xffffffc000cfe848:
<4>[ 68.114834] I[0: AudioOut_2: 580] e848 00000000 00000000 000f24e0 ffffffc0 00000000 00000000 00000000 00000000
<4>[ 68.114878] I[0: AudioOut_2: 580] e868 00000001 00000000 ffffffff ffffffff 00000000 00000000 00000000 00000000
<4>[ 68.114922] I[0: AudioOut_2: 580] e888 ffffffff 00000000 008e33b8 ffffffc0 3fd14098 ffffffc0 3fd20098 ffffffc0
<4>[ 68.114963] I[0: AudioOut_2: 580] e8a8 00000000 00000000 00000000 00000000 00000000 00000000 00000001 00000400
<4>[ 68.115003] I[0: AudioOut_2: 580] e8c8 00000008 00000008 000f78ec ffffffc0 00125f44 ffffffc0 00125f44 ffffffc0
<4>[ 68.115048] I[0: AudioOut_2: 580] e8e8 00125f44 ffffffc0 000f78a0 ffffffc0 00125f44 ffffffc0 00125f44 ffffffc0
<4>[ 68.115096] I[0: AudioOut_2: 580] e908 00125f44 ffffffc0 00cfd5b8 ffffffc0 00cfe998 ffffffc0 00e97c28 ffffffc0
<4>[ 68.115137] I[0: AudioOut_2: 580] e928 00b6c3ab ffffffc0 00000000 00000000 00d0cda8 ffffffc0 00cfe9c8 ffffffc0
<4>[ 68.115183] I[0: AudioOut_2: 580]
<4>[ 68.115183] I[0: AudioOut_2: 580] X22: 0xffffffc03fd11688:
<4>[ 68.115226] I[0: AudioOut_2: 580] 1688 000df971 00000000 ffffa636 00000000 fffffe82 ffffffff 00000000 00000000
<4>[ 68.115264] I[0: AudioOut_2: 580] 16a8 00000a49 0000b926 e2a19611 00000009 00000000 00000000 00000000 00000000
<4>[ 68.115304] I[0: AudioOut_2: 580] 16c8 00000037 00000000 00000000 00000000 5c46ca7a 00000009 00000a49 00000000
<4>[ 68.115344] I[0: AudioOut_2: 580] 16e8 00000000 00000000 00000000 00000000 00000000 00000000 00cd5fd0 ffffffc0
<4>[ 68.115382] I[0: AudioOut_2: 580] 1708 0000000e 00000000 0000000e 00000000 00000000 00000000 00000000 00000000
<3>[ 123.105561] I[0: AudioOut_2: 580] INFO: rcu_preempt detected stalls on CPUs/tasks: { 2} (detected by 0, t=8407 jiffies, g=333, c=332, q=4787)
<6>[ 123.105675] I[0: AudioOut_2: 580] Task dump for CPU 2:
<6>[ 123.105706] I[0: AudioOut_2: 580] PhotonicModulat R running task 0 674 209 0x00000002
<0>[ 123.105744] I[0: AudioOut_2: 580] Call trace:
<4>[ 123.105805] I[0: AudioOut_2: 580] [<ffffffc0000856c0>] __switch_to+0x80/0x8c
<3>[ 123.105864] I[0: AudioOut_2: 580] INFO: rcu_sched detected stalls on CPUs/tasks: { 2} (detected by 0, t=8407 jiffies, g=18446744073709551320, c=18446744073709551319, q=4)
<6>[ 123.105913] I[0: AudioOut_2: 580] Task dump for CPU 2:
<6>[ 123.105943] I[0: AudioOut_2: 580] PhotonicModulat R running task 0 674 209 0x00000002
<0>[ 123.105971] I[0: AudioOut_2: 580] Call trace:
<4>[ 123.106003] I[0: AudioOut_2: 580] [<ffffffc0000856c0>] __switch_to+0x80/0x8c
<12>[ 123.221284] [1: healthd: 191] healthd: battery none chg=a 2013-01-21 08:52:06.191643891 UTC
<12>[ 182.261329] [1: healthd: 191] healthd: battery none chg=a 2013-01-21 08:53:06.191686003 UTC
<3>[ 185.146773] I[1: swapper/1: 0] INFO: rcu_preempt detected stalls on CPUs/tasks:
<3>[ 185.146848] I[0: AudioOut_2: 580] INFO: rcu_sched detected stalls on CPUs/tasks: { 2
<4>[ 185.146862] I[1: swapper/1: 0] { 2}
<4>[ 185.146899] I[1: swapper/1: 0] } (detected by 1, t=14712 jiffies, g=18446744073709551320, c=18446744073709551319, q=4)
<6>[ 185.146950] I[1: swapper/1: 0] Task dump for CPU 2:
<6>[ 185.146979] I[1: swapper/1: 0] PhotonicModulat R running task 0 674 209 0x00000002
<0>[ 185.147030] I[1: swapper/1: 0] Call trace:
<4>[ 185.147045] I[0: AudioOut_2: 580] (detected by 0, t=14712 jiffies, g=333, c=332, q=8294)
<6>[ 185.147071] I[0: AudioOut_2: 580] Task dump for CPU 2:
<6>[ 185.147115] I[0: AudioOut_2: 580] PhotonicModulat R running task 0 674 209 0x00000002
<4>[ 185.147179] I[1: swapper/1: 0] [<ffffffc0000856c0>] __switch_to+0x80/0x8c
<0>[ 185.147206] I[0: AudioOut_2: 580] Call trace:
<4>[ 185.147239] I[0: AudioOut_2: 580] [<ffffffc0000856c0>] __switch_to+0x80/0x8c
<12>[ 241.301311] [1: healthd: 191] healthd: battery none chg=a 2013-01-21 08:54:06.191676199 UTC
<3>[ 247.187959] I[0: AudioOut_2: 580] INFO: rcu_preempt detected stalls on CPUs/tasks: { 2} (detected by 0, t=21017 jiffies, g=333, c=332, q=16780)
<6>[ 247.188059] I[0: AudioOut_2: 580] Task dump for CPU 2:
<6>[ 247.188093] I[0: AudioOut_2: 580] PhotonicModulat R running task 0 674 209 0x00000002
<0>[ 247.188126] I[0: AudioOut_2: 580] Call trace:
<4>[ 247.188187] I[0: AudioOut_2: 580] [<ffffffc0000856c0>] __switch_to+0x80/0x8c
<3>[ 247.188236] I[0: AudioOut_2: 580] INFO: rcu_sched detected stalls on CPUs/tasks: { 2} (detected by 0, t=21017 jiffies, g=18446744073709551320, c=18446744073709551319, q=4)
<6>[ 247.188283] I[0: AudioOut_2: 580] Task dump for CPU 2:
<6>[ 247.188305] I[0: AudioOut_2: 580] PhotonicModulat R running task 0 674 209 0x00000002
<0>[ 247.188331] I[0: AudioOut_2: 580] Call trace:
<4>[ 247.188360] I[0: AudioOut_2: 580] [<ffffffc0000856c0>] __switch_to+0x80/0x8c
<12>[ 300.341328] [1: healthd: 191] healthd: battery none chg=a 2013-01-21 08:55:06.191691769 UTC
//=======================================================================
【抛砖引玉】从log来看是和AudioOut_2有关,看下和这函数相关的spinlock、互斥锁之类是否成对出现。其他更方便的方法,期待大牛们解答。 <4>[ 68.109970] I[0: AudioOut_2: 580] CPU: 0 PID: 580 Comm: AudioOut_2 Tainted: G W O 3.10.0 #410
谢谢关注。
在将dts里 ddr的频率固定为一个就不会出现这个问题,估计是休眠的时候需要发那个ipi中断调频之类的导致了死锁。个人觉得哈。
你这个log里面怎么又那么多死锁啊?是否都是这个造成的?: “Watchdog detected hard LOCKUP on cpu 2”
可以先尝试在命令行参数里面加一句: nmi_watchdog=panic 当出现hard LOCKUP的时候,直接让kernel停下来,先重点查一下这个原因。
wowo 写道: 你这个log里面怎么又那么多死锁啊?是否都是这个造成的?: “Watchdog detected hard LOCKUP on cpu 2”
可以先尝试在命令行参数里面加一句: nmi_watchdog=panic 当出现hard LOCKUP的时候,直接让kernel停下来,先重点查一下这个原因。
加了这句后出现停在这里了,自己还在看看,wowo大神有什么建议指点下
谢谢哈。
<6>[ 155.272507] [1:PhotonicModulat: 693] psci: CPU7 killed.
<5>[ 155.279634] [1:PhotonicModulat: 693] CPU6: shutdown
<6>[ 155.279734] [1:PhotonicModulat: 693] psci: CPU6 killed.
<5>[ 155.285830] [1:PhotonicModulat: 693] CPU5: shutdown
<6>[ 155.285919] [1:PhotonicModulat: 693] psci: CPU5 killed.
<5>[ 155.290839] [1:PhotonicModulat: 693] CPU4: shutdown
<4>[ 175.978640] I[3: swapper/3: 0] [<ffffffc00008a0e8>] cpu_psci_cpu_die+0x1c/0x3c
<4>[ 175.978672] I[3: swapper/3: 0] [<ffffffc00008e96c>] cpu_die+0x44/0x78
<4>[ 175.978701] I[3: swapper/3: 0] [<ffffffc0000851f8>] arch_cpu_idle_dead+0x8/0x14
<4>[ 175.978742] I[3: swapper/3: 0] [<ffffffc0000e9e4c>] cpu_startup_entry+0x88/0x240
<4>[ 175.978786] I[3: swapper/3: 0] [<ffffffc0008cf40c>] secondary_start_kernel+0x124/0x134
shumanzhou 写道: 谢谢关注。
在将dts里 ddr的频率固定为一个就不会出现这个问题,估计是休眠的时候需要发那个ipi中断调频之类的导致了死锁。个人觉得哈。
不是已经快找到原因了吗,因为ddr的变频,休眠时,发出IPI中断,让DDR变频,在这个地方估计死锁现象,顺着这个往下面找呗。
