AnsweredAssumed Answered

4.9.11 kernel crash in imx serial driver

Question asked by Anita Thomas on Jul 27, 2018
Latest reply on Jul 30, 2018 by Bio_TICFSL
We are still seeing the same crash on the 4.9.11 (yocto-morty) kernel wit the IMX7d. Our NXP FAE suggested we post this on here.
Did see some new imx serial improvement patches and a similar crash at 
Is NXP looking to incorporate these in 4.9 or later kernels?
[248275.244910] Unhandled fault: external abort on non-linefetch (0x1008) at 0xa00b0000 [248275.252669] pgd = 893a0000 [248275.255465] [a00b0000] *pgd=88006811, *pte=30880653, *ppte=30880453 [248275.261865] Internal error: : 1008 [#1] PREEMPT SMP ARM [248275.267178] Modules linked in: [248275.270336] CPU: 0 PID: 5581 Comm: getstats Tainted: G        W       4.9.11-1.0.0 #1 [248275.278252] Hardware name: Freescale i.MX7 Dual (Device Tree) [248275.284085] task: 88620640 task.stack: 892d2000 [248275.288712] PC is at imx_rxint+0x4c/0x2ac [248275.292816] LR is at _raw_spin_lock_irqsave+0x18/0x5c [248275.297956] pc : [<804115d0>]    lr : [<80736028>]    psr: 200b0193 [248275.297956] sp : 892d3ea8  ip : 860000d8  fp : 80998848 [248275.309607] r10: 600b0193  r9 : 00000000  r8 : 80c02d00 [248275.314919] r7 : 8805f1f8  r6 : 00000001  r5 : 00002150  r4 : 88390010 [248275.321534] r3 : 128d164e  r2 : a00b0000  r1 : 00000000  r0 : 600b0193 [248275.328150] Flags: nzCv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment none [248275.335459] Control: 10c53c7d  Table: 893a006a  DAC: 00000051 [248275.341292] Process getstats (pid: 5581, stack limit = 0x892d2210) [248275.347560] Stack: (0x892d3ea8 to 0x892d4000) [248275.352006] 3ea0:                   400b0093 00000000 00000000 88390010 00002150 00005089 [248275.360274] 3ec0: 00000030 00000030 881ea100 80c11b32 80998848 8041336c 883f8340 881ea100 [248275.368542] 3ee0: 00000000 892d3f2c 00000030 80177250 00000000 00000000 00000010 80998870 [248275.376809] 3f00: 8673fc88 881ea100 881ea100 80c0a1b0 00000000 00000001 892d3fb0 88008000 [248275.385076] 3f20: 004411d4 801772f4 88620640 00000000 004411d4 881ea100 881ea160 80177368 [248275.393343] 3f40: 881ea100 881ea160 80c0a1b0 8017a7f0 80b6edec 00000000 00000030 00000000 [248275.401610] 3f60: 00000001 8017652c 80b6edec 80176a54 80c1aec0 80c034a0 a000200c 892d3fb0 [248275.409878] 3f80: a0002000 a0003000 000afb70 801014c4 00044608 200b0010 ffffffff 10c53c7d [248275.418145] 3fa0: 10c53c7d 00443934 000afb70 80736db0 00000000 00000000 004439bc 00443943 [248275.426412] 3fc0: 000afadc 00000000 00000004 0043f1f0 000b1c7c 00443934 000afb70 004411d4 [248275.434679] 3fe0: 000af430 7ec5f140 00043ee8 00044608 200b0010 ffffffff 00000000 00000000 [248275.442958] [<804115d0>] (imx_rxint) from [<8041336c>] (imx_int+0xe8/0x1b8) [248275.450016] [<8041336c>] (imx_int) from [<80177250>] (__handle_irq_event_percpu+0x9c/0x124) [248275.458460] [<80177250>] (__handle_irq_event_percpu) from [<801772f4>] (handle_irq_event_percpu+0x1c/0x58) [248275.468205] [<801772f4>] (handle_irq_event_percpu) from [<80177368>] (handle_irq_event+0x38/0x5c) [248275.477168] [<80177368>] (handle_irq_event) from [<8017a7f0>] (handle_fasteoi_irq+0xd0/0x1a8) [248275.485784] [<8017a7f0>] (handle_fasteoi_irq) from [<8017652c>] (generic_handle_irq+0x24/0x34) [248275.494488] [<8017652c>] (generic_handle_irq) from [<80176a54>] (__handle_domain_irq+0x7c/0xec) [248275.503279] [<80176a54>] (__handle_domain_irq) from [<801014c4>] (gic_handle_irq+0x48/0x8c) [248275.511722] [<801014c4>] (gic_handle_irq) from [<80736db0>] (__irq_usr+0x50/0x80) [248275.519291] Exception stack(0x892d3fb0 to 0x892d3ff8) [248275.524431] 3fa0:                                     00000000 00000000 004439bc 00443943 [248275.532698] 3fc0: 000afadc 00000000 00000004 0043f1f0 000b1c7c 00443934 000afb70 004411d4 [248275.540964] 3fe0: 000af430 7ec5f140 00043ee8 00044608 200b0010 ffffffff [248275.547671] Code: e5943070 e5942008 e2833001 e5843070 (e5925000)  [248275.553863] ---[ end trace ad4a27aeb28285be ]--- [248275.558571] Kernel panic - not syncing: Fatal exception in interrupt [248276.440014] SMP: failed to stop secondary CPUs [248276.444549] ---[ end Kernel panic - not syncing: Fatal exception in interrupt

Similar crash on a 4.1.15 kernel with one core disabled

[33849.821632] Unhandled fault: external abort on non-linefetch (0x1008) at 0xa0100000
[33849.829310] pgd = 88740000
[33849.832023] [a0100000] *pgd=88006811, *pte=30880653, *ppte=30880453
[33849.838343] Internal error: : 1008 [#1] PREEMPT SMP ARM
[33849.843572] Modules linked in:
[33849.846648] CPU: 0 PID: 943 Comm: zigbee-stress-t Not tainted 4.1.15-1.2.7 #1
[33849.853786] Hardware name: Freescale i.MX7 Dual (Device Tree)
[33849.859537] task: 88afd7c0 ti: 886f2000 task.ti: 886f2000
[33849.864949] PC is at imx_rxint+0x54/0x2ac
[33849.868971] LR is at _raw_spin_lock_irqsave+0x18/0x5c
[33849.874029] pc : [<802fe604>] lr : [<80692f50>] psr: 20000193
[33849.874029] sp : 886f3db0 ip : 8600067c fp : 020912e4
[33849.885510] r10: 00000000 r9 : 8099e100 r8 : 00000113
[33849.890740] r7 : 8099e504 r6 : 880589e8 r5 : 00002550 r4 : 880b4410
[33849.897271] r3 : 02258618 r2 : a0100000 r1 : 00000000 r0 : 60000193
[33849.903805] Flags: nzCv IRQs off FIQs on Mode SVC_32 ISA ARM Segment user
[33849.911031] Control: 10c53c7d Table: 8874006a DAC: 00000015
[33849.916781] Process zigbee-stress-t (pid: 943, stack limit = 0x886f2210)
[33849.923486] Stack: (0x886f3db0 to 0x886f4000)
[33849.927850] 3da0: 0000bb75 60000193 ffffffff 00000001
[33849.936036] 3dc0: 00000000 880b4410 00002550 00004089 00000113 00000113 88138780 809fa76a
[33849.944223] 3de0: 020912e4 802ffce8 88071800 881387e0 00000000 00000000 00000113 80066484
[33849.952409] 3e00: 020912e4 80692f50 88138780 881387e0 88071800 00000000 00000001 886f3e88
[33849.960595] 3e20: 88008000 8006657c 88138780 881387e0 809a398c 80069238 00000113 00000000
[33849.968781] 3e40: 00000113 80065b24 80997be8 80065ddc a000200c 8099e830 886f3e88 a0002000
[33849.976967] 3e60: 86008c38 885b5a80 00000002 8000941c 806932c8 60000013 ffffffff 886f3ebc
[33849.985153] 3e80: 86008c38 800132c0 880b4410 a0000013 0000d9d8 0000d9d9 880589e8 88731200
[33849.993338] 3ea0: a0000013 880b4410 86008c38 885b5a80 00000002 020912e4 00000000 886f3ed0
[33850.001525] 3ec0: 802fbc84 806932c8 60000013 ffffffff 880589e8 802fbc84 88731200 00000000
[33850.009710] 3ee0: 00000000 884e86d0 86008c38 885b5a80 00000002 802e2754 881ebe28 8012427c
[33850.017896] 3f00: 880bb015 00000005 882af214 a0000013 00000008 80692f50 00000002 00000000
[33850.026082] 3f20: 885b5a88 00000001 885b5a88 00000001 00000000 00000000 00000000 885b5a80
[33850.034268] 3f40: 881ebe28 00000000 884e86d0 86008c38 00000008 885b5a88 020912e4 800ee694
[33850.042453] 3f60: 00000000 00000000 88afdbb8 00000000 809ff0a8 88afd7c0 8000f684 886f2000
[33850.050639] 3f80: 00000000 80044f38 886f2000 8000f684 886f3fb0 0000003f 8000f684 800123d4
[33850.058825] 3fa0: 0000000b 0000000b 02091408 8000f54c 00000001 00000001 80000001 00000001
[33850.067010] 3fc0: 0000000b 0000000b 02091408 0000003f 00000000 00000000 00000000 020912e4
[33850.075196] 3fe0: 000af728 7eae2e84 0003e968 76ec78ac a0010010 0000000b 00000000 00000000
[33850.083394] [<802fe604>] (imx_rxint) from [<802ffce8>] (imx_int+0x144/0x1bc)
[33850.090457] [<802ffce8>] (imx_int) from [<80066484>] (handle_irq_event_percpu+0x78/0x134)
[33850.098646] [<80066484>] (handle_irq_event_percpu) from [<8006657c>] (handle_irq_event+0x3c/0x5c)
[33850.107530] [<8006657c>] (handle_irq_event) from [<80069238>] (handle_fasteoi_irq+0xe0/0x198)
[33850.116066] [<80069238>] (handle_fasteoi_irq) from [<80065b24>] (generic_handle_irq+0x2c/0x3c)
[33850.124687] [<80065b24>] (generic_handle_irq) from [<80065ddc>] (__handle_domain_irq+0x7c/0xec)
[33850.133396] [<80065ddc>] (__handle_domain_irq) from [<8000941c>] (gic_handle_irq+0x24/0x5c)
[33850.141758] [<8000941c>] (gic_handle_irq) from [<800132c0>] (__irq_svc+0x40/0x74)
[33850.149243] Exception stack(0x886f3e88 to 0x886f3ed0)
[33850.154303] 3e80: 880b4410 a0000013 0000d9d8 0000d9d9 880589e8 88731200
[33850.162489] 3ea0: a0000013 880b4410 86008c38 885b5a80 00000002 020912e4 00000000 886f3ed0
[33850.170671] 3ec0: 802fbc84 806932c8 60000013 ffffffff
[33850.175734] [<800132c0>] (__irq_svc) from [<806932c8>] (_raw_spin_unlock_irqrestore+0x20/0x54)
[33850.184357] [<806932c8>] (_raw_spin_unlock_irqrestore) from [<802fbc84>] (uart_close+0x1a4/0x1f0)
[33850.193244] [<802fbc84>] (uart_close) from [<802e2754>] (tty_release+0xf0/0x4b4)
[33850.200653] [<802e2754>] (tty_release) from [<800ee694>] (__fput+0x80/0x1d0)
[33850.207717] [<800ee694>] (__fput) from [<80044f38>] (task_work_run+0xac/0xe4)
[33850.214868] [<80044f38>] (task_work_run) from [<800123d4>] (do_work_pending+0x7c/0xa4)
[33850.222797] [<800123d4>] (do_work_pending) from [<8000f54c>] (work_pending+0xc/0x20)
[33850.230550] Code: e594306c e5942008 e2833001 e584306c (e592b000) 
[33850.236657] ---[ end trace cbc6694aa496ca26 ]---
[33850.241281] Kernel panic - not syncing: Fatal exception in interrupt
[33850.247642] ---[ end Kernel panic - not syncing: Fatal exception in interrupt
-----

Outcomes