AnsweredAssumed Answered

Kernel Panic when we are stopping the camera.

Question asked by Hyun-mo Yang on Jan 19, 2017
Latest reply on Jan 22, 2017 by Hyun-mo Yang

When the camera is starting, we started the kernel timer for 30 seconds. After 30 seconds, i call the function , int prpvf_stop(void *private),  after calling the function, there is kernel panic as below,

 

[ 33.725119] BUG: scheduling while atomic: swapper/0/0x00000104
[ 33.730958] Modules linked in:
[ 33.734044]
[ 33.735539] Pid: 0, comm: swapper
[ 33.739994] CPU: 0 Not tainted (2.6.28.10-arm1 #3882)
[ 33.745421] pc : [<c001fe1c>] lr : [<c0027000>] psr: 80000013
[ 33.745433] sp : c01e3f90 ip : c01e3f80 fp : c01e3f9c
[ 33.756940] r10: 8001aff0 r9 : 4117b363 r8 : 8001b024
[ 33.762194] r7 : c01e5f58 r6 : c001cf0c r5 : c01e2000 r4 : c001fdd8
[ 33.768737] r3 : f8780000 r2 : 00000001 r1 : 00000000 r0 : 00000001
[ 33.775287] Flags: Nzcv IRQs on FIQs on Mode SVC_32 ISA ARM Segment kernel
[ 33.782620] Control: 00c5387d Table: 878e0008 DAC: 00000017
[ 33.788377] Function entered at [<c001fd1c>] from [<c00386d0>]
[ 33.794229] r5:c01e52f0 r4:c01e3f48
[ 33.797833] Function entered at [<c0038684>] from [<c0188d24>]
[ 33.803684] r5:c01e52f0 r4:ffff97ff
[ 33.807288] Function entered at [<c0188cb0>] from [<c0189620>]
[ 33.813146] Function entered at [<c0189590>] from [<c0189670>]
[ 33.818991] r7:00000010 r6:0fffff0f r5:00008000 r4:00000004
[ 33.824716] Function entered at [<c0189648>] from [<c0047854>]
[ 33.830557] Function entered at [<c0047838>] from [<c017e014>]
[ 33.836410] Function entered at [<c017de3c>] from [<c0178520>]
[ 33.842262] Function entered at [<c01784c4>] from [<c00474cc>]
[ 33.848102] r7:c01784c4 r6:c01e2000 r5:00000103 r4:c0206bc0
[ 33.853826] Function entered at [<c004734c>] from [<c0042520>]
[ 33.859668] Function entered at [<c00424bc>] from [<c0042600>]
[ 33.865524] Function entered at [<c00425b4>] from [<c001e068>]
[ 33.871383] Function entered at [<c001e000>] from [<c001ea48>]
[ 33.877226] Exception stack(0xc01e3f48 to 0xc01e3f90)
[ 33.882293] 3f40: 00000001 00000000 00000001 f8780000 c001fdd8 c01e2000
[ 33.890661] 3f60: c001cf0c c01e5f58 8001b024 4117b363 8001aff0 c01e3f9c c01e3f80 c01e3f90
[ 33.899043] 3f80: c0027000 c001fe1c 80000013 ffffffff
[ 33.907429] r5:f8900000 r4:ffffffff
[ 33.911032] Function entered at [<c001fdd8>] from [<c001fda4>]
[ 33.916890] Function entered at [<c001fd6c>] from [<c0188954>]
[ 33.922742] r5:c01ff970 r4:c01e2000
[ 33.926346] Function entered at [<c01888e0>] from [<c000897c>]
[ 33.932197] r5:c01ff970 r4:c020955c
[ 33.935800] Function entered at [<c0008708>] from [<80008034>]
[ 33.941652] r5:c01ffea4 r4:00c5387d
[ 33.945255] bad: scheduling from the idle thread!
[ 33.949963] Backtrace:
[ 33.952436] Function entered at [<c002257c>] from [<c0188b08>]
[ 33.958276] r7:00000002 r6:c01e52f0 r5:c01e52f0 r4:c0201980
[ 33.964005] Function entered at [<c0188af0>] from [<c0038bb8>]
[ 33.969851] Function entered at [<c0038b74>] from [<c0037734>]
[ 33.975703] Function entered at [<c00376b8>] from [<c00377f8>]
[ 33.981554] r7:00000002 r6:c01e2000 r5:c01e52f0 r4:c0201980
[ 33.987267] Function entered at [<c00377c0>] from [<c0188dc0>]
[ 33.993120] r5:c01e52f0 r4:ffff97ff
[ 33.996723] Function entered at [<c0188cb0>] from [<c0189620>]
[ 34.002575] Function entered at [<c0189590>] from [<c0189670>]
[ 34.008414] r7:00000010 r6:0fffff0f r5:00008000 r4:00000004
[ 34.014141] Function entered at [<c0189648>] from [<c0047854>]
[ 34.019987] Function entered at [<c0047838>] from [<c017e014>]
[ 34.025839] Function entered at [<c017de3c>] from [<c0178520>]
[ 34.031691] Function entered at [<c01784c4>] from [<c00474cc>]
[ 34.037530] r7:c01784c4 r6:c01e2000 r5:00000103 r4:c0206bc0
[ 34.043254] Function entered at [<c004734c>] from [<c0042520>]
[ 34.049094] Function entered at [<c00424bc>] from [<c0042600>]
[ 34.054945] Function entered at [<c00425b4>] from [<c001e068>]
[ 34.060786] Function entered at [<c001e000>] from [<c001ea48>]
[ 34.066642] Exception stack(0xc01e3f48 to 0xc01e3f90)
[ 34.071707] 3f40: 00000001 00000000 00000001 f8780000 c001fdd8 c01e2000
[ 34.080072] 3f60: c001cf0c c01e5f58 8001b024 4117b363 8001aff0 c01e3f9c c01e3f80 c01e3f90
[ 34.088449] 3f80: c0027000 c001fe1c 80000013 ffffffff
[ 34.096826] r5:f8900000 r4:ffffffff
[ 34.100428] Function entered at [<c001fdd8>] from [<c001fda4>]
[ 34.106280] Function entered at [<c001fd6c>] from [<c0188954>]
[ 34.112135] r5:c01ff970 r4:c01e2000
[ 34.115742] Function entered at [<c01888e0>] from [<c000897c>]
[ 34.121597] r5:c01ff970 r4:c020955c
[ 34.125200] Function entered at [<c0008708>] from [<80008034>]
[ 34.131039] r5:c01ffea4 r4:00c5387d
[ 34.135435] mxc_ipu mxc_ipu: Channel 5 is not disabled, disable first
[ 34.171677] ** CamTimer_Timeover :0**
[ 34.175373] bad: scheduling from the idle thread!
[ 34.180083] Backtrace:
[ 34.182570] Function entered at [<c002257c>] from [<c0188b08>]
[ 34.188412] r7:c01e5f58 r6:c01e52f0 r5:c01e52f0 r4:c0201980
[ 34.194149] Function entered at [<c0188af0>] from [<c0038bb8>]
[ 34.199990] Function entered at [<c0038b74>] from [<c0037734>]
[ 34.205849] Function entered at [<c00376b8>] from [<c00377f8>]
[ 34.226650] ** CamTimer_Timeover :1**
[ 34.230324] r7:c01e5f58 r6:c01e2000 r5:c01e52f0 r4:c0201980
[ 34.236065] Function entered at [<c00377c0>] from [<c0188dc0>]
[ 34.241923] r5:c01e52f0 r4:c001fdd8
[ 34.245527] Function entered at [<c0188cb0>] from [<c001fdc0>]
[ 34.251385] Function entered at [<c001fd6c>] from [<c0188954>]
[ 34.257226] r5:c01ff970 r4:c01e2000
[ 34.260830] Function entered at [<c01888e0>] from [<c000897c>]
[ 34.282227] ** CamTimer_Timeover :2**
[ 34.285901] r5:c01ff970 r4:c020955c
[ 34.289505] Function entered at [<c0008708>] from [<80008034>]
[ 34.295363] r5:c01ffea4 r4:00c5387d
[ 34.299755] bad: scheduling from the idle thread!
[ 34.304530] Backtrace:
[ 34.306995] Function entered at [<c002257c>] from [<c0188b08>]
[ 34.312877] r7:c7d86780 r6:c01e52f0 r5:c01e52f0 r4:c0201980
[ 34.318602] Function entered at [<c0188af0>] from [<c0038bb8>]
[ 34.339976] ** CamTimer_Timeover :3**
[ 34.343670] Function entered at [<c0038b74>] from [<c0037734>]
[ 34.349513] Function entered at [<c00376b8>] from [<c00377f8>]
[ 34.355371] r7:c7d86780 r6:c01e2000 r5:c01e52f0 r4:c0201980
[ 34.361086] Function entered at [<c00377c0>] from [<c0188dc0>]
[ 34.366950] r5:c01e52f0 r4:c7d86480
[ 34.370559] Function entered at [<c0188cb0>] from [<c001fdc0>]
[ 34.376418] Function entered at [<c001fd6c>] from [<c0188954>]
[ 34.397511] ** CamTimer_Timeover :4**
[ 34.401203] r5:c01ff970 r4:c01e2000
[ 34.404807] Function entered at [<c01888e0>] from [<c000897c>]
[ 34.410647] r5:c01ff970 r4:c020955c
[ 34.414274] Function entered at [<c0008708>] from [<80008034>]
[ 34.420119] r5:c01ffea4 r4:00c5387d
[ 34.424494] bad: scheduling from the idle thread!
[ 34.429217] Backtrace:
[ 34.431741] Function entered at [<c002257c>] from [<c0188b08>]
[ 34.437597] r7:c7d86780 r6:c01e52f0 r5:c01e52f0** CamTimer_Timeover :5**
[ 34.459996] r4:c0201980
[ 34.462570] Function entered at [<c0188af0>] from [<c0038bb8>]
[ 34.468417] Function entered at [<c0038b74>] from [<c0037734>]
[ 34.474277] Function entered at [<c00376b8>] from [<c00377f8>]
[ 34.480119] r7:c7d86780 r6:c01e2000 r5:c01e52f0 r4:c0201980
[ 34.485852] Function entered at [<c00377c0>] from [<c0188dc0>]
[ 34.506552] ** CamTimer_Timeover :6**
[ 34.510231] r5:c01e52f0 r4:c7d86480
[ 34.513858] Function entered at [<c0188cb0>] from [<c001fdc0>]
[ 34.519705] Function entered at [<c001fd6c>] from [<c0188954>]
[ 34.525568] r5:c01ff970 r4:c01e2000
[ 34.529173] Function entered at [<c01888e0>] from [<c000897c>]
[ 34.535031] r5:c01ff970 r4:c020955c
[ 34.538636] Function entered at [<c0008708>] from [<80008034>]
[ 34.559331] ** CamTimer_Timeover :7**
[ 34.563024] r5:c01ffea4 r4:00c5387d
[ 34.567393] bad: scheduling from the idle thread!
[ 34.572176] Backtrace:
[ 34.574642] Function entered at [<c002257c>] from [<c0188b08>]
[ 34.580497] r7:c7d86780 r6:c01e52f0 r5:c01e52f0 r4:c0201980
[ 34.586238] Function entered at [<c0188af0>] from [<c0038bb8>]
[ 34.592103] Function entered at [<c0038b74>] from [<c0037734>]
[ 34.597946] Function entered at [<c00376b8>] from [<c00377f8>]
[ 34.618665] ** CamTimer_Timeover :8**
[ 34.622352] r7:c7d86780 r6:c01e2000 r5:c01e52f0 r4:c0201980
[ 34.628067] Function entered at [<c00377c0>] from [<c0188dc0>]
[ 34.633924] r5:c01e52f0 r4:c7d86480
[ 34.637528] Function entered at [<c0188cb0>] from [<c001fdc0>]
[ 34.643388] Function entered at [<c001fd6c>] from [<c0188954>]
[ 34.649228] r5:c01ff970 r4:c01e2000
[ 34.652850] Function entered at [<c01888e0>] from [<c000897c>]
[ 34.658690] r5:c01ff970** CamTimer_Timeover :9**
[ 34.678303] r4:c020955c
[ 34.680853] Function entered at [<c0008708>] from [<80008034>]
[ 34.686712] r5:c01ffea4 r4:00c5387d
[ 34.691136] bad: scheduling from the idle thread!
[ 34.695860] Backtrace:
[ 34.698323] Function entered at [<c002257c>] from [<c0188b08>]
[ 34.704203] r7:c7d86780 r6:c01e52f0 r5:c01e52f0 r4:c0201980
[ 34.709926] Function entered at [<c0188af0>] from [<c0038bb8>]
[ 34.731335] ** CamTimer_Timeover :10**
[ 34.735103] Function entered at [<c0038b74>] from [<c0037734>]
[ 34.740946] Function entered at [<c00376b8>] from [<c00377f8>]
[ 34.746807] r7:c7d86780 r6:c01e2000 r5:c01e52f0 r4:c0201980
[ 34.752541] Function entered at [<c00377c0>] from [<c0188dc0>]
[ 34.758381] r5:c01e52f0 r4:c7d86480
[ 34.762003] Function entered at [<c0188cb0>] from [<c001fdc0>]
[ 34.767851] Function entered at [<c001fd6c>] from [<c0188954>]
[ 34.789238] ** CamTimer_Timeover :11**
[ 34.793017] r5:c01ff970 r4:c01e2000
[ 34.796622] Function entered at [<c01888e0>] from [<c000897c>]
[ 34.802481] r5:c01ff970 r4:c020955c
[ 34.806086] Function entered at [<c0008708>] from [<80008034>]
[ 34.811943] r5:c01ffea4 r4:00c5387d
[ 34.816306] bad: scheduling from the idle thread!
[ 34.821091] Backtrace:
[ 34.823556] Function entered at [<c002257c>] from [<c0188b08>]
[ 34.829415] r7:c7d86780** CamTimer_Timeover :12**
[ 34.849704] r6:c01e52f0 r5:c01e52f0 r4:c0201980
[ 34.854383] Function entered at [<c0188af0>] from [<c0038bb8>]
[ 34.860225] Function entered at [<c0038b74>] from [<c0037734>]
[ 34.866091] Function entered at [<c00376b8>] from [<c00377f8>]
[ 34.871953] r7:c7d86780 r6:c01e2000 r5:c01e52f0 r4:c0201980
[ 34.877668] Function entered at [<c00377c0>] from [<c0188dc0>]
[ 34.898365] ** CamTimer_Timeover :13**
[ 34.902138] r5:c01e52f0 r4:c7d86480
[ 34.905742] Function entered at [<c0188cb0>] from [<c001fdc0>]
[ 34.911607] Function entered at [<c001fd6c>] from [<c0188954>]
[ 34.917462] r5:c01ff970 r4:c01e2000
[ 34.921089] Function entered at [<c01888e0>] from [<c000897c>]
[ 34.926930] r5:c01ff970 r4:c020955c
[ 34.930534] Function entered at [<c0008708>] from [<80008034>]
[ 34.936391] r5:c01ffea4 r4:00c5387d
[ 34.940755] bad: scheduling from the idle thread!
[ 34.960388] ** CamTimer_Timeover :14**
[ 34.964183] Backtrace:
[ 34.966653] Function entered at [<c002257c>] from [<c0188b08>]
[ 34.972519] r7:c7d86780 r6:c01e52f0 r5:c01e52f0 r4:c0201980
[ 34.978234] Function entered at [<c0188af0>] from [<c0038bb8>]
[ 34.984097] Function entered at [<c0038b74>] from [<c0037734>]
[ 34.989939] Function entered at [<c00376b8>] from [<c00377f8>]
[ 34.995803] r7:c7d86780 r6:c01e2000 r5:c01e52f0 r4:c0201980** CamTimer_Timeover :15**
[ 35.018657]
[ 35.020157] Function entered at [<c00377c0>] from [<c0188dc0>]
[ 35.026014] r5:c01e52f0 r4:c7d86480
[ 35.029618] Function entered at [<c0188cb0>] from [<c001fdc0>]
[ 35.035476] Function entered at [<c001fd6c>] from [<c0188954>]
[ 35.041340] r5:c01ff970 r4:c01e2000
[ 35.044944] Function entered at [<c01888e0>] from [<c000897c>]
[ 35.050783] r5:c01ff970** CamTimer_Timeover :16**
[ 35.070473] r4:c020955c
[ 35.073041] Function entered at [<c0008708>] from [<80008034>]
[ 35.078882] r5:c01ffea4 r4:00c5387d
[ 35.083239] bad: scheduling from the idle thread!
[ 35.087962] Backtrace:
[ 35.090426] Function entered at [<c002257c>] from [<c0188b08>]
[ 35.096337] r7:c7d86780 r6:c01e52f0 r5:c01e52f0 r4:c0201980** CamTimer_Timeover :17**
[ 35.119207]
[ 35.120705] Function entered at [<c0188af0>] from [<c0038bb8>]
[ 35.126566] Function entered at [<c0038b74>] from [<c0037734>]
[ 35.132426] Function entered at [<c00376b8>] from [<c00377f8>]
[ 35.138266] r7:c7d86780 r6:c01e2000 r5:c01e52f0 r4:c0201980
[ 35.143998] Function entered at [<c00377c0>] from [<c0188dc0>]
[ 35.149838] r5:c01e52f0** CamTimer_Timeover :18**
[ 35.169526] r4:c7d86480
[ 35.172093] Function entered at [<c0188cb0>] from [<c001fdc0>]
[ 35.177935] Function entered at [<c001fd6c>] from [<c0188954>]
[ 35.183797] r5:c01ff970 r4:c01e2000
[ 35.187401] Function entered at [<c01888e0>] from [<c000897c>]
[ 35.193260] r5:c01ff970 r4:c020955c
[ 35.196865] Function entered at [<c0008708>] from [<80008034>]
[ 35.218179] ** CamTimer_Timeover :19**
[ 35.221957] r5:c01ffea4 r4:00c5387d
[ 35.226303] bad: scheduling from the idle thread!
[ 35.231080] Backtrace:
[ 35.233546] Function entered at [<c002257c>] from [<c0188b08>]
[ 35.239403] r7:c7d86780 r6:c01e52f0 r5:c01e52f0 r4:c0201980
[ 35.245143] Function entered at [<c0188af0>] from [<c0038bb8>]
[ 35.251007] Function entered at [<c0038b74>] from [<c0037734>]
[ 35.256850] Function entered at [<c00376b8>] from [<c00377f8>]
[ 35.278256] ** CamTimer_Timeover :20**
[ 35.282033] r7:c7d86780 r6:c01e2000 r5:c01e52f0 r4:c0201980
[ 35.287748] Function entered at [<c00377c0>] from [<c0188dc0>]
[ 35.293606] r5:c01e52f0 r4:c7d86480
[ 35.297211] Function entered at [<c0188cb0>] from [<c001fdc0>]
[ 35.303070] Function entered at [<c001fd6c>] from [<c0188954>]
[ 35.308911] r5:c01ff970 r4:c01e2000
[ 35.312538] Function entered at [<c01888e0>] from [<c000897c>]
[ 35.318383] r5:c01ff970 r4:c020955c** CamTimer_Timeover :21**

 

 

what is root cause?

Outcomes