kernel panic at dma_rx_work

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

kernel panic at dma_rx_work

1,082 Views
feifeihu
Contributor II

we use i.MX6dl processor in our project, and recently we meet a kernel panic issue, randomly, the logs are attached below.

Could someone please help have a look at the logs, to give us some advice that whether the issue is caused by bugs in the i.MX6 serial driver?

And whether the patch linux-2.6-imx.git - Freescale i.MX Linux Tree   can fix this issue?

And  in 3.14.28 branch, I find that the patch is finally reverted, but it is not reverted in other branch , so shall we merge it in 3.10.53?

Thanks!

logs:

[43079.923249] Unable to handle kernel paging request at virtual address 00003000

[43079.930921] pgd = 80004000

[43079.933649] [00003000] *pgd=00000000

[43079.937256] Internal error: Oops: 5 [#1] PREEMPT SMP ARM

[43079.942580] Modules linked in: wlcore_sdio(O) wlcore(O) mac80211(O) cfg80211(O) compat(O) [last unloaded: wl18xx]

[43079.952992] CPU: 0 PID: 26947 Comm: kworker/0:0 Tainted: G        W  O 3.10.53 #1

[43079.960497] Workqueue: events dma_rx_work

[43079.964535] task: 8f228f00 ti: 8f9a8000 task.ti: 8f9a8000

[43079.969951] PC is at memcpy+0x48/0x330

[43079.973720] LR is at tty_insert_flip_string_fixed_flag+0x58/0x8c

[43079.979739] pc : [<801d3848>]    lr : [<8023d190>]    psr: 20010113

[43079.979739] sp : 8f9a9eac  ip : 00000000  fp : bc4cc828

[43079.991226] r10: 00000138  r9 : 00000000  r8 : 00000138

[43079.996460] r7 : 00000138  r6 : bce0b800  r5 : bc0ad800  r4 : 00003138

[43080.002999] r3 : 00000000  r2 : 000000b8  r1 : 00003000  r0 : bce0b81c

[43080.009536] Flags: nzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment kernel

[43080.016856] Control: 10c53c7d  Table: 4cce004a  DAC: 00000015

[43080.022610]

[43080.022610] PC: 0x801d37c8:

[43080.026888] 37c8  41a00230 51a00331 41800c11 e1a01231 e1a0f00e 00000000 e2522001 4a000003

[43080.035244] 37e8  e4d03001 e1330001 1afffffa e2400001 13a00000 e1a0f00e e92d4011 e2522004

[43080.043594] 3808  ba00002b e210c003 f5d1f000 1a000030 e211c003 1a00003a e252201c e92d01e0

[43080.051944] 3828  ba00000c f5d1f000 e2522060 f5d1f01c ba000002 f5d1f03c f5d1f05c f5d1f07c

[43080.060295] 3848  e8b151f8 e2522020 e8a051f8 aafffffa e3720060 aafffff9 e212c01c e26cc020

[43080.068648] 3868  108ff00c ea000011 e320f000 e4913004 e4914004 e4915004 e4916004 e4917004

[43080.076998] 3888  e4918004 e491e004 e08ff00c e320f000 e320f000 e4803004 e4804004 e4805004

[43080.085346] 38a8  e4806004 e4807004 e4808004 e480e004 e8bd01e0 e1b02f82 14d13001 24d14001

[43080.093698]

[43080.093698] LR: 0x8023d110:

[43080.097978] d110  e0844006 e0800003 ebfe59b8 e597300c e15a0008 e0833006 e587300c 8affffe3

[43080.106330] d130  e1a00008 e8bd87f0 e92d47f0 e1a05000 e1a04001 e1a09002 e1a0a003 e3a07000

[43080.114680] d150  e067100a e1a00005 e3510c07 23a01c07 ebffff5a e5956018 e2508000 0a000012

[43080.123030] d170  e596300c e1a01004 e5960004 e1a02008 e0877008 e0844008 e0800003 ebfe599b

[43080.131379] d190  e596300c e5960008 e1a01009 e1a02008 e0800003 ebfe5b35 e596300c e15a0007

[43080.139731] d1b0  e0833008 e586300c 8affffe4 e1a00007 e8bd87f0 e92d4038 e2805010 e1a04000

[43080.148081] d1d0  e1a00005 eb0ef99b e5943018 e3530000 1593200c e1a01000 15832014 e1a00005

[43080.156434] d1f0  eb0ef8eb e5d43068 e2033002 e6ef3073 e3530000 0a000002 e1a00004 e8bd4038

[43080.164785]

[43080.164785] SP: 0x8f9a9e2c:

[43080.169063] 9e2c  800176cc 00000009 805fb860 00000009 805fb5cc 3a002380 800c8b40 bc1e3800

[43080.177415] 9e4c  801d3848 20010113 ffffffff 8f9a9e94 8000ddd8 bce0b81c 00003000 000000b8

[43080.185767] 9e6c  00000000 00003138 bc0ad800 bce0b800 00000138 00000138 00000000 00000138

[43080.194117] 9e8c  bc4cc828 00000000 8f9a9eac 8023d190 801d3848 20010113 ffffffff 00003000

[43080.202469] 9eac  bc0ad800 bce0b800 00000138 00000138 bce0b81c 00003138 8023d190 bc4cc810

[43080.210820] 9ecc  00000000 00000003 bc4cc828 bc0ad800 0000000b 00000018 80251f84 80251fcc

[43080.219173] 9eec  a1dce680 816239c0 81626d00 00000000 00000000 816239c0 bc4cca48 00000009

[43080.227523] 9f0c  80043080 a1dce680 bc4cca48 00000049 a1dce680 816239c0 8f9a8000 80d655c1

[43080.235875]

[43080.235875] FP: 0xbc4cc7a8:

[43080.240153] c7a8  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

[43080.248503] c7c8  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

[43080.256851] c7e8  00000000 00000000 00000000 00000000 00000000 00000000 bc497880 bc497580

[43080.265201] c808  80274cdc 00000000 1c9f1c9f 00000000 c0970000 00000000 00000000 00000000

[43080.273557] c828  00000000 00000000 00000000 0000003a 00000000 04c4b400 00000020 00020000

[43080.281906] c848  00000000 00000000 bc0ad800 00000000 00000000 00000000 00000000 00cc5630

[43080.290259] c868  00000451 00000000 00000000 00000000 00000000 00000000 80d21700 00000000

[43080.298607] c888  10000000 00000000 00000002 0000003e 80d215e8 00000000 00000000 02020000

[43080.306957]

[43080.306957] R0: 0xbce0b79c:

[43080.311236] b79c  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

[43080.319587] b7bc  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

[43080.327936] b7dc  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

[43080.336283] b7fc  00000000 00000000 bce0b81c bce0ba1c 00000000 00000200 00000000 00000000

[43080.344634] b81c  78080799 00000203 00000213 00000320 07f011e1 00050000 00000000 00000000

[43080.352986] b83c  645507f0 00000204 00000214 0000041e 07f00d40 00050000 00000000 00000000

[43080.361334] b85c  a82e07f0 00000205 00000215 0000051c 07f01a7f 00050000 00000000 00000000

[43080.369684] b87c  0ee607f0 00000206 00000216 0000061a 07f02386 00050000 00000000 00000000

[43080.378033]

[43080.378033] R5: 0xbc0ad780:

[43080.382312] d780  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

[43080.390661] d7a0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

[43080.399010] d7c0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

[43080.407359] d7e0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

[43080.415708] d800  00000040 bc0ad804 bc0ad804 8023ccc4 1b671b67 bce09800 bce0b800 bd6c0800

[43080.424060] d820  00000400 a0463200 a0463200 80634c50 00080008 00000000 00000001 00030003

[43080.432409] d840  bc0ad840 bc0ad840 00010001 bc0ad84c bc0ad84c 00010001 bc0ad858 bc0ad858

[43080.440762] d860  00000000 00000000 00000000 00000000 00000000 bc0ad874 bc0ad874 bd70c500

[43080.449112]

[43080.449112] R6: 0xbce0b780:

[43080.453391] b780  0000001c a6e4ae2c a6e4ae2c e01d1e28 000227ab e01d1e28 00000000 00000000

[43080.461742] b7a0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

[43080.470089] b7c0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

[43080.478438] b7e0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

[43080.486784] b800  00000000 bce0b81c bce0ba1c 00000000 00000200 00000000 00000000 78080799

[43080.495133] b820  00000203 00000213 00000320 07f011e1 00050000 00000000 00000000 645507f0

[43080.503485] b840  00000204 00000214 0000041e 07f00d40 00050000 00000000 00000000 a82e07f0

[43080.511835] b860  00000205 00000215 0000051c 07f01a7f 00050000 00000000 00000000 0ee607f0

[43080.520187] Process kworker/0:0 (pid: 26947, stack limit = 0x8f9a8238)

[43080.526724] Stack: (0x8f9a9eac to 0x8f9aa000)

[43080.531093] 9ea0:                            bc0ad800 bce0b800 00000138 00000138 bce0b81c

[43080.539287] 9ec0: 00003138 8023d190 bc4cc810 00000000 00000003 bc4cc828 bc0ad800 0000000b

[43080.547479] 9ee0: 00000018 80251f84 80251fcc a1dce680 816239c0 81626d00 00000000 00000000

[43080.555669] 9f00: 816239c0 bc4cca48 00000009 80043080 a1dce680 bc4cca48 00000049 a1dce680

[43080.563860] 9f20: 816239c0 8f9a8000 80d655c1 a1dce698 816239c0 816239d4 00000009 800433cc

[43080.572050] 9f40: 00000000 a13a7eb0 00000000 a1dce680 800431ac 00000000 00000000 00000000

[43080.580239] 9f60: 00000000 800487f4 00000a00 00000000 000000f8 a1dce680 00000000 00000000

[43080.588429] 9f80: 8f9a9f80 8f9a9f80 00000000 00000000 8f9a9f90 8f9a9f90 8f9a9fac a13a7eb0

[43080.596618] 9fa0: 80048754 00000000 00000000 8000e2d8 00000000 00000000 00000000 00000000

[43080.604807] 9fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

[43080.612997] 9fe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000

[43080.621192] Code: ba000002 f5d1f03c f5d1f05c f5d1f07c (e8b151f8)

[43080.627744] ---[ end trace 41e96c2a4687bfb5 ]---

[43080.643916] Kernel panic - not syncing: Fatal exception

[43080.649169] CPU1: stopping

[43080.651896] CPU: 1 PID: 0 Comm: swapper/1 Tainted: G      D W  O 3.10.53 #1

[43080.658894] [<80013edc>] (unwind_backtrace+0x0/0x11c) from [<80011834>] (show_stack+0x10/0x14)

[43080.667525] [<80011834>] (show_stack+0x10/0x14) from [<80012fa0>] (handle_IPI+0xbc/0x17c)

[43080.675721] [<80012fa0>] (handle_IPI+0xbc/0x17c) from [<80008534>] (gic_handle_irq+0x50/0x58)

[43080.684266] [<80008534>] (gic_handle_irq+0x50/0x58) from [<8000de40>] (__irq_svc+0x40/0x70)

[43080.692627] Exception stack(0xbc0d7f58 to 0xbc0d7fa0)

[43080.697689] 7f40:                                                       bc0d7fa0 0000a848

[43080.705883] 7f60: 7e58c17f 0000272e 8162b1e0 00000000 7e3f04f4 0000272e 80d08a70 412fc09a

[43080.714075] 7f80: 80d08a80 00000000 0a53daf2 bc0d7fa0 80064018 803e8d64 600b0113 ffffffff

[43080.722277] [<8000de40>] (__irq_svc+0x40/0x70) from [<803e8d64>] (cpuidle_enter_state+0x54/0xec)

[43080.731082] [<803e8d64>] (cpuidle_enter_state+0x54/0xec) from [<803e8ed8>] (cpuidle_idle_call+0xdc/0x14c)

[43080.740667] [<803e8ed8>] (cpuidle_idle_call+0xdc/0x14c) from [<8000ef30>] (arch_cpu_idle+0x10/0x48)

[43080.749733] [<8000ef30>] (arch_cpu_idle+0x10/0x48) from [<800633a8>] (cpu_startup_entry+0xb0/0x118)

[43080.758798] [<800633a8>] (cpu_startup_entry+0xb0/0x118) from [<105f1d44>] (0x105f1d44)

[43080.777701] Rebooting in 5 seconds..

Labels (3)
Tags (1)
2 Replies

634 Views
igorpadykov
NXP Employee
NXP Employee

Hi Feifei

in general one can try that patch if it helps, also recommended

to try with latest kernel

linux-2.6-imx.git - Freescale i.MX Linux Tree

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

634 Views
chrisrutherford
Contributor II

I also have a similar kernel panic with the IMX6 DL. using 3.10.53-1.1.0_ga.  Did this patch improve things?

Best regards,

Christopher

[  254.800931] Unable to handle kernel paging request at virtual address 00006000

[  254.808339] pgd = 80004000

[  254.811073] [00006000] *pgd=00000000

[  254.814729] Internal error: Oops: 17 [#1] PREEMPT SMP ARM

[  254.820142] Modules linked in:

[  254.823237] CPU: 0 PID: 73 Comm: kworker/0:2 Not tainted 3.10.53-1.1.0_ga-dirty #22

[  254.830928] Workqueue: events dma_rx_work

[  254.834971] task: b8295200 ti: b83ae000 task.ti: b83ae000

[  254.840399] PC is at memcpy+0xe4/0x330

[  254.844178] LR is at tty_insert_flip_string_fixed_flag+0x60/0x94

[  254.850202] pc : [<801a98c4>]    lr : [<80216f5c>]    psr: 200d0013

[  254.850202] sp : b83afeb4  ip : 00000003  fp : 00000007

[  254.861695] r10: 00006015  r9 : 00000000  r8 : 00000015

[  254.866935] r7 : b806c800  r6 : 00000015  r5 : 00000015  r4 : b8dcd800

[  254.873476] r3 : 00000059  r2 : 00000011  r1 : 00006000  r0 : b8dcd875

[  254.880021] Flags: nzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment kernel

[  254.887345] Control: 10c53c7d  Table: 78eb004a  DAC: 00000015

[  254.893107] Process kworker/0:2 (pid: 73, stack limit = 0xb83ae238)

[  254.899388] Stack: (0xb83afeb4 to 0xb83b0000)

[  254.903763] fea0:                                              b8dcd875 b8dcd800 80216f5c

[  254.911963] fec0: b81b3048 00000007 00006000 b81b3010 b806c800 cccccccd 00000000 8022cd1c

[  254.920161] fee0: 8022cd68 b83aac80 b81b3218 814bd800 00000000 814ba680 00000000 b83ae008

[  254.928359] ff00: 814ba680 800400c8 80a3fdbc 809fca80 809fca80 b83ae000 814ba680 b83aac80

[  254.936557] ff20: 814ba680 b83aac98 814ba694 b83ae000 80a3fd88 00000009 814ba680 80040d10

[  254.944755] ff40: b8295200 b8083ea8 00000000 b83aac80 80040be4 00000000 00000000 00000000

[  254.952953] ff60: 00000000 80046164 1e36bdfe 00000000 30fdfb1d b83aac80 00000000 00000000

[  254.961150] ff80: b83aff80 b83aff80 00000000 00000000 b83aff90 b83aff90 b83affac b8083ea8

[  254.969347] ffa0: 800460b0 00000000 00000000 8000e198 00000000 00000000 00000000 00000000

[  254.977544] ffc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

[  254.985741] ffe0: 00000000 00000000 00000000 00000000 00000013 00000000 dd766711 4f93f1bb

0 Kudos