AnsweredAssumed Answered

imx7d crash on sdma_int_handler kernel

Question asked by 其东 刘 on Mar 5, 2020
Latest reply on May 12, 2020 by 其东 刘

Hello everyone
my development board is IMX7DSABRE. Linux kernel version is 4.9.88
During the use, our kernel crashed, and the crash information is as follows:
Unable to handle kernel NULL pointer dereference at virtual address 00000002
pgd = a9b7c000
[00000002] * pgd = a8da4835, * pte = 00000000, * ppte = 00000000
Internal error: Oops: 17 [# 1] PREEMPT SMP ARM
Modules linked in:
CPU: 0 PID: 3144 Comm: KMonitor Not tainted 4.9.88 # 205
Hardware name: Freescale i.MX7 Dual (Device Tree)
task: a84fa680 task.stack: a8cf0000
PC is at sdma_int_handler + 0xd8 / 0x2f8
LR is at _raw_spin_lock + 0x10 / 0x50
pc: [<80450e0c>] lr: [<80923160>] psr: 60030193
sp: a8cf1ec0 ip: a987d0bc fp: 00000001
r10: a8394010 r9: a87a5300 r8: 00000000
r7: 00000000 r6: a8394dd0 r5: 0000000d r4: a8394d78
r3: 00000000 r2: 00000000 r1: 00000000 r0: 00000001
Flags: nZCv IRQs off FIQs on Mode SVC_32 ISA ARM Segment none
Control: 10c53c7d Table: a9b7c06a DAC: 00000051
Process KMonitor (pid: 3144, stack limit = 0xa8cf0210)
Stack: (0xa8cf1ec0 to 0xa8cf2000)
1ec0: 00000001 a8394dd0 7eaed7e0 00002000 00000000 00000000 a8cf0000 a8353740
1ee0: a814e800 00000000 a8cf1f2c 00000040 a814e800 810903b8 00feb1f8 8017136c
1f00: a8cf1f4c 80923480 a814e800 a814e800 8100a880 00000000 00000001 a8cf1fb0
1f20: a8008000 80171418 00000000 00000000 00feb1f8 a814e800 a814e860 8017148c
1f40: a814e800 a814e860 8100a880 80174804 80174734 80f5bd80 00000000 00000040
1f60: 00000000 8017065c 00000130 80170b64 8101c000 810033f4 c080200c a8cf1fb0
1f80: c0802000 c0803000 7eaeccd8 801014c4 7eaecd74 76ce0678 60030010 ffffffff
1fa0: 10c53c7d 10c53c7d 7eaecce8 8010c0f0 7eaecd74 00000000 00000000 00000000
1fc0: 00feb440 7eaecd74 00feb448 7eaeccf8 7eaeccb0 7eaecce8 7eaeccd8 00feb1f8
1fe0: 00000000 7eaecc90 7eaecc64 76ce0678 600 30010 ffffffff 00000000 00000000
[<80450e0c>] (sdma_int_handler) from [<8017136c>] (__handle_irq_event_percpu + 0x88 / 0x118)
[<8017136c>] (__handle_irq_event_percpu) from [<80171418>] (handle_irq_event_percpu + 0x1c / 0x58)
[<80171418>] (handle_irq_event_percpu) from [<8017148c>] (handle_irq_event + 0x38 / 0x5c)
[<8017148c>] (handle_irq_event) from [<80174804>] (handle_fasteoi_irq + 0xd0 / 0x1a8)
[<80174804>] (handle_fasteoi_irq) from [<8017065c>] (generic_handle_irq + 0x24 / 0x34)
[<8017065c>] (generic_handle_irq) from [<80170b64>] (__handle_domain_irq + 0x7c / 0xec)
[<80170b64>] (__handle_domain_irq) from [<801014c4>] (gic_handle_irq + 0x48 / 0x8c)
[<801014c4>] (gic_handle_irq) from [<8010c0f0>] (__irq_usr + 0x50 / 0x80)
Exception stack (0xa8cf1fb0 to 0xa8cf1ff8)
1fa0: 7eaecd74 00000000 00000000 00000000
1fc0: 00feb440 7eaecd74 00feb448 7eaeccf8 7eaeccb0 7eaecce8 7eaeccd8 00feb1f8
1fe0: 00000000 7eaecc90 7eaecc64 76ce0678 600 30010 ffffffff
Code: e5992044 e5993050 e0822082 e0833102 (e5d32002)
--- [end trace e60c122438210011] ---
Kernel panic-not syncing: Fatal exception in interrupt
CPU1: stopping
CPU: 1 PID: 0 Comm: swapper / 1 Tainted: G D 4.9.88 # 205
Hardware name: Freescale i.MX7 Dual (Device Tree)
[<8010eb84>] (unwind_backtrace) from [<8010b328>] (show_stack + 0x10 / 0x14)
[<8010b328>] (show_stack) from [<803c00c8>] (dump_stack + 0x88 / 0x9c)
[<803c00c8>] (dump_stack) from [<8010d9cc>] (handle_IPI + 0x198 / 0x1ac)
[<8010d9cc>] (handle_IPI) from [<80101504>] (gic_handle_irq + 0x88 / 0x8c)
[<80101504>] (gic_handle_irq) from [<8010bd0c>] (__irq_svc + 0x6c / 0xa8)
Exception stack (0xa80adf58 to 0xa80adfa0)
df40: 00000001 80c22038
df60: 00000001 000000f5 00000000 ab730e70 1ada9825 00008ef5 1ada3506 00008ef5
df80: 80f5ce68 81003144 00000016 a80adfa8 801675f4 806926ac 20000013 ffffffff
[<8010bd0c>] (__irq_svc) from [<806926ac>] (cpuidle_enter_state + 0x11c / 0x264)
[<806926ac>] (cpuidle_enter_state) from [<8016781c>] (cpu_startup_entry + 0x148 / 0x21c)
[<8016781c>] (cpu_startup_entry) from [<801015ac>] (__enable_mmu + 0x0 / 0x14)
--- [end Kernel panic-not syncing: Fatal exception in interrupt

Are there friends who have the same problem as me.
Looking forward to your help

Outcomes